I’ve tried a number of times to upgrade my v1 app to v2. Every time I try I get a message like:
% fly migrate-to-v2
Error: can't get role for fdaa:0:c50e:a7b:f7:2a40:3a2d:2: Get "http://fdaa:0:c50e:a7b:f7:2a40:3a2d:2:5500/commands/admin/role": connect tcp [fdaa:0:c50e:a7b:f7:2a40:3a2d:2]:5500: connection was refused
It seems like its looking for a service that isn’t running on my image. Maybe my fly.toml for v1 is missing something? I’m really not sure what to do from here. Any ideas? Fly.toml below:
app = "myapp"
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]
allowed_public_ports = []
auto_rollback = true
[[services]]
http_checks = []
internal_port = 8080
processes = ["web"]
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 = "/"
[processes]
web = "bin/rails fly:server"
worker = "bundle exec good_job start"