Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 343119 - unclear error output when $PKGDIR is full
Summary: unclear error output when $PKGDIR is full
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-28 17:34 UTC by Robin Johnson
Modified: 2022-10-20 02:44 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.