Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 343119

Summary: unclear error output when $PKGDIR is full
Product: Portage Development Reporter: Robin Johnson <robbat2>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: james.al.stevenson, sam
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-10-28 17:34:42 UTC
# emerge -1v live  --nodeps
Traceback (most recent call last):
  File "/usr/bin/emerge", line 43, in <module>
    retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1323, in emerge_main
    _global_updates(trees, mtimedb["updates"], quiet=("--quiet" in myopts)):
  File "/usr/lib64/portage/pym/portage/_global_updates.py", line 50, in _global_updates
    bindb.bintree.populate()
  File "/usr/lib64/portage/pym/portage/dbapi/bintree.py", line 517, in populate
    self._populate(getbinpkgs)
  File "/usr/lib64/portage/pym/portage/dbapi/bintree.py", line 735, in _populate
    f.close()
  File "/usr/lib64/portage/pym/portage/util/__init__.py", line 1122, in close
    f.close()
IOError: [Errno 5] Input/output error

Root cause is that the mountpoint for $PKGDIR has run out of space.

Suggested fix:
- Check for free space before trying to write the Packages file?
Comment 1 James Stevenson 2021-08-15 17:51:59 UTC
I reckon that we could check disk usage with shutil before writing. Will look into putting something together.