instance refused connection

I just deployed and now all my machines for my app are acting weird

2024-08-07T01:00:06.797 proxy[90801e07b69658] lax [error] [PC01] instance refused connection. is your app listening on 0.0.0.0:3000? make sure it is not only listening on 127.0.0.1 (hint: look at your startup logs, servers often print the address they are listening on)

2024-08-07T01:00:06.860 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:06.862 proxy[5683257b79d408] lax [error] [PM07] failed to change machine state: machine still active, refusing to start

2024-08-07T01:00:07.757 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:07.759 proxy[5683257b79d408] lax [error] [PM07] failed to change machine state: machine still active, refusing to start

2024-08-07T01:00:07.833 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:07.835 proxy[5683257b79d408] lax [error] [PM07] failed to change machine state: machine still active, refusing to start

2024-08-07T01:00:07.926 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:07.926 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:07.936 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:07.936 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:08.063 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:08.063 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:08.309 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:08.310 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:08.746 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:08.747 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:08.852 app[90801e07b69658] lax [info] [ 4.854082] Out of memory: Killed process 334 (node) total-vm:10842584kB, anon-rss:68568kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1800kB oom_score_adj:0

2024-08-07T01:00:08.990 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:08.992 proxy[5683257b79d408] lax [error] [PM07] failed to change machine state: machine still active, refusing to start

2024-08-07T01:00:09.607 app[90801e07b69658] lax [info] INFO Main child exited with signal (with signal 'SIGKILL', core dumped? false)

2024-08-07T01:00:09.610 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:09.610 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:09.622 app[90801e07b69658] lax [info] INFO Starting clean up.

2024-08-07T01:00:09.623 app[90801e07b69658] lax [info] WARN could not unmount /rootfs: EINVAL: Invalid argument

2024-08-07T01:00:09.623 app[90801e07b69658] lax [info] [ 5.626552] reboot: Restarting system

2024-08-07T01:00:09.704 proxy[90801e07b69658] lax [info] waiting for machine to be reachable on 0.0.0.0:3000 (waited 5.044863255s so far)

2024-08-07T01:00:09.788 runner[90801e07b69658] lax [info] machine has reached its max restart count (10)

2024-08-07T01:00:10.056 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:10.057 proxy[5683257b79d408] lax [error] [PM07] failed to change machine state: machine still active, refusing to start

2024-08-07T01:00:10.102 proxy[90801e07b69658] lax [info] waiting for machine to be reachable on 0.0.0.0:3000 (waited 5.443037486s so far)

2024-08-07T01:00:10.660 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:10.660 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:11.030 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:11.031 proxy[5683257b79d408] lax [error] [PM07] failed to change machine state: machine still active, refusing to start

2024-08-07T01:00:11.212 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:11.213 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:11.283 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:11.283 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:11.381 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:11.381 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:11.506 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:11.506 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:11.699 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:11.699 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:11.711 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:11.711 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:12.004 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:12.005 proxy[5683257b79d408] lax [error] [PM07] failed to change machine state: machine still active, refusing to start

2024-08-07T01:00:12.123 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:12.123 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:12.761 proxy[5683257b79d408] lax [info] Starting machine

2024-08-07T01:00:12.761 proxy[5683257b79d408] lax [error] [PM01] machines API returned an error: "rate limit exceeded"

2024-08-07T01:00:12.810 proxy[90801e07b69658] lax [info] Starting machine

This indicates that you declared in your fly.toml that your app would be listening on 0.0.0.0:3000, but there is nothing listening.

How are you configuring your server to listen for incoming connections? Perhaps it’s listening on the wrong port, or as the message above says, it might be listening on localhost (127.0.0.1) when it should be listening on 0.0.0.0

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.