View Issue Details

IDProjectCategoryView StatusLast Update
0017397CentOS-7yumpublic2020-05-26 05:25
ReporterTuxHandwerker 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
PlatformOSOS Version7
Product Version 
Target VersionFixed in Version 
Summary0017397: [abrt] yum: yumRepo.py:1334:_revertOldRepoXML:OSError: [Errno 2] No such file or directory
DescriptionDescription of problem:
Let it run as an cron job, which will refesh the yum cache.

Version-Release number of selected component:
yum-3.4.3-167.el7.centos

Truncated backtrace:
yumRepo.py:1334:_revertOldRepoXML:OSError: [Errno 2] No such file or directory

Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 375, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 184, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 585, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1384, in doCommand
    base.repos.doSetup()
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 157, in doSetup
    self.retrieveAllMD()
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 112, in retrieveAllMD
    repo._revertOldRepoXML()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1334, in _revertOldRepoXML
    os.rename(old_data['old_local'], old_data['local'])
OSError: [Errno 2] No such file or directory

Local variables in innermost frame:
old_data: {'old_repo_XML': <yum.repoMDObject.RepoMD instance at 0x7fb6de1c3cf8>, 'old_MD_files': [], 'local': '/var/cache/yum/x86_64/7/passenger/repomd.xml', 'new_MD_files': ['/var/cache/yum/x86_64/7/passenger/8f412771641e178342bc94987fe1b908b15b6f198c0493371901fda10365335f-filelists.sqlite.bz2', '/var/cache/yum/x86_64/7/passenger/0efe81311bc8af5a88ca887aab69879de3517a1506378e3bc8111b0f0fbc4e00-primary.sqlite.bz2', '/var/cache/yum/x86_64/7/passenger/1d5de65d4c7d37f67670300963beeb85c36536deb81d21f6fd747ca5e0340ba2-other.sqlite.bz2'], 'old_local': '/var/cache/yum/x86_64/7/passenger/repomd.xml.old.tmp'}
self: <yum.yumRepo.YumRepository object at 0x7fb6de24cf50>
fname: '/var/cache/yum/x86_64/7/passenger/1d5de65d4c7d37f67670300963beeb85c36536deb81d21f6fd747ca5e0340ba2-other.sqlite.bz2'
Additional Informationreporter: libreport-2.1.11.1
cmdline: /usr/bin/python /bin/yum makecache
executable: /bin/yum
kernel: 3.10.0-1127.8.2.el7.x86_64
pkg_fingerprint: 24C6 A8A7 F4A8 0EB5
pkg_vendor: CentOS
reproducible: Not sure how to reproduce the problem
runlevel: N 3
type: Python
uid: 0
TagsNo tags attached.
abrt_hash064006f54b75bb9271c60312b0babdd786ec7363
URLhttps://retrace.fedoraproject.org/faf/reports/bthash/91131ef11edfa893bf06d9aed5c2f11d2824c962

Activities

TuxHandwerker

TuxHandwerker

2020-05-26 05:25

reporter  

backtrace (1,874 bytes)
yumRepo.py:1334:_revertOldRepoXML:OSError: [Errno 2] No such file or directory

Traceback (most recent call last):
  File "/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 375, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 184, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 585, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 1384, in doCommand
    base.repos.doSetup()
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 157, in doSetup
    self.retrieveAllMD()
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 112, in retrieveAllMD
    repo._revertOldRepoXML()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1334, in _revertOldRepoXML
    os.rename(old_data['old_local'], old_data['local'])
OSError: [Errno 2] No such file or directory

Local variables in innermost frame:
old_data: {'old_repo_XML': <yum.repoMDObject.RepoMD instance at 0x7fb6de1c3cf8>, 'old_MD_files': [], 'local': '/var/cache/yum/x86_64/7/passenger/repomd.xml', 'new_MD_files': ['/var/cache/yum/x86_64/7/passenger/8f412771641e178342bc94987fe1b908b15b6f198c0493371901fda10365335f-filelists.sqlite.bz2', '/var/cache/yum/x86_64/7/passenger/0efe81311bc8af5a88ca887aab69879de3517a1506378e3bc8111b0f0fbc4e00-primary.sqlite.bz2', '/var/cache/yum/x86_64/7/passenger/1d5de65d4c7d37f67670300963beeb85c36536deb81d21f6fd747ca5e0340ba2-other.sqlite.bz2'], 'old_local': '/var/cache/yum/x86_64/7/passenger/repomd.xml.old.tmp'}
self: <yum.yumRepo.YumRepository object at 0x7fb6de24cf50>
fname: '/var/cache/yum/x86_64/7/passenger/1d5de65d4c7d37f67670300963beeb85c36536deb81d21f6fd747ca5e0340ba2-other.sqlite.bz2'
backtrace (1,874 bytes)
environ (246 bytes)
MAILTO=root
LANG=en_US.UTF-8
SHELL=/bin/bash
XDG_RUNTIME_DIR=/run/user/0
GNUPGHOME=/var/lib/yum/repos/x86_64/7/passenger/gpgdir
SHLVL=3
PWD=/root
LOGNAME=root
USER=root
HOME=/root
PATH=/sbin:/bin:/usr/sbin:/usr/bin
XDG_SESSION_ID=3695
_=/bin/yum
environ (246 bytes)
machineid (135 bytes)
systemd=2279828632994fd1aa367f21c89e49a3
sosreport_uploader-dmidecode=1994200cfe2c59d8f5d40620716f368a091c32153625330c71f7d06d90db3e12
machineid (135 bytes)

Issue History

Date Modified Username Field Change
2020-05-26 05:25 TuxHandwerker New Issue
2020-05-26 05:25 TuxHandwerker File Added: backtrace
2020-05-26 05:25 TuxHandwerker File Added: environ
2020-05-26 05:25 TuxHandwerker File Added: machineid