machine in gru having possible networking issues

App: acaminhodaluz
Machine: 4d8900da73ee87
Region: gru

The machine is started, but the TCP health check on port 8080 fails.

Logs show NXDOMAIN for:
top2.nearest.of.acaminhodaluz-db.internal

The SSH service also reports:
can’t resolve _orgcert.internal

The database app acaminhodaluz-db has all 3 checks passing.

The deployment also fails with:

Error: failed to update machine 4d8900da73ee87:
Unrecoverable error: timeout reached waiting for health checks
to pass for machine 4d8900da73ee87:
failed to get VM 4d8900da73ee87:
Get “https://api.machines.dev/v1/apps/acaminhodaluz/machines/4d8900da73ee87”:
net/http: request canceled

The CLI reported “Cleared lease” immediately before this error.

Please investigate the application’s host and internal DNS/network.

Do not migrate, delete, recreate, or wipe any volume or database.
Please explain any proposed infrastructure changes before proceeding.

Your machine should be back up and running and the health check passes.

I ran fly deploy again and got this error:

Error: failed to update machine 4d8900da73ee87: Unrecoverable error: timeout reached waiting for health checks to pass for machine 4d8900da73ee87: failed to get VM 4d8900da73ee87: Get “https://api.machines.dev/v1/apps/acaminhodaluz/machines/4d8900da73ee87”: net/http: request canceled

The app has been unreachable since then.
Please, do not migrate, delete, recreate, or wipe any volume or database.

@PauloBorba From the logs it looks like the update either hung or failed. Either way it caused the health check to never pass. I restarted the machine from our side and it looks like it came up cleanly. I’m seeing it pass health checks and the domain is reachable.

Try the deploy again. If it fails in a similar way, restarting the machine should render it reachable.