Hi, a deployment (in scl
) that I had working for months suddenly stopped working (near the SCL incident). I tried multiple suggestions that were whitened in this forum with no luck.
In short, inside the container (with fly ssh console
), the command wget http://example.com
hangs indefinitely, like if the container couldn’t make requests. Health checks and auxiliary logging shows that the real program can’t connect to an external service after the build, so health checks fails.
This application is an adaptation of the Host for free on Fly.io discussion over at PocketBase. The fly.toml
file is like:
app = "..."
kill_signal = "SIGINT"
kill_timeout = 5
[mounts]
destination = "/pb/pb_data"
source = "pb_data"
[[services]]
internal_port = 80
protocol = "tcp"
[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]]
internal_port = 3000
protocol = "tcp"
[[services.ports]]
handlers = ["tls", "http"]
port = 8000
The Dockerfile
runs 2 processes in./docker-entrypoint.sh
like:
/pb/pocketbase serve "--http=0.0.0.0:3000" --automigrate &
PORT=80 DB_URL="http://0.0.0.0:3000" pnpm run start &
wait -n
exit $?
Those processes start fine.
Most of the logs are as follows:
2023-03-02T02:37:22.904 proxy[b34c2fd5] scl [error] timed out while connecting to instance
2023-03-02T02:37:26.933 proxy[b34c2fd5] fra [warn] Could not proxy HTTP request. Retrying in 1000 ms (attempt 50)
2023-03-02T02:37:31.948 proxy[b34c2fd5] ams [warn] Could not proxy HTTP request. Retrying in 1000 ms (attempt 40)
Could not proxy HTTP request. Retrying in 24 ms (attempt 1)
Could not proxy HTTP request. Retrying in 1000 ms (attempt 10)
2023-03-02T02:37:41.883 proxy[b34c2fd5] ams [warn] Could not proxy HTTP request. Retrying in 1000 ms (attempt 50)
Could not proxy HTTP request. Retrying in 1000 ms (attempt 20)
Could not proxy HTTP request. Retrying in 23 ms (attempt 1)
It’s possible to make requests to the container, but not from inside the container.