Bug 496407

Summary: Internal system error when trying to update system
Product: [Fedora] Fedora Reporter: Shay Rossignol <shay_rossignol>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 10CC: ffesti, gerardo_banaag, james.antill, pmatilai, stephenb, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-12 21:23:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
same error in python 2.6 though
none
An internal system error keeps re-occurring. none

Description Shay Rossignol 2009-04-18 18:55:13 UTC
Description of problem: Internal system error when refreshing package cache. Second time this happened after fresh install.


Version-Release number of selected component (if applicable):


How reproducible:
System --> Administration --> Update System; System Sources 

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Shay Rossignol 2009-04-18 18:56:25 UTC
Error Type: <type 'exceptions.TypeError'>
Error Value: rpmdb open failed
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2316, in <module>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2312, in main
    backend = PackageKitYumBackend('', lock=True)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 182, in __init__
    self.yumbase = PackageKitYumBase(self)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2255, in __init__
    self.repos.confirm_func = self._repo_gpg_confirm
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 589, in <lambda>
    repos = property(fget=lambda self: self._getRepos(),
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 395, in _getRepos
    self._getConfig() # touch the config class first
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 192, in _getConfig
    self._conf = config.readMainConfig(startupconf)
  File : /usr/lib/python2.5/site-packages/yum/config.py, line 774, in readMainConfig
    yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
  File : /usr/lib/python2.5/site-packages/yum/config.py, line 844, in _getsysver
    idx = ts.dbMatch('provides', distroverpkg)

Comment 2 Shay Rossignol 2009-04-18 19:00:35 UTC
Error Type: <type 'exceptions.TypeError'>
Error Value: rpmdb open failed
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2316, in <module>
    main()
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2312, in main
    backend = PackageKitYumBackend('', lock=True)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 182, in __init__
    self.yumbase = PackageKitYumBase(self)
  File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 2255, in __init__
    self.repos.confirm_func = self._repo_gpg_confirm
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 589, in <lambda>
    repos = property(fget=lambda self: self._getRepos(),
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 395, in _getRepos
    self._getConfig() # touch the config class first
  File : /usr/lib/python2.5/site-packages/yum/__init__.py, line 192, in _getConfig
    self._conf = config.readMainConfig(startupconf)
  File : /usr/lib/python2.5/site-packages/yum/config.py, line 774, in readMainConfig
    yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
  File : /usr/lib/python2.5/site-packages/yum/config.py, line 844, in _getsysver
    idx = ts.dbMatch('provides', distroverpkg)

Comment 3 beemer 2009-05-23 14:01:18 UTC
Created attachment 345196 [details]
same error in python 2.6 though

Same problem on my system. Freshly installed F11 and at the first system update get this error. The errors are exactly the same however I seem to have got a later version of python, so attaching a screenshot - so you have the required info.

Comment 4 Stephen Blessing 2009-06-26 19:25:16 UTC
I noticed my system time and date had changed to September 1994 and a time in the evening. I recently updated my system from FC10 to FC11 and then ran the yum update command on 6-25-09 and now I get the internal system error that says, "more than one preupgrade package installed".

Comment 5 Stephen Blessing 2009-06-30 17:24:51 UTC
Created attachment 349977 [details]
An internal system error keeps re-occurring.

Comment 6 seth vidal 2009-07-01 19:14:19 UTC
Sounds like there is a lot going on (and wrong) on this system.

Have you been experiencing any other random events? Segfaults?

Comment 7 Stephen Blessing 2009-07-01 22:10:57 UTC
I only get the internal system error that says, "more than one preupgrade package installed" randomly appearing since the last couple updates -- no other problems. This is a dual-boot system (WinXP/FC Linux), with multiple Fedora Core Linux OS's (FC8, FC10, & FC11).

Comment 8 Gerardo Banaag 2009-09-16 09:06:08 UTC
Got this repeating "Internal System Error" message. Below are the details.

++++++++++++++++++++++++++++++++++++++++++++
Traceback (most recent call last):
  File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2461, in _check_init
    self.yumbase.repos.doSetup()
  File "/usr/lib/python2.6/site-packages/yum/repos.py", line 79, in doSetup
    self.ayum.plugins.run('postreposetup')
  File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 179, in run
    func(conduitcls(self, self.base, conf, **kwargs))
  File "/usr/lib/yum-plugins/rpm-warm-cache.py", line 32, in postreposetup_hook
    cmd = commands[0]
TypeError: 'NoneType' object is unsubscriptable
+++++++++++++++++++++++++++++++++++++++++++++

Comment 9 Tim Lauridsen 2009-09-16 13:19:56 UTC
(In reply to comment #8)
> Got this repeating "Internal System Error" message. Below are the details.
> 
> ++++++++++++++++++++++++++++++++++++++++++++
> Traceback (most recent call last):
>   File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 2461, in
> _check_init
>     self.yumbase.repos.doSetup()
>   File "/usr/lib/python2.6/site-packages/yum/repos.py", line 79, in doSetup
>     self.ayum.plugins.run('postreposetup')
>   File "/usr/lib/python2.6/site-packages/yum/plugins.py", line 179, in run
>     func(conduitcls(self, self.base, conf, **kwargs))
>   File "/usr/lib/yum-plugins/rpm-warm-cache.py", line 32, in postreposetup_hook
>     cmd = commands[0]
> TypeError: 'NoneType' object is unsubscriptable
> +++++++++++++++++++++++++++++++++++++++++++++  

This bug is another issue, it is because the current rpm-warm-cache don't play nice with PK, if you don't need it then remove it

yum remove yum-plugin-rpm-warm-cache

the issue is fixed in upstream yum-utils and in rawhide, but can't be released in F10.

Comment 10 Gerardo Banaag 2009-09-17 00:27:02 UTC
I have done your suggestion as below.

yum remove yum-plugin-rpm-warm-cache

Seems to be working fine now. Error message not popping as of now.
Thanks Tim.