Bug 1046731 - [abrt] yum: sqlitecachec.py:46:getPrimary:TypeError: Can not create providesname index: disk I/O error
Summary: [abrt] yum: sqlitecachec.py:46:getPrimary:TypeError: Can not create providesn...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:329e60955b099ff2dca5e75532d...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-26 19:33 UTC by Daniel Sornoski
Modified: 2021-09-09 11:32 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-06 09:48:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.81 KB, text/plain)
2013-12-26 19:34 UTC, Daniel Sornoski
no flags Details
File: environ (2.21 KB, text/plain)
2013-12-26 19:34 UTC, Daniel Sornoski
no flags Details

Description Daniel Sornoski 2013-12-26 19:33:56 UTC
Version-Release number of selected component:
yum-3.4.3-106.fc19

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python /bin/yum -y install dbus-python python-ethtool usermode libxml2 libudev python-dmidecode python-gudev m2crypto libxml2-python libgudev1 pygobject2 pyOpenSSL libgudev1 libxml2-python m2crypto pygobject pyOpenSSL python-dmidecode python-gudeython-hwdata rhn-check rhn-client-tools rhnlib rhnsd rhn-setup yum-rhn-plugin
dso_list:       yum-metadata-parser-1.1.4-8.fc19.x86_64
executable:     /bin/yum
kernel:         3.11.1-200.fc19.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
sqlitecachec.py:46:getPrimary:TypeError: Can not create providesname index: disk I/O error

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 316, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 126, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 532, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 435, in doCommand
    return base.installPkgs(extcmds, basecmd=basecmd)
  File "/usr/share/yum-cli/cli.py", line 928, in installPkgs
    txmbrs = self.install(pattern=arg)
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4661, in install
    mypkgs = self.pkgSack.returnPackages(patterns=pats,
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1050, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 770, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 383, in populateSack
    sack.populate(repo, mdtype, callback, cacheonly)
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 260, in populate
    dobj = repo_cache_function(xml, csum)
  File "/usr/lib64/python2.7/site-packages/sqlitecachec.py", line 46, in getPrimary
    self.repoid))
TypeError: Can not create providesname index: disk I/O error

Local variables in innermost frame:
checksum: 'f299ff0c61f769420b774149097508d99be8e885b9367666854fd2e5d1f758f4'
self: <sqlitecachec.RepodataParserSqlite instance at 0x3939638>
location: '/var/cache/yum/x86_64/19/fedora19-x86_64-updates/gen/primary.xml'

Comment 1 Daniel Sornoski 2013-12-26 19:34:01 UTC
Created attachment 842049 [details]
File: backtrace

Comment 2 Daniel Sornoski 2013-12-26 19:34:03 UTC
Created attachment 842050 [details]
File: environ

Comment 3 Zdeněk Pavlas 2014-01-06 09:48:52 UTC
Very likely you've just ran out of disk space on /var/cache, and Yum couldn't convert primary.xml to primary.sqlite as a result.  The error handling could be better.. there's already a disk space check before we download packages, but not before metadata download (they're usually much smaller).  I don't think we should add it (it's not 100% reliable)


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