Executing lighthouse lic gets stuck in alpine nodejs environment #16522
Replies: 8 comments
-
Does adding https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#tips |
Beta Was this translation helpful? Give feedback.
-
I retest and get the same results.
|
Beta Was this translation helpful? Give feedback.
-
You need to add it to
|
Beta Was this translation helpful? Give feedback.
-
I readjusted the test command, but it still stuck. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Is there any progress on this issue? I still cannot run Lighthouse normally in my scenario. |
Beta Was this translation helpful? Give feedback.
-
I'm going to convert this to a discussion. We don't have the expertise or resources to help debug Docker issues like this further, but hopefully others can help. Some pointers / my 2c:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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
Beta Was this translation helpful? Give feedback.
All reactions