cooker.py: trap the ENOSPC error and translate it
cover cooker.py: trap the ENOSPC error and translate it
The following changes since commit d9d5b8b499af3ae01a1e33d0d3969c54c2d4ab1b:
depmodwrapper-cross: Update to use STAGING_KERNEL_BUILDDIR (2015-01-17 17:05:45 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib rbt/enospc
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=rbt/enospc
Robert Yang (1):
cooker.py: trap the ENOSPC error and translate it
bitbake/lib/bb/cooker.py | 5 +++++ 1 file changed, 5 insertions(+)
Signature · 1 line
1.7.9.5
PATCH 1/1 cooker.py: trap the ENOSPC error and translate it
Trap the ENOSPC error and translate it into a human readable error message, which is good for debugging.
Signed-off-by Robert Yang <[email protected]>
--- bitbake/lib/bb/cooker.py | 5 +++++ 1 file changed, 5 insertions(+)
bitbake/lib/bb/cooker.py +5 -0
@@ -198,6 +198,11 @@ class BBCooker: f = os.path.dirname(f) watcher.bbseen.append(f) continue + if 'ENOSPC' in str(e): + providerlog.error("No space left on device or exceeds fs.inotify.max_user_watches?") + providerlog.error("To check max_user_watches: sysctl -n fs.inotify.max_user_watches.") + providerlog.error("To modify max_user_watches: sysctl -n -w fs.inotify.max_user_watches=<value>.") + providerlog.error("Root privilege is required to modify max_user_watches.") raise def sigterm_exception(self, signum, stackframe):
Signature · 1 line
1.7.9.5