R
Railwayβ€’11mo ago
rawrawr

Deployment failed after migrating

Looks like migration to new Postgres worked (?). When it redeployed service (Strapi), it just fails after ~5 mins with nothing to show for in the logs. Trying the deploy again does not change anything. Started this from the link from the [ACTION REQUIRED] email.
21 Replies
Percy
Percyβ€’11mo ago
Project ID: f40d1a80-a7e6-4cdf-b8fe-f3bcc3fa7a2d
rawrawr
rawrawrβ€’11mo ago
f40d1a80-a7e6-4cdf-b8fe-f3bcc3fa7a2d
Ray
Rayβ€’11mo ago
Your database looks fine, it's the service that is failing right?
rawrawr
rawrawrβ€’11mo ago
correct service now cannot deploy, isn't telling me why it looks like my variables were looking fine, I added a new temp variable to get the service to redeploy and I got "Error deploying to changed environments" Of concern is now the other variables are now hashed or something i.e. ==AB12CD34... ...well, removing the fake temp variable seems to have reverted the other keys so they look as normal now
thomas
thomasβ€’11mo ago
This is likely related to our ongoing incident. https://discord.com/channels/713503345364697088/846875565357006878/1184592627987923018 We will be updating all threads as we resolve it
Ray
Rayβ€’11mo ago
Hey, could you try redeploying your Strapi service now?
rawrawr
rawrawrβ€’11mo ago
ok trying it now same thing, got the Failed message after ~5 mins, nothing in logs
Ray
Rayβ€’11mo ago
Was this deployed from a template? Your last successful deploy was 10 months ago https://railway.app/project/f40d1a80-a7e6-4cdf-b8fe-f3bcc3fa7a2d/service/83195a22-4ee0-40a2-85d5-81a55955f00d/settings Is the GH repository connected to the service alive?
rawrawr
rawrawrβ€’11mo ago
ah right, the repo link is different now... just reconnecte it ok at least there are build logs now... but getting error: Docker build failed... I believe this was deployed via a template... there was a strapi-railway project which this is based on
Ray
Rayβ€’11mo ago
Yep I think this is completely unrelated to the migration πŸ˜•
rawrawr
rawrawrβ€’11mo ago
build seems to be complaining about the version of python... is there a way I can set a lower version?... tried the env NIXPACKS_PYTHON_VERSION but no go there... 33.42 Node.js configure: Found Python 3.11.5... 33.42 Please use python3.10 or python3.9 or python3.8 or python3.7 or python3.6 or python3.5 or python2.7. 33.96 error: builder for '/nix/store/hh8n2lf9hxvjrp2rgp6542acrcyg153i-nodejs-14.21.3.drv' failed with exit code 1 33.99 error: 1 dependencies of derivation '/nix/store/hr6azazr0rnipm5vda93z8fql7d6q20a-bf744fe90419885eefced41b3e5ae442d732712d-env.drv' failed to build ----- Dockerfile:8 ------------------- 6 | 7 | COPY .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix 8 | >>> RUN nix-env -if .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix && nix-collect-garbage -d 9 | 10 | ------------------- ERROR: failed to solve: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-bf744fe90419885eefced41b3e5ae442d732712d.nix && nix-collect-garbage -d" did not complete successfully: exit code: 100 Error: Docker build failed
Brody
Brodyβ€’11mo ago
rawrawr
rawrawrβ€’11mo ago
Brody
Brodyβ€’11mo ago
im seeing node 14, any idea why that would be installed?
rawrawr
rawrawrβ€’11mo ago
don't recall ever needing to set it, might have been what I got from the initial install of Strapi will try a v18 or something
Brody
Brodyβ€’11mo ago
what is set in engines.node in your package.json?
rawrawr
rawrawrβ€’11mo ago
>=12.x.x <=16.x.x
Brody
Brodyβ€’11mo ago
set it to 18 just 18
rawrawr
rawrawrβ€’11mo ago
okay that did the trick! thank you so much for your help
Brody
Brodyβ€’11mo ago
no problem!
Ines
Inesβ€’11mo ago
same problem, this fixed it. Thank you very much.
Want results from more Discord servers?
Add your server