Deployment keeps failing

zoro125HOBBY

23 days ago

Project ID: 97ee6893-8857-4ae5-ab97-03dd03aa9a7e
I'd really appreciate if someone can help me!

After some changes to the codes and pushed from Github, deployment keeps failing.

First, I rolled back the codes but still failed - Successfully Built but I got this message and failed to deploy:
The selected runtime: LEGACY is not supported in this region: us-west2.
You can update the runtime in your service settings

So I changed the region to us-west1 then deployed successfully. Then I pushed new codes again, and for some reason region went back to us-west2(Metal) and the deployment failed. I rolled back the codes again, but now the deployment fails even if I changed the region. It seems to fail during building process now. Here is the new error message:

ERROR: failed to solve: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d" did not complete successfully: exit code: 1

Error: Docker build failed

Solved

0 Replies

23 days ago

The error message you sent is the generic error message when builds fail. Please send the entire build logs


zoro125HOBBY

23 days ago

Here is the error message:


zoro125HOBBY

23 days ago

unpacking 'https://github.com/NixOS/nixpkgs/archive/5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.tar.gz' into the Git cache…

installing '5148520bfab61f99fd25fb9ff7bfbb50dad3c9db-env'

error:
… while calling the 'derivationStrict' builtin
at :37:12:
36|
37| strict = derivationStrict drvAttrs;
| ^
38|
… while evaluating derivation '5148520bfab61f99fd25fb9ff7bfbb50dad3c9db-env'
whose name attribute is located at /nix/store/lgcjj6s23v2203zyihsd0j26wh1saj0c-source/pkgs/stdenv/generic/make-derivation.nix:300:7
… while evaluating attribute 'passAsFile' of derivation '5148520bfab61f99fd25fb9ff7bfbb50dad3c9db-env'
at /nix/store/lgcjj6s23v2203zyihsd0j26wh1saj0c-source/pkgs/build-support/trivial-builders/default.nix:88:7:
87| inherit buildCommand name;
88| passAsFile = [ "buildCommand" ]
| ^
89| ++ (derivationArgs.passAsFile or []);
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: attribute 'dev' missing
at /app/.nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix:19:13:
18| '')
19| gcc postgresql_16.dev python39
| ^
20| ];
Did you mean doc?


23 days ago

There are more logs, please download the txt file and send it here


23 days ago

you can find the download logs option by clicking cmd/ctrl+k in the deployment pane


zoro125HOBBY

23 days ago


22 days ago

you will need to switch to the v2 runtime in the service settings


zoro125HOBBY

22 days ago

Where can I find that setting? Thanks,


22 days ago


zoro125HOBBY

22 days ago

I believe it was showing that setting (Legacy/V2) under regions before, but I don't see it anymore.


zoro125HOBBY

22 days ago

I reverted the codes a few versions and now it seems to be working. I'm still not sure what caused the failures, but thanks for your help anyway.


22 days ago

yep! checked it out, all looks good to me now!


22 days ago

!s


Status changed to Solved brody 22 days ago