algora-io / tv

Open source Twitch for developers
https://algora.tv
Other
1.07k stars 67 forks source link

Fly: deployment to fly.io crashes on boot #49

Closed mazz closed 2 months ago

mazz commented 5 months ago

Seeing messages like:

2024-06-06T21:11:29.682 app[148e2d03c35389] lax [info] [ 0.058089] PCI: Fatal: No config space access function found

From fly.io logs:

 2024-06-06T21:11:26.131 app[148e2d03c35389] lax [info] INFO [fly api proxy] listening at /.fly/api

2024-06-06T21:11:26.136 app[148e2d03c35389] lax [info] 2024/06/06 21:11:26 INFO SSH listening listen_address=[fdaa:0:3adb:a7b:2b9:4b73:32b4:2]:22 dns_server=[fdaa::3]:53

2024-06-06T21:11:26.137 runner[148e2d03c35389] lax [info] Machine started in 456ms

2024-06-06T21:11:26.215 app[148e2d03c35389] lax [info] Runtime terminating during boot ({'cannot get bootfile','/app/bin/start.boot'})

2024-06-06T21:11:26.319 app[148e2d03c35389] lax [info] Crash dump is being written to: erl_crash.dump...done

2024-06-06T21:11:27.132 app[148e2d03c35389] lax [info] INFO Main child exited normally with code: 1

2024-06-06T21:11:27.145 app[148e2d03c35389] lax [info] INFO Starting clean up.

2024-06-06T21:11:27.146 app[148e2d03c35389] lax [info] [ 1.361790] reboot: Restarting system

2024-06-06T21:11:27.224 runner[148e2d03c35389] lax [info] machine did not have a restart policy, defaulting to restart

2024-06-06T21:11:29.569 app[148e2d03c35389] lax [info] 2024-06-06T21:11:29.568974180 [01HZQP7RPKAMRAHGS5E1WNZPFE:main] Running Firecracker v1.7.0

2024-06-06T21:11:29.591 app[148e2d09c13089] lax [info] 2024-06-06T21:11:29.591122004 [01HZQP71FK4GTDA4F7N4ND4AXX:main] Running Firecracker v1.7.0

2024-06-06T21:11:29.682 app[148e2d03c35389] lax [info] [ 0.058089] PCI: Fatal: No config space access function found

2024-06-06T21:11:29.703 app[148e2d09c13089] lax [info] [ 0.058738] PCI: Fatal: No config space access function found

2024-06-06T21:11:29.944 app[148e2d03c35389] lax [info] INFO Starting init (commit: a6222593)...

2024-06-06T21:11:29.965 app[148e2d09c13089] lax [info] INFO Starting init (commit: a6222593)...

2024-06-06T21:11:29.969 app[148e2d03c35389] lax [info] INFO Preparing to run: `/bin/sh -c /app/bin/server` as nobody

2024-06-06T21:11:29.973 app[148e2d03c35389] lax [info] INFO [fly api proxy] listening at /.fly/api

2024-06-06T21:11:29.979 app[148e2d03c35389] lax [info] 2024/06/06 21:11:29 INFO SSH listening listen_address=[fdaa:0:3adb:a7b:2b9:4b73:32b4:2]:22 dns_server=[fdaa::3]:53

2024-06-06T21:11:29.991 app[148e2d09c13089] lax [info] INFO Preparing to run: `/bin/sh -c /app/bin/server` as nobody

2024-06-06T21:11:29.996 app[148e2d09c13089] lax [info] INFO [fly api proxy] listening at /.fly/api

2024-06-06T21:11:30.000 runner[148e2d09c13089] lax [info] Machine started in 458ms

2024-06-06T21:11:30.001 app[148e2d09c13089] lax [info] 2024/06/06 21:11:29 INFO SSH listening listen_address=[fdaa:0:3adb:a7b:2bc:e471:406b:2]:22 dns_server=[fdaa::3]:53

2024-06-06T21:11:30.010 runner[148e2d03c35389] lax [info] Machine started in 489ms 
zcesur commented 3 months ago

Do you still have this problem? Sounds like an issue with the VM/kernel. What type of machine (memory & CPU) are you running it on?

mazz commented 3 months ago

Ive learned a little bit more about deploying to fly since this bug got filed. I will try again.

zcesur commented 2 months ago

Closing the issue but feel free to reopen if you run into this again!