getting error while deploying

moaizFREE

9 months ago

3 resolve ghcr.io/railwayapp/nixpacks:ubuntu-1722297819@sha256:91bbbdf4bf734a471738c36a57b5ba191e5c81ad1d0e9d60d70da2d318639eb8 done

3 DONE 0.0s

4 [internal] load .dockerignore

4 transferring context: 2B done

4 DONE 0.0s

5 [internal] load build context

5 transferring context: 627.06kB 0.0s done

5 DONE 0.0s

6 [stage-0 2/10] WORKDIR /app/

6 CACHED

7 [stage-0 3/9] COPY .nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix .nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix

7 CACHED

8 [stage-0 4/9] RUN nix-env -if .nixpacks/nixpkgs-bdd2f439c62aa0b8aa97f5c784a965c23f968fe6.nix && nix-collect-garbage -d

8 CACHED

9 [stage-0 5/9] COPY . /app/.

9 DONE 0.0s

10 [stage-0 6/9] COPY . /app/.

10 DONE 0.0s

11 [stage-0 7/9] RUN --mount=type=cache,id=s/4e25cc6d-b4e6-447f-b93c-ad2f234053af-nodemodules/cache,target=/app/nodemodules/.cache --mount=type=cache,id=s/4e25cc6d-b4e6-447f-b93c-ad2f234053af-web/next/cache,target=/app/web/.next/cache yarn build

11 0.226 /bin/bash: line 1: yarn: command not found

11 ERROR: process "/bin/bash -ol pipefail -c yarn build" did not complete successfully: exit code: 127

[stage-0 7/9] RUN --mount=type=cache,id=s/4e25cc6d-b4e6-447f-b93c-ad2f234053af-nodemodules/cache,target=/app/nodemodules/.cache --mount=type=cache,id=s/4e25cc6d-b4e6-447f-b93c-ad2f234053af-web/next/cache,target=/app/web/.next/cache yarn build:

0.226 /bin/bash: line 1: yarn: command not found

Dockerfile:23

21 | # build phase

22 | COPY . /app/.

23 | >>> RUN --mount=type=cache,id=s/4e25cc6d-b4e6-447f-b93c-ad2f234053af-nodemodules/cache,target=/app/nodemodules/.cache --mount=type=cache,id=s/4e25cc6d-b4e6-447f-b93c-ad2f234053af-web/next/cache,target=/app/web/.next/cache yarn build

24 |

25 |

ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn build" did not complete successfully: exit code: 127

added a railway.toml file with content generated by railway . still getting error

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

0 Replies

getting error while deploying - Railway Help Station