My app is not responding even with a deploy succeded

I have a deploy succeeded, but I can’t access my app, here is the log:

 2024-05-10T05:07:21.600 app[6e82d375b16118] gru [info] INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)

2024-05-10T05:07:21.600 app[6e82d375b16118] gru [info] INFO: Started reloader process [313] using StatReload

2024-05-10T05:07:28.505 app[6e82d375b16118] gru [info] [ 10.007479] Out of memory: Killed process 319 (python) total-vm:187292kB, anon-rss:90892kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:360kB oom_score_adj:0

2024-05-10T05:08:30.034 proxy[5683dd41c01348] gru [error] [PC01] instance refused connection. is your app listening on 0.0.0.0:8000? 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-05-10T05:08:30.059 proxy[6e82d375b16118] gru [error] [PC01] instance refused connection. is your app listening on 0.0.0.0:8000? 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)

My fly.toml is like this:

[build]
  dockerfile = 'Dockerfile'
  ignorefile = '.dockerignore'

[build.args]
  ENVIRONMENT='production'

[[services]]
  internal_port = 8000
  protocol = "tcp"

  [[services.ports]]
    handlers = ["http"]
    port = "80"
    force_https = true

  [[services.ports]]
    handlers = ["tls", "http"]
    port = "443"

[[vm]]
  size = 'shared-cpu-1x'

Can anyone help me what am I missing?

You’re running out of memory, so the OOM killer is killing your webserver. Try scaling memory using fly scale memory [memoryMB] (see docs here: Scale Machine CPU and RAM · Fly Docs).

Note, additional memory has a cost (about $5 per 30 days per GB per machine).

Got it! thank you!!!

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