I’ve got the exit code 127 when I try to deploy my app: this morning deployements were ok and suddently it doesn’t work anymore.
Running display-prod4 release_command: /app/bin/migrate
Waiting for 6e8299da673258 to get exit event
Error release_command failed running on machine 6e8299da673258 with exit code 127.
Here are the detailled logs :
Pulling container image registry.fly.io/xxxxxxxxxxxxxxxxxxx
Successfully prepared image registry.fly.io/xxxxxxxxxxxxxxxxx (378.03996ms)
Configuring firecracker
[ 0.063771] PCI: Fatal: No config space access function found
INFO Starting init (commit: 5293a085)...
INFO Preparing to run: `/app/bin/migrate` as nobody
INFO [fly api proxy] listening at /.fly/api
2023/08/29 14:28:39 listening on [fdaa:0:ef46:a7b:ae02:4067:1ff:2]:22 (DNS: [fdaa::3]:53)
: not found: 2: /app/releases/0.1.0/env.sh:
INFO Main child exited normally with code: 127
INFO Starting clean up.
WARN hallpass exited, pid: 257, status: signal: 15 (SIGTERM)
2023/08/29 14:28:40 listening on [fdaa:0:ef46:a7b:ae02:4067:1ff:2]:22 (DNS: [fdaa::3]:53)
[ 2.297270] reboot: Restarting system
machine restart policy set to 'no', not restarting
Error: release command failed - aborting deployment. error release_command machine 6e8299da673258 exited with non-zero status of 127
Hi, return code 127 usually means “file not found”. , it seems to be the case here:
2023/08/29 14:28:39 listening on [fdaa:0:ef46:a7b:ae02:4067:1ff:2]:22 (DNS: [fdaa::3]:53)
: not found: 2: /app/releases/0.1.0/env.sh:
INFO Main child exited normally with code: 127
Make sure that file is included in your image. What I usually do is build locally (docker build .) and fire up the image locally to see whether the file is there. This might yield more clues!
Hi,
I’ve checked, the file “env.sh” is not missing…
When I try to deploy, I got CACHED docker command, so it doesn’t check if the file is rightfully here :
Hi there,
I’ve tried a lot of things without any success.
So i came back few commits behind, re-fly deployed my app and everything was ok.
It looks like i did something wrong on some config files or somewhere…
thx @roadmr for your answer and your time!
Thomas