Bug 922511 - [abrt] dnf-0.2.22-1.git97180b8.fc18: yumRepo.py:904:_revertOldRepoXML:OSError: [Errno 2] No such file or directory
Summary: [abrt] dnf-0.2.22-1.git97180b8.fc18: yumRepo.py:904:_revertOldRepoXML:OSError...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:df3344d2f3f6799be2cc8f59846...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-17 15:16 UTC by gatlibs
Modified: 2014-09-30 23:41 UTC (History)
2 users (show)

Fixed In Version: dnf-0.3.0-2
Clone Of:
Environment:
Last Closed: 2013-03-21 14:13:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (2.04 KB, text/plain)
2013-03-17 15:16 UTC, gatlibs
no flags Details
File: core_backtrace (1.27 KB, text/plain)
2013-03-17 15:16 UTC, gatlibs
no flags Details
File: environ (130 bytes, text/plain)
2013-03-17 15:16 UTC, gatlibs
no flags Details

Description gatlibs 2013-03-17 15:16:50 UTC
Version-Release number of selected component:
dnf-0.2.22-1.git97180b8.fc18

Additional info:
cmdline:        /usr/bin/python /usr/bin/dnf makecache
executable:     /usr/bin/dnf
kernel:         3.8.2-206.fc18.x86_64
uid:            0

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

Traceback (most recent call last):
  File "/usr/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 306, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 134, in main
    result, resultmsgs = cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1412, in run
    return self.command.doCommand(self.base.basecmd, self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands.py", line 964, in doCommand
    sack = self.base.sack # triggers metadata sync
  File "/usr/lib/python2.7/site-packages/dnf/yum/__init__.py", line 218, in sack
    self._add_repo_to_hawkey(r.id)
  File "/usr/lib/python2.7/site-packages/dnf/yum/__init__.py", line 180, in _add_repo_to_hawkey
    repo.repomd_fn = yum_repo.repoXML.srcfile
  File "/usr/lib/python2.7/site-packages/dnf/yum/yumRepo.py", line 1266, in <lambda>
    repoXML = property(fget=lambda self: self._getRepoXML(),
  File "/usr/lib/python2.7/site-packages/dnf/yum/yumRepo.py", line 1262, in _getRepoXML
    self._loadRepoXML(text=self)
  File "/usr/lib/python2.7/site-packages/dnf/yum/yumRepo.py", line 1251, in _loadRepoXML
    if self._commonLoadRepoXML(text):
  File "/usr/lib/python2.7/site-packages/dnf/yum/yumRepo.py", line 1052, in _commonLoadRepoXML
    self._revertOldRepoXML()
  File "/usr/lib/python2.7/site-packages/dnf/yum/yumRepo.py", line 904, in _revertOldRepoXML
    os.rename(old_local, local)
OSError: [Errno 2] No such file or directory

Local variables in innermost frame:
old_data: {'old_repo_XML': <dnf.yum.repoMDObject.RepoMD instance at 0x20bbb90>, 'local': '/var/cache/dnf/x86_64/18/fedora/repomd.xml', 'new_MD_files': [], 'old_local': '/var/cache/dnf/x86_64/18/fedora/repomd.xml.old.tmp'}
local: '/var/cache/dnf/x86_64/18/fedora/repomd.xml'
self: <dnf.yum.yumRepo.YumRepository object at 0x209ff10>
old_local: '/var/cache/dnf/x86_64/18/fedora/repomd.xml.old.tmp'

Comment 1 gatlibs 2013-03-17 15:16:54 UTC
Created attachment 711428 [details]
File: backtrace

Comment 2 gatlibs 2013-03-17 15:16:56 UTC
Created attachment 711429 [details]
File: core_backtrace

Comment 3 gatlibs 2013-03-17 15:16:58 UTC
Created attachment 711430 [details]
File: environ

Comment 4 Ales Kozumplik 2013-03-21 14:13:22 UTC
hello, the metadata handling code was completely replaced in dnf-0.3.0. Please try the operation there and reopen this bug if you hit it again.


Note You need to log in before you can comment on or make changes to this bug.