Hide Forgot
Description of problem: Don't Know Version-Release number of selected component: createrepo-0.9.9-21.fc19 Additional info: reporter: libreport-2.1.6 cmdline: /usr/bin/python -t /usr/share/createrepo/genpkgmetadata.py --quiet --database --update --unique-md-filenames /var/lib/yum/plugins/local dso_list: python-libs-2.7.5-4.fc19.i686 executable: /usr/share/createrepo/genpkgmetadata.py kernel: 3.10.10-200.fc19.i686.PAE runlevel: N 5 type: Python uid: 0 Truncated backtrace: gzip.py:94:__init__:IOError: [Errno 2] No such file or directory: '/var/lib/yum/plugins/local/.repodata/other.xml.gz' Traceback (most recent call last): File "/usr/share/createrepo/genpkgmetadata.py", line 294, in <module> main(sys.argv[1:]) File "/usr/share/createrepo/genpkgmetadata.py", line 272, in main mdgen.doRepoMetadata() File "/usr/lib/python2.7/site-packages/createrepo/__init__.py", line 953, in doRepoMetadata zfo = compressOpen(complete_path) File "/usr/lib/python2.7/site-packages/createrepo/utils.py", line 135, in compressOpen return _gzipOpen(fn, mode) File "/usr/lib/python2.7/site-packages/createrepo/utils.py", line 53, in _gzipOpen return GzipFile(filename, mode, compresslevel) File "/usr/lib/python2.7/gzip.py", line 94, in __init__ fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb') IOError: [Errno 2] No such file or directory: '/var/lib/yum/plugins/local/.repodata/other.xml.gz' Local variables in innermost frame:
Created attachment 800853 [details] File: backtrace
Created attachment 800854 [details] File: environ
Seeing the same issue.. createrepo-0.9.9-17.el6.noarch # createrepo `pwd` Spawning worker 0 with 992 pkgs Workers Finished Gathering worker results Saving Primary metadata Saving file lists metadata Saving other metadata Generating sqlite DBs Traceback (most recent call last): File "/usr/share/createrepo/genpkgmetadata.py", line 291, in <module> main(sys.argv[1:]) File "/usr/share/createrepo/genpkgmetadata.py", line 269, in main mdgen.doRepoMetadata() File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 951, in doRepoMetadata zfo = compressOpen(complete_path) File "/usr/lib/python2.6/site-packages/createrepo/utils.py", line 127, in compressOpen return _gzipOpen(fn, mode) File "/usr/lib/python2.6/site-packages/createrepo/utils.py", line 53, in _gzipOpen return GzipFile(filename, mode, compresslevel) File "/usr/lib64/python2.6/gzip.py", line 79, in __init__ fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb') IOError: [Errno 2] No such file or directory: '/data/repos/myrepo/.repodata/other.xml.gz'
> Saving other metadata Strange, ^^^this msg shows that > '/data/repos/myrepo/.repodata/other.xml.gz' ^^^that file was saved. Is this reproducible? Could you attach a strace?
I had this exact same problem when trying to run 'createrepo -d --update /repo' remotely via ssh in a script. Same version of createrepo as this user except it was on CentOS. Running the command locally or even running the script in a terminal it would work, so I suspect this has something to do with having a valid tty. That's just a guess though. In any case, I was able to solve my problem by not having createrepo generate the sql dbs. Not optimal, but better than nothing. My script now runs this command instead and so far works fine: createrepo --no-database --workers 4 --update
Closing, as the requested info has not been provided, and a workaround has been suggested.