docker: docker compose build failed with errors
Just trying to build the image so I can restore using a previous database snapshot but I can’t build it for the life of me… have read all the other issue and tried building on multiple machines without any luck. I’ve tried building with 32GB of RAM so I know that’s not an issue either. Would appreciate any help at all. Using latest version of docker repo and calcom submodule.
65.23 ➤ YN0013: │ zod@npm:3.22.4 can't be found in the cache and will be fetched from the remote registry
65.31 ➤ YN0013: │ zip-stream@npm:4.1.1 can't be found in the cache and will be fetched from the remote registry
65.31 ➤ YN0013: │ zod-error@npm:1.5.0 can't be found in the cache and will be fetched from the remote registry
65.31 ➤ YN0013: │ zod-prisma@npm:0.5.4 can't be found in the cache and will be fetched from the remote registry
65.31 ➤ YN0013: │ zod@npm:3.22.4 can't be found in the cache and will be fetched from the remote registry
65.31 ➤ YN0013: │ zustand@npm:4.5.2 can't be found in the cache and will be fetched from the remote registry
83.42 ➤ YN0066: │ typescript@patch:typescript@npm%3A5.4.2#~builtin<compat/typescript>::version=5.4.2&hash=1f5320: Cannot apply hunk #1
88.57 ➤ YN0066: │ typescript@patch:typescript@npm%3A5.3.3#~builtin<compat/typescript>::version=5.3.3&hash=1f5320: Cannot apply hunk #1
106.7 ➤ YN0000: └ Completed in 1m 41s
106.9 ➤ YN0000: ┌ Link step
141.3 ➤ YN0007: │ dotenv-checker@npm:1.1.5 must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ turbo@npm:1.10.1 must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ @prisma/engines@npm:5.11.0 must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ esbuild@npm:0.19.8 must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ msw@npm:0.42.3 [6d903] must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ @prisma/engines@npm:5.3.1 must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ @prisma/engines@npm:5.4.2 must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ esbuild@npm:0.18.20 must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ yarn@npm:1.22.19 must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ @prisma/engines@npm:5.1.1 must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ core-js@npm:3.21.1 must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ @sentry/cli@npm:1.75.2 must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ core-js-pure@npm:3.32.1 must be built because it never has been before or the last one failed
141.3 ➤ YN0007: │ protobufjs@npm:7.2.6 must be built because it never has been before or the last one failed
154.9 ➤ YN0007: │ calcom-monorepo@workspace:. must be built because it never has been before or the last one failed
154.9 ➤ YN0007: │ prisma@npm:5.11.0 must be built because it never has been before or the last one failed
154.9 ➤ YN0007: │ prisma@npm:5.4.2 must be built because it never has been before or the last one failed
160.0 ➤ YN0009: │ calcom-monorepo@workspace:. couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-24c68e1c/build.log)
160.0 ➤ YN0007: │ @prisma/client@npm:5.4.2 [5d0b5] must be built because it never has been before or the last one failed
160.0 ➤ YN0007: │ @prisma/client@npm:5.4.2 [a80c8] must be built because it never has been before or the last one failed
161.2 ➤ YN0000: └ Completed in 54s 302ms
161.5 ➤ YN0000: Failed with errors in 2m 36s
------
failed to solve: process "/bin/sh -c yarn config set httpTimeout 1200000 && npx turbo prune --scope=@calcom/web --docker && yarn install" did not complete successfully: exit code: 1
About this issue
- Original URL
- State: open
- Created 3 months ago
- Reactions: 2
- Comments: 15 (1 by maintainers)
Can confirm adding V2_URL did result in a successful build.
Here’s what I did (which is just a more explicit edit described by @eleith):
Dockerfileapifolder since it seems to be added in 3 weeks agoNEXT_PUBLIC_API_V2_URLsince it is called at 2 locations in the sub-module (turbo.json and next.config.js)docker-compose.ymlin theenvironmentsection (I did this only for good measure, but I do not think this is required)With this I am able to build v3.9.4 locally, as well deploy locally (meaning I am able to login and view my availability, I have not tested out anything else).
What is unclear to me are
apifolder needs to be copied intobuilder-two? Because I do not see any error messages in the browser console when running the app locallycalcomuses 5555). Again I don’t see any error message when opening the homepage or the profile page, but it is puzzling that it is necessary to complete the build@alishaz-polymath Maybe this helps you to narrow down the issue cause, or could shed more light on APIv2?
Many thanks, worked for me with 4.0.1
Hi, @mtc-20. Thanks to your message I managed to go further in the build process, but it still stops at a step almost at the end, the same one reported by another user. https://github.com/calcom/docker/issues/349 Any ideas?
you can replace this line in Dockerfile to
COPY calcom/apps ./appsand then add the v2 URL as from the
.env.exampleinto your own.envand also your build env as wellcc @krumware or @alishaz-polymath, something is up with the yarn build and/or the yarn lock?
repeated errors about
must be built because it never has been before or the last one failedand then ultimately the yarn build command fails. dockerfile can not be built.