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 build fails on 500 Internal Server Error response #705

Open
pjonsson opened this issue Nov 20, 2024 · 0 comments · May be fixed by #728
Open

Docker build fails on 500 Internal Server Error response #705

pjonsson opened this issue Nov 20, 2024 · 0 comments · May be fixed by #728

Comments

@pjonsson
Copy link
Contributor

This morning, I got this in the logs from building the TerriaMap image:

#12 [build 1/5] COPY --chown=node:node . /app
#12 DONE 1.6s
#13 [build 2/5] WORKDIR /app
#13 DONE 0.3s
#14 [build 3/5] RUN yarn install --network-timeout 1000000
#14 0.717 yarn install v1.18.0
#14 0.792 [1/5] Validating package.json...
#14 0.796 [2/5] Resolving packages...
#14 1.196 [3/5] Fetching packages...
#14 20.05 error An unexpected error occurred: "https://registry.yarnpkg.com/jsep/-/jsep-1.3.9.tgz: Request failed \"500 Internal Server Error\"".
#14 20.05 info If you think this is a bug, please open a bug report with the information provided in "/app/yarn-error.log".
#14 20.05 info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
#14 ERROR: process "/bin/sh -c yarn install --network-timeout 1000000" did not complete successfully: exit code: 1
------

Apparently yarn version 2 retries requests automatically (yarnpkg/yarn#5706 (comment)) so it might be a good idea to update to node 18+ and yarn set version berry in the Dockerfile.

pjonsson added a commit to pjonsson/TerriaMap that referenced this issue Feb 15, 2025
@pjonsson pjonsson linked a pull request Feb 15, 2025 that will close this issue
pjonsson added a commit to pjonsson/TerriaMap that referenced this issue Feb 18, 2025
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

Successfully merging a pull request may close this issue.

1 participant