[Yum-devel] GLib-CRITICAL assertion failures from yumdownloader

Charlie Brady charlieb-yum-devel at budge.apana.org.au
Wed May 16 16:08:41 UTC 2007


Running as non-root (*), on CentOS 5. Versions:

bash-3.1$ rpm -q yum yum-utils yum-metadata-parser
yum-3.1.7-1
yum-utils-1.1.4-1
yum-metadata-parser-1.1.1-1
bash-3.1$

Any suggestions where I should look?

...
warning: cannot get shared lock on 
/home/speech/bradyc/WIP/msl90/installroot/var/lib/rpm/Packages
smetest                   100% |=========================|  951 B    00:00
primary.xml.gz            100% |=========================|  92 kB    00:00

(process:12354): GLib-CRITICAL **: g_timer_stop: assertion `timer != NULL' 
failed

(process:12354): GLib-CRITICAL **: g_timer_destroy: assertion `timer != 
NULL' failed
Traceback (most recent call last):
   File "/usr/bin/yumdownloader", line 190, in ?
     util = YumDownloader()
   File "/usr/bin/yumdownloader", line 41, in __init__
     self.main()
   File "/usr/bin/yumdownloader", line 64, in main
     self.doUtilYumSetup()
   File "/usr/share/yum-cli/utils.py", line 80, in doUtilYumSetup
     self._getSacks()
   File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 382, in 
_getSacks
     self.repos.populateSack(which=repos)
   File "/usr/lib/python2.4/site-packages/yum/repos.py", line 206, in 
populateSack
     sack.populate(repo, mdtype, callback, cacheonly)
   File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 163, in 
populate
     dobj = repo_cache_function(xml, csum)
   File "/usr/lib/python2.4/site-packages/sqlitecachec.py", line 42, in 
getPrimary
     self.repoid))
TypeError: Can not create db_info table: database is locked
bash-3.1$

(*) Requires this patch to cli.py (why is yum 3.0.X behaviour "good"?):

             # seems a good place for it - to go back to yum 3.0.X behavior
             # if not root then caching is enabled
-           if opts.cacheonly or self.base.conf.uid != 0:
+           if opts.cacheonly:




More information about the Yum-devel mailing list