Trying redeploy something that's already working but new build fails everytime. Been a few months since last deploy.
2-fly-4-ai
HOBBYOP

a year ago

[Region: us-west1]
==============
Using Nixpacks
==============

context: 01946569106d1e5d280ea93e5ebe2364

╔═════════════════════════ Nixpacks v1.28.1 ═════════════════════════╗
║ setupnodejs_18, npm-9_x, openssl                           ║
║────────────────────────────────────────────────────────────────────║
║ installnpm install --legacy-peer-deps                        ║
║────────────────────────────────────────────────────────────────────║
║ buildnpx prisma generate  &&  nx build dna-generations-app ║
║────────────────────────────────────────────────────────────────────║
║ startnx run dna-generations-app:serve:production           ║
╚════════════════════════════════════════════════════════════════════╝


#0 building with "builder-r3pw" instance using docker-container driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 4.12kB done

#1 DONE 0.1s

#2 [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1725321821

#2 DONE 0.3s


#3 [stage-0  1/10] FROM ghcr.io/railwayapp/nixpacks:ubuntu-1725321821@sha256:0cec4cb236c32e6bc58b896fff852f629a7abad4e4f059840d96f0869b4be2fd
#3 resolve ghcr.io/railwayapp/nixpacks:ubuntu-1725321821@sha256:0cec4cb236c32e6bc58b896fff852f629a7abad4e4f059840d96f0869b4be2fd done
#3 DONE 0.0s

#4 [stage-0  2/10] WORKDIR /app/
#4 CACHED

#5 [internal] load .dockerignore

#5 transferring context: 2B done
#5 DONE 0.1s

#6 [internal] load build context

......
#10 28.66 npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated

#10 28.93 npm
<https://github.com/visionmedia/superagent/releases>.

#10 89.66
#10 89.66 added 5252 packages, and audited 5504 packages in 1m
#10 89.66

#11 [stage-0  7/10] COPY . /app/.

#11 DONE 2.4s


#12 [stage-0  8/10] RUN --mount=type=cache,id=s/649ce10c-d656-4338-8c48-6a4510500498-next/cache,target=/app/.next/cache --mount=type=cache,id=s/649ce10c-d656-4338-8c48-6a4510500498-node_modules/cache,target=/app/node_modules/.cache npx prisma generate  &&  nx build dna-generations-app

#12 0.464 npm
WARN config production Use `--omit=dev` instead.

#12 5.590 npm WARN exec The following package was not found and will be installed: prisma@5.19.1

#12 8.701 Prisma schema loaded from prisma/schema.prisma

#12 9.756
#12 9.756Generated Prisma Client (v5.8.1) to ./node_modules/@prisma/client in 206ms
#12 9.756
#12 9.756 Start by importing your Prisma Client (See: http://pris.ly/d/importing-client)
#12 9.756
#12 9.756 Tip: Want to turn off tips and other hints? https://pris.ly/tip-4-nohints
#12 9.756
#12 9.756
#12 9.756 warn Versions of prisma@5.19.1 and @prisma/client@5.8.1 don't match.
#12 9.756 This might lead to unexpected behavior.
#12 9.756 Please make sure they have the same version.

#12 106.3

#12 106.3  >  NX   Nx Cloud: Workspace is disabled
#12 106.3
#12 ERROR: process "/bin/bash -ol pipefail -c npx prisma generate  &&  nx build dna-generations-app" did not complete successfully: exit code: 1
-----
> [stage-0  8/10] RUN --mount=type=cache,id=s/649ce10c-d656-4338-8c48-6a4510500498-next/cache,target=/app/.next/cache --mount=type=cache,id=s/649ce10c-d656-4338-8c48-6a4510500498-node_modules/cache,target=/app/node_modules/.cache npx prisma generate  &&  nx build dna-generations-app:
9.756
9.756 Tip: Want to turn off tips and other hints? https://pris.ly/tip-4-nohints
9.756
9.756
9.756 warn Versions of prisma@5.19.1 and @prisma/client@5.8.1 don't match.

9.756 This might lead to unexpected behavior.
9.756 Please make sure they have the same version.
106.3
106.3  >  NX   Nx Cloud: Workspace is disabled
106.3
-----

Dockerfile:24
-------------------
22 |     # build phase
23 |     COPY . /app/.
24 | >>> RUN --mount=type=cache,id=s/649ce10c-d656-4338-8c48-6a4510500498-next/cache,target=/app/.next/cache --mount=type=cache,id=s/649ce10c-d656-4338-8c48-6a4510500498-node_modules/cache,target=/app/node_modules/.cache npx prisma generate  &&  nx build dna-generations-app
25 |
26 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npx prisma generate  &&  nx build dna-generations-app" did not complete successfully: exit code: 1

Error: Docker build failed

1 Replies

brody
EMPLOYEE

a year ago

Please do not hijack other user's threads, and kindly note that we can't guarantee response times for Hobby user's.

With that said, this error wouldn't be specific to Railway, so perhaps this stack overflow answer would be helpful -

https://stackoverflow.com/a/78619996


Loading...