All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] cooker.py: trap the ENOSPC error and translate it
@ 2015-01-20  7:29 Robert Yang
  2015-01-20  7:29 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2015-01-20  7:29 UTC (permalink / raw)
  To: bitbake-devel

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(+)

-- 
1.7.9.5



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] cooker.py: trap the ENOSPC error and translate it
  2015-01-20  7:29 [PATCH 0/1] cooker.py: trap the ENOSPC error and translate it Robert Yang
@ 2015-01-20  7:29 ` Robert Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2015-01-20  7:29 UTC (permalink / raw)
  To: bitbake-devel

Trap the ENOSPC error and translate it into a human readable error
message, which is good for debugging.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
 bitbake/lib/bb/cooker.py |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 95f65ac..011f069 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=<value>.")
+                        providerlog.error("Root privilege is required to modify max_user_watches.")
                     raise
 
     def sigterm_exception(self, signum, stackframe):
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-20  7:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-20  7:29 [PATCH 0/1] cooker.py: trap the ENOSPC error and translate it Robert Yang
2015-01-20  7:29 ` [PATCH 1/1] " Robert Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.