Open luckydonald opened 1 month ago
I have exactly the same issue when deploying on production environment that is on a separate server. It deploys without any issue on the coolify localhost for my development environment. I tried adding the explicit package manager version to package.json like it said here, but it unfortunately did not work.
Same thing happens to me with nextjs build in coolify cloud..
On my remote server, the first build goes through successfully, but the second build gives an error:
“next": “15.0.2”
#8 CACHED
#9 [stage-0 5/11] RUN sudo apt-get update && sudo apt-get install -y --no-install-recommends curl wget
#9 CACHED
#10 [stage-0 6/11] COPY . /app/.
#10 DONE 0.0s
#11 [stage-0 7/11] RUN --mount=type=cache,id=uwokcgkw8k0k4o80gk8w8wsk-/root/npm,target=/root/.npm npm ci
#11 ERROR: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 137
------
> [stage-0 7/11] RUN --mount=type=cache,id=uwokcgkw8k0k4o80gk8w8wsk-/root/npm,target=/root/.npm npm ci:
------
2 warnings found (use --debug to expand):
- UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 18)
Dockerfile:20
--------------------
18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=uwokcgkw8k0k4o80gk8w8wsk-/root/npm,target=/root/.npm npm ci
21 |
22 | # build phase
--------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm ci" did not complete successfully: exit code: 137
Deployment failed. Removing the new version of your application.
Check your packageManager
in package.json, In my case, I have to change it from 8.x.x
to 9.x.x
"packageManager": "pnpm@version"
same issue on a brand new server with coolify
Can anyone who can reproduce this problem please provide me with a sample repository so I can investigate this further.
Error Message and Logs
Steps to Reproduce
Example Repository URL
No response
Coolify Version
https://github.com/coollabsio/coolify/releases/tag/v4.0.0-beta.360
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Same as #3915
Additional Information
No response