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

PermissionDenied #304

Open
bassra opened this issue Nov 24, 2024 · 3 comments
Open

PermissionDenied #304

bassra opened this issue Nov 24, 2024 · 3 comments

Comments

@bassra
Copy link

bassra commented Nov 24, 2024

Hi,

I download build from https://github.com/lightpanda-io/browser/releases/download/nightly/lightpanda-x86_64-linux

and try to run in docker but it fails everytime with following error, i tried different ports but couldn’t succeed.

info(cli): Server mode: listening on 0.0.0.0:9223...
error: PermissionDenied
@bassra
Copy link
Author

bassra commented Nov 24, 2024

if i build the docker locally and run it, it gives following error.

docker run -it  -p 3245:3245 lightpanda:latest
info(cli): Server mode: listening on 0.0.0.0:3245...
info(server): accepting new conn...
error(server): accept error: error.WouldBlock
error(server): Server error: error.WouldBlock

@krichprollsch
Copy link
Member

krichprollsch commented Nov 24, 2024

Hello @bassra, thank you for testing the browser 🙏

I think the issue is due to docker's default seccomp profile blocking io_uring.
See moby/moby#47532.

Can you try to run your container w/ --privileged option?

Note 1: On my local test I wasn't able to stop the container correctly, I had to kill it manually. I don't know what's wrong 🤔

Note 2: about your tests, for now, the binary doesn't expose directly a websocket server for CDP, but an internal protocol instead.
You will have to use a gateway server until we finish the websocket (WIP).

If your interested, I can share with you the gateway binary.

Thanks to #310 you can directly use lightpanda now.

Note 3: I tried to retrieve a webpage directly with the lightpanda https://google.com command, but the final container doesn't include ca certificates, that's something we have to fix.

@krichprollsch
Copy link
Member

hello @bassra, about my Note 2, thanks to #310 the websocket is now directly intergrated. No need to have an additional gateway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants