-
Notifications
You must be signed in to change notification settings - Fork 102
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
export fails in container, connecting to different port than the start port #40
Comments
Hey, Can you provide any more info on this to replicate? Is it within a Docker? Did you look and see which port was actually used? Thanks! |
Yes, it's within Docker container. The port looks random to me and it's different every build
|
this line |
I will have to look into it over the weekend :) Off the top of my head, am not sure. If it's possible, I would Thanks! |
|
Yeah, understood 😃 I'll have time to look at this weekend! |
Hey @tuananh, Was swamped at the time, so coming back with more information:
So, this is a A quick thing you can try for me: Does it work if you change this line to this? let chromeFlags = ['--headless', '--disable-gpu', '--no-sandbox']; |
lemme give those a try later today |
Sounds good, thank you 👏 |
@lukeed yes, the |
Awesome! Then that confirms another finding: Learned that you can't run headless Chrome without correct user permissions. Search for "How do I create a Docker container that runs Headless Chrome?" in this article. Here's the portion of a Docker file Google links to in order to set up the user properly: https://github.com/ebidel/lighthouse-ci/blob/master/builder/Dockerfile#L35-L40 I'm tempted just to add |
@lukeed i tried adding chrome user like this https://github.com/ebidel/lighthouse-ci/blob/master/builder/Dockerfile#L35-L40 but the old error persists still until I add Will take a look at this later. Many thanks for your help |
The next release with have I think that as long as sandboxing isn't disabled by default, that should be fine 😅 |
I'm not sure why the server started on port 36573 but somehow, it's connecting to 33435
I'm having this issue in container though, not on my local machine.
The text was updated successfully, but these errors were encountered: