-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Executing lighthouse lic gets stuck in alpine nodejs environment #15793
Comments
Does adding https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#tips |
I retest and get the same results.
|
You need to add it to
|
I tried run in on alpine node:21.7.0-alpine3.19 to generate reports for my nextjs applicaiton. --disable-dev-shm-usage did help. Thank you. ✅ npx lighthouse http://localhost:8080 --chrome-flags="--headless --disable-dev-shm-usage" lhci lighthouserc.json {
"ci": {
"collect": {
"startServerCommand": "npm start",
"settings": {
"chromeFlags": "--headless --disable-dev-shm-usage",
},
"url": ["http://localhost:8080"]
}
}
} FROM node:21.7.0-alpine3.19 AS test
ENV APP_ENV development
ENV NODE_ENV development
ENV NEXT_TELEMETRY_DISABLED 1
RUN apk add chromium
RUN mkdir /app
RUN mkdir /source
RUN addgroup --system --gid 1001 app-users
RUN adduser -D --system --uid 1001 --home /app app-user app-users
RUN chown -R app-user:app-users /app
RUN chown -R app-user:app-users /source
WORKDIR /app
COPY --from=build_test --chown=app-user:app-users /source /source
COPY --from=build_test --chown=app-user:app-users /source/public ./public
COPY --from=build_test --chown=app-user:app-users /source/.next/standalone ./
COPY --from=build_test --chown=app-user:app-users /source/.next/static ./.next/static
USER app-user
EXPOSE 8080
ENV PORT 8080
ENV HOSTNAME 0.0.0.0 |
In our case, Adding So My output is below
We see after 10 minutes we get
node: v20.11.1 We occasionally when escaping the command will see the same log as shown in this puppeteer log. |
Is there any progress on this issue? I still cannot run Lighthouse normally in my scenario. |
FAQ
URL
https://baidu.com
What happened?
When I execute Lighthouse in the alpine nodejs docker environment, Lighthouse gets stuck. I see in the log that chromium-browser is started normally, but Lighthouse keeps getting stuck and cannot be executed.
What did you expect?
Lighthouse can execute normally and output results in alpine nodejs docker environment
What have you tried?
No response
How were you running Lighthouse?
CLI, node
Lighthouse Version
11.5.0
Chrome Version
Chromium 112.0.5615.165
Node Version
v18.15.0
OS
Linux
Relevant log output
The text was updated successfully, but these errors were encountered: