Platfom level failure for backend-production-17e9.up.railway.app
ekerintaiwoa
HOBBYOP

a month ago

This deployment failed at the container creation stage due to a platform-level issue. The build, image publish, and pre-deploy command all completed successfully, and the same configuration worked on May 8. Multiple consecutive deployments have failed with the same error since May 9, so try redeploying or contact support if the problem persists.

$10 Bounty

4 Replies

Status changed to Open Railway about 1 month ago


Do you have any error logs?


ekerintaiwoa
HOBBYOP

a month ago

2026-05-09T11:37:56.631875647Z [inf] scheduling build on Metal builder "production-builderv3-us-west1-kb4x" 2026-05-09T11:38:03.085255705Z [inf] uploading snapshot 2026-05-09T11:38:03.120131528Z [inf] unpacking archive 2026-05-09T11:38:03.192455729Z [inf] using build driver nixpacks-v1.41.0 2026-05-09T11:38:03.801936182Z [inf] 2026-05-09T11:38:03.801939949Z [inf] ╔══════════════════════════════ Nixpacks v1.41.0 ══════════════════════════════╗ 2026-05-09T11:38:03.801941235Z [inf] ║ setup │ python3, postgresql_16.dev, libmysqlclient.dev, gcc ║ 2026-05-09T11:38:03.801942882Z [inf] ║──────────────────────────────────────────────────────────────────────────────║ 2026-05-09T11:38:03.801943700Z [inf] ║ install │ python -m venv --copies /opt/venv && . /opt/venv/bin/activate ║ 2026-05-09T11:38:03.801944596Z [inf] ║ │ && pip install -r requirements.txt ║ 2026-05-09T11:38:03.801945839Z [inf] ║──────────────────────────────────────────────────────────────────────────────║ 2026-05-09T11:38:03.801946687Z [inf] ║ start │ python manage.py migrate && python manage.py collectstatic ║ 2026-05-09T11:38:03.801947360Z [inf] ║ │ --noinput && gunicorn config.wsgi:application --bind ║ 2026-05-09T11:38:03.801947907Z [inf] ║ │ 0.0.0.0:$PORT ║ 2026-05-09T11:38:03.801948931Z [inf] ╚══════════════════════════════════════════════════════════════════════════════╝ 2026-05-09T11:38:03.801949517Z [inf] 2026-05-09T11:38:03.802341936Z [inf] 2026-05-09T11:38:03.802343766Z [inf] Saved output to: 2026-05-09T11:38:03.802344747Z [inf] snapshot-target-unpack/backend 2026-05-09T11:38:03.880764137Z [inf] [internal] load build definition from Dockerfile 2026-05-09T11:38:03.880777664Z [inf] [internal] load build definition from Dockerfile 2026-05-09T11:38:03.882483391Z [inf] [internal] load build definition from Dockerfile 2026-05-09T11:38:03.909904504Z [inf] [internal] load build definition from Dockerfile 2026-05-09T11:38:03.918389955Z [inf] [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1745885067 2026-05-09T11:38:04.035274142Z [inf] [internal] load metadata for ghcr.io/railwayapp/nixpacks:ubuntu-1745885067 2026-05-09T11:38:04.035513404Z [inf] [internal] load .dockerignore 2026-05-09T11:38:04.035539585Z [inf] [internal] load .dockerignore 2026-05-09T11:38:04.035557986Z [inf] [internal] load .dockerignore 2026-05-09T11:38:04.036716338Z [inf] [internal] load .dockerignore 2026-05-09T11:38:04.061627946Z [inf] [internal] load .dockerignore 2026-05-09T11:38:04.068208946Z [wrn] SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "SECRET_KEY") (line 11)(https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/) details: Sensitive data should not be used in the ARG or ENV commands 2026-05-09T11:38:04.068209493Z [wrn] SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "STRIPE_SECRET_KEY") (line 11)(https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/) details: Sensitive data should not be used in the ARG or ENV commands 2026-05-09T11:38:04.068801915Z [wrn] SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "SECRET_KEY") (line 12)(https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/) details: Sensitive data should not be used in the ARG or ENV commands 2026-05-09T11:38:04.068802738Z [wrn] SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "STRIPE_SECRET_KEY") (line 12)(https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/) details: Sensitive data should not be used in the ARG or ENV commands 2026-05-09T11:38:04.068802973Z [wrn] UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)(https://docs.docker.com/go/dockerfile/rule/undefined-var/) details: Variables should be defined before their use 2026-05-09T11:38:04.071209068Z [inf] [stage-0 8/8] COPY . /app 2026-05-09T11:38:04.071209932Z [inf] [stage-0 7/8] RUN printf '\nPATH=/opt/venv/bin:$PATH' >> /root/.profile 2026-05-09T11:38:04.071210579Z [inf] [stage-0 6/8] RUN --mount=type=cache,id=s/1dc8b5f9-84ed-4f80-be2e-2d55f8eb278b-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt 2026-05-09T11:38:04.071211068Z [inf] [stage-0 5/8] COPY . /app/. 2026-05-09T11:38:04.071211690Z [inf] [stage-0 4/8] RUN nix-env -if .nixpacks/nixpkgs-bc8f8d1be58e8c8383e683a06e1e1e57893fff87.nix && nix-collect-garbage -d 2026-05-09T11:38:04.071212183Z [inf] [stage-0 3/8] COPY .nixpacks/nixpkgs-bc8f8d1be58e8c8383e683a06e1e1e57893fff87.nix .nixpacks/nixpkgs-bc8f8d1be58e8c8383e683a06e1e1e57893fff87.nix 2026-05-09T11:38:04.071212680Z [inf] [internal] load build context 2026-05-09T11:38:04.071213202Z [inf] [stage-0 2/8] WORKDIR /app/ 2


I'd fix the UndefinedVar error, but not sure if this is breaking your deployment/build...?

Also, I'd recommend switching to Dockerfile or Railpack as Nixpacks is deprecated.


mrmcblob
FREE

a month ago

I would reccomend to switch to a dockerfile and then post the error again if it happens and maybe the dockerfile aswell.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...