Guy, I have had the following problem frequently.
I'm not sure if I have a memory problem or a rmp db problem. Has anyone ever seen this ?
I'm running koji on a Fedora 11, with createrepo-0.9.7-7.fc11.noarch yum-3.2.23-3.fc11.noarch rpm-4.7.1-3.fc11.x86_64
$ /usr/libexec/kojid/mergerepos -a i386 -b /mnt/koji/repos/oc-fedora12-build/742/i386/blocklist -o /tmp/koji/tasks/4653/4653/repo -g /mnt/koji/repos/oc-fedora12-build/742/groups/comps.xml -r file:///tmp/koji/tasks/4653/4653/repo_742_premerge/ -r http://c4ebdaily.ltc.br.ibm.com/fedora/releases/12/Everything/i386/os/ -r http://c4ebdaily.ltc.br.ibm.com/fedora/updates/12/i386/ error: db4 error(12) from dbenv->open: Cannot allocate memory error: db4 error(12) from dbenv->close: Cannot allocate memory error: cannot open Packages index using db3 - Cannot allocate memory (12) error: cannot open Packages database in /var/lib/rpm Traceback (most recent call last): File "/usr/libexec/kojid/mergerepos", line 241, in <module> main(sys.argv[1:]) File "/usr/libexec/kojid/mergerepos", line 232, in main merge = RepoMerge(opts.repos, opts.arches, opts.groupfile, blocked, opts.outputdir) File "/usr/libexec/kojid/mergerepos", line 106, in __init__ self.yumbase.conf.cachedir = tempfile.mkdtemp() File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 652, in <lambda> conf = property(fget=lambda self: self._getConfig(), File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 239, in _getConfig self._conf = config.readMainConfig(startupconf) File "/usr/lib/python2.6/site-packages/yum/config.py", line 794, in readMainConfig yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg) File "/usr/lib/python2.6/site-packages/yum/config.py", line 867, in _getsysver idx = ts.dbMatch('provides', distroverpkg) TypeError: rpmdb open failed Exception AttributeError: "'YumBase' object has no attribute 'preconf'" in <bound method RepoMerge.__del__ of <__main__.RepoMerge object at 0x1b9d990>> ignored Exception AttributeError: "'YumBase' object has no attribute 'preconf'" in <bound method YumBase.__del__ of <yum.YumBase object at 0x1bb03d0>> ignored
Regards
Rodrigo Trujillo
buildsys@lists.fedoraproject.org