Bug with Proxy

HI All. I am not sure what to do. I have found a bug and it seems I have to use the community support to report it.

If I have the following fly.toml

[processes]

app = "uvicorn main:app --host 0.0.0.0 --port 8080 --workers 1 --proxy-headers --forwarded-allow-ips '*'"

worker = "python worker.py"

[http_service]

internal_port = 8080

force_https = true

auto_stop_machines = 'stop'

auto_start_machines = true

min_machines_running = 1

processes = ['app']

And I get the following Error:

2026-02-06T06:15:45Z proxy[185e7d4f520338] sjc [info]waiting for machine to be reachable on 0.0.0.0:8080 (waited 5.363493266s so far)
2026-02-06T06:15:48Z proxy[185e7d4f520338] sjc [error][PM05] failed to connect to machine: gave up after 15 attempts (in 8.180228034s)
2026-02-06T06:15:48Z proxy[185e7d4f520338] sjc [error][PM05] failed to connect to machine: gave up after 15 attempts (in 8.375341767s)
2026-02-06T06:15:48Z proxy[185e7d4f520338] sjc [error][PC01] instance refused connection. is your app listening on 0.0.0.0:8080? 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)

If I remove the second line in [processes] (worker = "python worker.py")the error is no longer an issue. From what I read in the documentation all public facing machines should listen to 0:0:0:0 on port 8080 or ¯\_(ツ)_/¯ is set in [http_service]. And services that are not public facing such as my task queue are not beholden to that obligation. However, adding in the second app worker makes app fail its obligation. I don’t see how I should get an error with this configuration. Can somebody point me in the right direction to either fix this or file a bug report?

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