From c6f933e5cfdaddff9e7a5f1b73af32818da7d5eb Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Mon, 19 Jan 2015 23:29:16 -0800 Subject: bitbake: 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. (Bitbake rev: 2b084dff6ff0d274fbbf7ab07022507f7249e427) Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bitbake') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 554dfbd24d..d9b200e129 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -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=.") + providerlog.error("Root privilege is required to modify max_user_watches.") raise def sigterm_exception(self, signum, stackframe): -- cgit v1.2.3-54-g00ecf