Deployment

Error Message:
2023-01-15T04:09:26.728 app[bf1cf09e] dfw [info] Starting init (commit: b8364bb)…

2023-01-15T04:09:26.789 app[bf1cf09e] dfw [info] Preparing to run: python ./index.py as root

2023-01-15T04:09:26.821 app[bf1cf09e] dfw [info] 2023/01/15 04:09:26 listening on [fdaa:1:23cf:a7b:cf99:bf1c:f09e:2]:22 (DNS: [fdaa::3]:53)

2023-01-15T04:09:39.657 app[bf1cf09e] dfw [info] [ 13.006740] Out of memory: Killed process 520 (python) total-vm:2333184kB, anon-rss:196984kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1280kB oom_score_adj:0

my fly.toml file:

fly.toml file generated for str-app on 2023-01-15T09:38:44+05:45

app = “str-app”
kill_signal = “SIGINT”
kill_timeout = 5
processes =

[env]

[experimental]
auto_rollback = true

[[services]]
http_checks =
internal_port = 8080
processes = [“app”]
protocol = “tcp”
script_checks =
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = “connections”

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

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

[[services.tcp_checks]]
grace_period = “1s”
interval = “15s”
restart_limit = 0
timeout = “2s”
How ti solve the issue?

Based on the short logs snippet, it points to not having enough memory. Try running this command:

fly scale memory 1024

It appears you’re running on 256mb right now, so bumping to 1gb should help. You can adjust up or down as needed by running the command again with another value (eg. 512 or 2048)

lemme check after applying this. WIll let you know if it works