Bug 4914 - Not talkative enough error message for /dev/shm issues
Summary: Not talkative enough error message for /dev/shm issues
Status: RESOLVED WONTFIX
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low minor
Target Milestone: Future
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-07-25 13:14 UTC by Laszlo Papp
Modified: 2017-06-13 11:06 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laszlo Papp 2013-07-25 13:14:31 UTC
A newbie could not figure out the real issue so easily out of the error message below.

bitbake core-image-minimal
Traceback (most recent call last):
  File "/home/lpapp/Projects/foo/poky-denzil-7.0.1/bitbake/bin//bitbake", line 258, in <module>
    ret = main()
  File "/home/lpapp/Projects/foo/poky-denzil-7.0.1/bitbake/bin//bitbake", line 226, in main
    server.initServer()
  File "/home/lpapp/Projects/foo/poky-denzil-7.0.1/bitbake/lib/bb/server/process.py", line 245, in initServer
    self.event_queue = ProcessEventQueue(0)
  File "/usr/lib/python2.7/multiprocessing/queues.py", line 63, in __init__
    self._rlock = Lock()
  File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in __init__
    SemLock.__init__(self, SEMAPHORE, 1, 1)
OSError: [Errno 13] Permission denied
Pseudo is not present but is required, building this first before the main build
Traceback (most recent call last):
  File "/home/lpapp/Projects/foo/poky-denzil-7.0.1/bitbake/bin//bitbake", line 258, in <module>
    ret = main()
  File "/home/lpapp/Projects/foo/poky-denzil-7.0.1/bitbake/bin//bitbake", line 226, in main
    server.initServer()
  File "/home/lpapp/Projects/foo/poky-denzil-7.0.1/bitbake/lib/bb/server/process.py", line 245, in initServer
    self.event_queue = ProcessEventQueue(0)
  File "/usr/lib/python2.7/multiprocessing/queues.py", line 63, in __init__
    self._rlock = Lock()
  File "/usr/lib/python2.7/multiprocessing/synchronize.py", line 147, in __init__
    SemLock.__init__(self, SEMAPHORE, 1, 1)
OSError: [Errno 13] Permission denied
DEBUG: Removed the following variables from the environment: LANGUAGE, SHLVL, SUDO_USER, BBFETCH2, USERNAME, SUDO_UID, SUDO_COMMAND, SUDO_GID, BUILDDIR, OLDPWD, MAIL, LS_COLORS, LC_COLLATE

Even if this patch helps something, I think it could be fine-tuned into separate non-existent and write issue error message to be "perfect" unless there is some limitation I am unaware of:
http://patchwork.openembedded.org/patch/49621/
Comment 1 Paul Eggleton 2013-07-25 15:57:10 UTC
Since it's not at all clear from the above comment, in master we do produce a sensible error message instead of the traceback pasted above. What is being asked for is enhancing that new error message so that instead of combining the "does not exist" and "not writable" checks into one, it does the checks separately and shows the appropriate error depending on which issue is present.
Comment 2 Laszlo Papp 2013-07-25 16:01:47 UTC
That is what I wrote, yes.
Comment 3 Paul Eggleton 2017-06-13 11:06:21 UTC
So looking back over this I'm fairly satisfied with the current checks - it's unlikely to get triggered other than in highly customised container setups where you should understand the implications of not providing writeable /dev/shm.

Having said that we would accept a patch to improve the messaging / checks if a reasonable one were to be submitted.