Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker test image can't start bitbake server #504

Open
brianhorn opened this issue May 1, 2023 · 3 comments
Open

Docker test image can't start bitbake server #504

brianhorn opened this issue May 1, 2023 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@brianhorn
Copy link
Contributor

Describe the bug
When trying to follow Testing in docker from the contribution guidelines, after running bitbake core-image-minimal-rubygems -c testimage bitbake can't establish a connection:

NOTE: Bitbake server didn't start within 5 seconds, waiting for 90
ERROR: Unable to start bitbake server (None)
ERROR: Server log for this session (/opt/build/build-ruby/bitbake-cookerdaemon.log):
47 14:06:28.923106 --- Starting bitbake server pid 47 at 2023-05-01 14:06:28.923057 ---
Traceback (most recent call last):
  File "/opt/build/layer/poky/bitbake/bin/bitbake-server", line 53, in <module>
    bb.server.process.execServer(lockfd, readypipeinfd, lockname, sockname, timeout, xmlrpcinterface)
  File "/opt/build/layer/poky/bitbake/lib/bb/server/process.py", line 538, in execServer
    sock.bind(os.path.basename(sockname))
PermissionError: [Errno 1] Operation not permitted

Note that I am mounting my project directory via sshfs, and I have found that people experience this issue when their path exceeded the character limit on socket paths and the way Docker constructs it's paths. So I have shortened the path to about 20 characters, which should fall under the character limit after Docker constructs the paths. Currently my project directory is mounted under /home/horn/f (so the paths I enter when running the docker container are /home/horn/f/build/tmp and /home/horn/f/sources). However I am still experiencing the same issue.

@brianhorn brianhorn added the bug Something isn't working label May 1, 2023
@priv-kweihmann
Copy link
Owner

@brianhorn does it work with https://hub.docker.com/r/crops/yocto containers?
Another thing you could try is to run the container with --privileged --user=yoctouser (like used in CI).

@brianhorn
Copy link
Contributor Author

@priv-kweihmann Thanks for getting back to me - unfortunately neither the container I just tried from crops/yocto (same error) or using --privileged --user=yoctouser work, so it seems there is some problem on my end.

@priv-kweihmann
Copy link
Owner

@brianhorn not sure if I can help with that issue - not being a docker magician myself :-) - I will keep the bug report as a reference still

@priv-kweihmann priv-kweihmann added the help wanted Extra attention is needed label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants