I deployed the same apps twice, the same way, one for prod one for staging.
Here is my process:
- terraform to create app, ip, certs, machines
- upgrade metadata of the machine to set
v2so I can run
- deploy using
fly deploy -a <app-name>
I’m deploying the same code (just some env vars changing) on two apps. They do have different resources (staging I tried 256MB and 512MB, prod is 1024MB)
On the staging one, I’m getting many “Connection reset by peer” while trying to curl a simple endpoint
curl: (56) Recv failure: Connection reset by peer
Some queries work, but many don’t.
On prod, no issue at all.
I’ve tried the curl using
- a custom domain in HTTPS
- the fly.dev domain in HTTPS
- the IPV4 IP in HTTP
I can’t query with curl in IPV6 (for the staging & prod app) so I can’t really say but it doesn’t seem to be the issue
How can I debug? I can give more information if it can help.