Closed alexander-applyinnovations closed 1 year ago
Looking through our other CI/CD logs, it seems like occasionally when deploying v0 we get --> v0 deployed successfully
and the process exists without error (exit code 0), but when the deployment is replacing an existing version, it exists with error code 1.
==> Creating release
--> release v2 created
--> You can detach the terminal anytime without stopping the deployment
==> Release command detected: yarn deploy
--> This release will not be available until the release command succeeds.
Starting instance
Unpacking image
Starting init (commit: 249766e)...
$ keystone prisma migrate deploy
Datasource "postgresql": PostgreSQL database "focapp_remove_users_cms", schema "public" at "top2.nearest.of.focapp-remove-users-db.internal:5432"
Applying migration `20221013032218_image_to_images`
Starting instance
Unpacking image
Starting init (commit: [249](https://github.com/applyinnovations/focapp/actions/runs/3248361363/jobs/5329474781#step:4:250)766e)...
$ keystone prisma migrate deploy
Datasource "postgresql": PostgreSQL database "focapp_remove_users_cms", schema "public" at "top2.nearest.of.focapp-remove-users-db.internal:5432"
Applying migration `20221013032218_image_to_images`
Starting clean up.
Starting clean up.
Starting instance
Unpacking image
Starting init (commit: 249766e)...
$ keystone prisma migrate deploy
Datasource "postgresql": PostgreSQL database "focapp_remove_users_cms", schema "public" at "top2.nearest.of.focapp-remove-users-db.internal:5432"
Applying migration `20221013032218_image_to_images`
Starting clean up.
==> Monitoring deployment
v0 is being deployed
dec94982: syd running healthy
dec94982: syd running unhealthy [health checks: 1 total]
dec94982: syd running healthy [health checks: 1 total, 1 passing]
--> v0 deployed successfully
no exit code 1
However this is not always the case, also found this:
==> Creating release
--> release v2 created
--> You can detach the terminal anytime without stopping the deployment
==> Release command detected: yarn deploy
--> This release will not be available until the release command succeeds.
Unpacking image
2022/10/19 01:33:15 listening on [fdaa:0:bacf:a7b:9c3e:b50a:1b95:2]:22 (DNS: [fdaa::3]:53)
yarn run v1.22.19
$ keystone prisma migrate deploy
Unpacking image
Starting init (commit: 249766e)...
UUID=8fa8e6fa-5586-4fae-b934-16f2ea9706bc
2022/10/19 01:33:15 listening on [fdaa:0:bacf:a7b:9c3e:b50a:1b95:2]:22 (DNS: [fdaa::3]:53)
yarn run v1.22.19
$ keystone prisma migrate deploy
Datasource "postgresql": PostgreSQL database "focapp_benefit_has_its_own_color_cms", schema "public" at "top2.nearest.of.focapp-benefit-has-its-own-color-db.internal:5432"
Datasource "postgresql": PostgreSQL database "focapp_benefit_has_its_own_color_cms", schema "public" at "top2.nearest.of.focapp-benefit-has-its-own-color-db.internal:5432"
Applying migration `20[221](https://github.com/applyinnovations/focapp/actions/runs/3278128907/jobs/5396196697#step:4:222)014080127_update_user_attributes`
Applying migration `20221019011136_added_initial_data_validation_and_required_fields`
Done in 9.75s.
Applying migration `20221014080127_update_user_attributes`
Applying migration `20221019011136_added_initial_data_validation_and_required_fields`
Done in 9.75s.
Starting clean up.
Starting clean up.
Unpacking image
Starting init (commit: 249766e)...
UUID=8fa8e6fa-5586-4fae-b934-16f2ea9706bc
2022/10/19 01:33:15 listening on [fdaa:0:bacf:a7b:9c3e:b50a:1b95:2]:22 (DNS: [fdaa::3]:53)
yarn run v1.22.19
$ keystone prisma migrate deploy
Datasource "postgresql": PostgreSQL database "focapp_benefit_has_its_own_color_cms", schema "public" at "top2.nearest.of.focapp-benefit-has-its-own-color-db.internal:5432"
Applying migration `20221014080127_update_user_attributes`
Applying migration `20221019011136_added_initial_data_validation_and_required_fields`
Done in 9.75s.
Starting clean up.
==> Monitoring deployment
v0 is being deployed
609f69b0: syd running healthy
609f69b0: syd running unhealthy [health checks: 1 total, 1 critical]
609f69b0: syd running healthy [health checks: 1 total, 1 passing]
--> v0 deployed successfully
Error: Process completed with exit code 1.
Could you post a log with LOG_LEVEL=debug
enabled?
@jsierles do we want to leave this open until we get a response?
Please only report specific issues with
flyctl
behavior. Anything like a support request for your application should go to https://community.fly.io. More people watch that space and can help you faster!Describe the bug When deploying with flyctl deploy, the deployment succeeds but the command returns an exit code 1 and fails the github action.
fly version
flyctl 0.0.414Paste your
fly.toml
Command output: