Hi team,
I have been failing to deploy (tried 3 times without success).
I was wondering if anyone could help me out!
fly logs
2023-01-24T11:28:55Z app[c6b40d55] syd [info]warning: parser/current is loading parser/ruby30, which recognizes 3.0.5-compliant syntax, but you are running 3.0.2.
2023-01-24T11:28:55Z app[c6b40d55] syd [info]Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
error.message="instance refused connection" 2023-01-24T11:30:03Z proxy[c6b40d55] syd [error]request.method="GET" request.id="01GQHRNM2QSP72XPBA0P0ARSHR-syd"
error.message="could not find an instance to route to" 2023-01-24T11:30:07Z proxy[c6b40d55] syd [warn]request.method="GET" request.url="https://knhchris.fly.dev/" request.id="01GQHRNM2QSP72XPBA0P0ARSHR-syd"
2023-01-24T11:31:22Z runner[c6b40d55] syd [info]Shutting down virtual machine
2023-01-24T11:31:23Z app[c6b40d55] syd [info]Sending signal SIGINT to main child process w/ PID 520
2023-01-24T11:31:42Z runner[10a4fe80] syd [info]Starting instance
2023-01-24T11:31:42Z runner[10a4fe80] syd [info]Configuring virtual machine
2023-01-24T11:31:42Z runner[10a4fe80] syd [info]Pulling container image
2023-01-24T11:31:43Z runner[10a4fe80] syd [info]Unpacking image
2023-01-24T11:31:43Z runner[10a4fe80] syd [info]Preparing kernel init
2023-01-24T11:31:43Z runner[10a4fe80] syd [info]Configuring firecracker
2023-01-24T11:31:44Z runner[10a4fe80] syd [info]Starting virtual machine
2023-01-24T11:31:44Z app[10a4fe80] syd [info]Starting init (commit: b8364bb)...
2023-01-24T11:31:44Z app[10a4fe80] syd [info]Preparing to run: `./scripts/entrypoint.sh bundle exec rails server -b 0.0.0.0 -p 3000` as forem
2023-01-24T11:31:44Z app[10a4fe80] syd [info]2023/01/24 11:31:44 listening on [fdaa:0:dd58:a7b:b2:10a4:fe80:2]:22 (DNS: [fdaa::3]:53)
2023-01-24T11:31:44Z app[10a4fe80] syd [info]Running command:
2023-01-24T11:31:44Z app[10a4fe80] syd [info]bundle exec rails server -b 0.0.0.0 -p 3000
2023-01-24T11:31:52Z app[10a4fe80] syd [info]warning: parser/current is loading parser/ruby30, which recognizes 3.0.5-compliant syntax, but you are running 3.0.2.
2023-01-24T11:31:52Z app[10a4fe80] syd [info]Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
2023-01-24T11:31:53Z app[10a4fe80] syd [info]=> Booting Puma
2023-01-24T11:31:53Z app[10a4fe80] syd [info]=> Rails 7.0.4.1 application starting in development
2023-01-24T11:31:53Z app[10a4fe80] syd [info]=> Run `bin/rails server --help` for more startup options
2023-01-24T11:31:56Z app[10a4fe80] syd [info]Running data updates...
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] Puma starting in cluster mode...
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] * Puma version: 5.6.5 (ruby 3.0.2-p107) ("Birdie's Version")
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] * Min threads: 5
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] * Max threads: 5
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] * Master PID: 521
lopment
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] * Master PID: 521
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] * Workers: 2
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] * Restarts: (✔) hot (✖) phased
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] * Preloading application
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] * Listening on http://0.0.0.0:3000
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] Use Ctrl-C to stop
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] ! Promoting existing objects to old generation...
2023-01-24T11:31:59Z app[10a4fe80] syd [info][521] ! Compacting...
2023-01-24T11:32:00Z app[10a4fe80] syd [info][521] ! Friendly fork preparation complete.
2023-01-24T11:32:00Z app[10a4fe80] syd [info][521] - Worker 1 (PID: 545) booted in 0.09s, phase: 0
2023-01-24T11:32:00Z app[10a4fe80] syd [info][521] - Worker 0 (PID: 544) booted in 0.1s, phase: 0
2023-01-24T11:32:03Z runner[10a4fe80] syd [info]Shutting down virtual machine
2023-01-24T11:32:03Z app[10a4fe80] syd [info]Sending signal SIGINT to main child process w/ PID 521
2023-01-24T11:32:03Z app[10a4fe80] syd [info][521] - Gracefully shutting down workers...
2023-01-24T11:32:04Z app[10a4fe80] syd [info][521] === puma shutdown: 2023-01-24 11:32:04 +0000 ===
2023-01-24T11:32:04Z app[10a4fe80] syd [info][521] - Goodbye!
2023-01-24T11:32:04Z app[10a4fe80] syd [info]Exiting
2023-01-24T11:32:04Z app[10a4fe80] syd [info]Starting clean up.
2023-01-24T11:32:08Z runner[c8314a34] syd [info]Starting instance
2023-01-24T11:32:08Z runner[c8314a34] syd [info]Configuring virtual machine
2023-01-24T11:32:08Z runner[c8314a34] syd [info]Pulling container image
2023-01-24T11:32:09Z runner[c8314a34] syd [info]Unpacking image
2023-01-24T11:32:09Z runner[c8314a34] syd [info]Preparing kernel init
2023-01-24T11:32:10Z runner[c8314a34] syd [info]Configuring firecracker
2023-01-24T11:32:10Z runner[c8314a34] syd [info]Starting virtual machine
2023-01-24T11:32:11Z app[c8314a34] syd [info]Starting init (commit: b8364bb)...
2023-01-24T11:32:11Z app[c8314a34] syd [info]Preparing to run: `./scripts/entrypoint.sh bundle exec rails server -b 0.0.0.0 -p 3000` as forem
2023-01-24T11:32:11Z app[c8314a34] syd [info]2023/01/24 11:32:11 listening on [fdaa:0:dd58:a7b:b2:c831:4a34:2]:22 (DNS: [fdaa::3]:53)
2023-01-24T11:32:11Z app[c8314a34] syd [info]Running command:
2023-01-24T11:32:11Z app[c8314a34] syd [info]bundle exec rails server -b 0.0.0.0 -p 3000
2023-01-24T11:32:18Z app[c8314a34] syd [info]warning: parser/current is loading parser/ruby30, which recognizes 3.0.5-compliant syntax, but you are running 3.0.2.
2023-01-24T11:32:18Z app[c8314a34] syd [info]Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
2023-01-24T11:32:20Z app[c8314a34] syd [info]=> Booting Puma
2023-01-24T11:32:20Z app[c8314a34] syd [info]=> Rails 7.0.4.1 application starting in development
2023-01-24T11:32:20Z app[c8314a34] syd [info]=> Run `bin/rails server --help` for more startup options
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] Puma starting in cluster mode...
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] * Puma version: 5.6.5 (ruby 3.0.2-p107) ("Birdie's Version")
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] * Min threads: 5
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] * Max threads: 5
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] * Environment: development
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] * Master PID: 521
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] * Workers: 2
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] * Preloading application
(✖) phased
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] * Preloading application
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] * Listening on http://0.0.0.0:3000
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] Use Ctrl-C to stop
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] ! Promoting existing objects to old generation...
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] ! Compacting...
2023-01-24T11:32:23Z app[c8314a34] syd [info][521] ! Friendly fork preparation complete.
2023-01-24T11:32:24Z app[c8314a34] syd [info][521] - Worker 1 (PID: 544) booted in 0.09s, phase: 0
2023-01-24T11:32:24Z app[c8314a34] syd [info][521] - Worker 0 (PID: 543) booted in 0.09s, phase: 0
error.message="instance refused connection" 2023-01-24T11:32:26Z proxy[c8314a34] syd [error]request.method="GET" request.id="01GQHRT07FGJB55YB0JX9B7Q0V-syd"
2023-01-24T11:51:56Z runner[f203bd56] syd [info]Starting instance
2023-01-24T11:51:56Z runner[f203bd56] syd [info]Configuring virtual machine
2023-01-24T11:51:56Z runner[f203bd56] syd [info]Pulling container image
2023-01-24T11:51:57Z runner[f203bd56] syd [info]Unpacking image
2023-01-24T11:51:57Z runner[f203bd56] syd [info]Preparing kernel init
2023-01-24T11:51:57Z runner[f203bd56] syd [info]Configuring firecracker
2023-01-24T11:51:58Z runner[f203bd56] syd [info]Starting virtual machine
2023-01-24T11:51:58Z app[f203bd56] syd [info]Starting init (commit: b8364bb)...
2023-01-24T11:51:58Z app[f203bd56] syd [info]Setting up swapspace version 1, size = 512 MiB (536866816 bytes)
2023-01-24T11:51:58Z app[f203bd56] syd [info]no label, UUID=400757a1-a596-4ac6-b8dd-db15ed0a5bdc
2023-01-24T11:51:58Z app[f203bd56] syd [info]Preparing to run: `./scripts/entrypoint.sh bin/rails fly:release` as forem
2023-01-24T11:51:58Z app[f203bd56] syd [info]2023/01/24 11:51:58 listening on [fdaa:0:dd58:a7b:b2:f203:bd56:2]:22 (DNS: [fdaa::3]:53)
2023-01-24T11:51:58Z app[f203bd56] syd [info]Running command:
2023-01-24T11:51:58Z app[f203bd56] syd [info]bin/rails fly:release
2023-01-24T11:52:03Z app[f203bd56] syd [info]warning: parser/current is loading parser/ruby30, which recognizes 3.0.5-compliant syntax, but you are running 3.0.2.
2023-01-24T11:52:03Z app[f203bd56] syd [info]Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
2023-01-24T11:52:08Z app[f203bd56] syd [info]Dumping schema
2023-01-24T11:52:11Z app[f203bd56] syd [info]Starting clean up.
error.message="instance refused connection" 2023-01-24T11:59:48Z proxy[c8314a34] syd [error]request.method="GET" request.id="01GQHTC2YRC0YRNKHZ4RDX8HWC-syd"
fly status
App
Name = knhchris
Owner = personal
Version = 3
Status = running
Hostname = knhchris.fly.dev
Platform = nomad
Deployment Status
ID = 0e4d1715-54f0-10f9-5d04-0b014caf4ff5
Version = v3
Status = failed
Description = Failed due to unhealthy allocations - no stable job version to auto revert to
Instances = 1 desired, 1 placed, 0 healthy, 1 unhealthy
cat fly.toml
# fly.toml file generated for knhchris on 2023-01-24T16:09:57+11:00
app = "knhchris"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []
[build]
[build.args]
BUILD_COMMAND = "bin/rails fly:build"
SERVER_COMMAND = "bin/rails fly:server"
[deploy]
release_command = "bin/rails fly:release"
[env]
PORT = "8080"
[experimental]
auto_rollback = true
[[services]]
http_checks = []
internal_port = 8080
processes = ["app"]
protocol = "tcp"
script_checks = []
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = "connections"
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "1s"
interval = "15s"
restart_limit = 0
timeout = "2s"
[[statics]]
guest_path = "/app/public"
url_prefix = "/"