I’m getting the following Error when I try to use fly launch
or subsequently fly deploy
. I’ve had the app running on fly before. So far I’ve tried
- Changing my port in my runtime.exs to 8080 from 80
- Changing my host in runtime from
whodapet.com
todemo-whodapet.com
anddemo-whodapet.dev
- Regenerating my
fly.toml
and probably a few other things
- Did something change in the deploy process I’m not aware of?
- Did I or one of my team mates change something I’m not aware of?
- Did I have a stroke?
- Do the Gods hate me?
waiting for machine to be reachable on 0.0.0.0:8080 (waited 5.589355863s so far)
2024-06-07T20:13:16Z app[7843e64c264138] ord [info] INFO Main child exited normally with code: 1
2024-06-07T20:13:16Z app[7843e64c264138] ord [info] INFO Starting clean up.
2024-06-07T20:13:16Z app[7843e64c264138] ord [info][ 6.432515] reboot: Restarting system
2024-06-07T20:13:16Z runner[7843e64c264138] ord [info]machine did not have a restart policy, defaulting to restart
2024-06-07T20:13:16Z app[7843e64c264138] ord [info]2024-06-07T20:13:16.582974191 [01HZT5AAGN6CXK2YQFMB05H7R9:main] Running Firecracker v1.7.0
2024-06-07T20:13:16Z app[7843e64c264138] ord [info][ 0.050849] PCI: Fatal: No config space access function found
2024-06-07T20:13:17Z app[7843e64c264138] ord [info] INFO Starting init (commit: dec752a2)…
2024-06-07T20:13:17Z app[7843e64c264138] ord [info] INFO Preparing to run: /app/bin/server
as nobody
2024-06-07T20:13:17Z app[7843e64c264138] ord [info] INFO [fly api proxy] listening at /.fly/api
2024-06-07T20:13:17Z app[7843e64c264138] ord [info]2024/06/07 20:13:17 INFO SSH listening listen_address=[fdaa:0:81e3:a7b:2ab:affe:51b2:2]:22 dns_server=[fdaa::3]:53
2024-06-07T20:13:17Z runner[7843e64c264138] ord [info]Machine started in 704ms
2024-06-07T20:13:19Z proxy[7843e64c264138] ord [error][PM05] failed to connect to machine: gave up after 15 attempts (in 9.657436889s)
2024-06-07T20:13:19Z proxy[d8dd9eeae74338] ord [info]Starting machine
2024-06-07T20:13:19Z app[d8dd9eeae74338] ord [info]2024-06-07T20:13:19.921136749 [01HZT5AB2QWCNZR2DXZXZ9NQRV:main] Running Firecracker v1.7.0
2024-06-07T20:13:20Z app[d8dd9eeae74338] ord [info][ 0.047336] PCI: Fatal: No config space access function found
2024-06-07T20:13:20Z app[d8dd9eeae74338] ord [info] INFO Starting init (commit: dec752a2)…
2024-06-07T20:13:20Z app[d8dd9eeae74338] ord [info] INFO Preparing to run: /app/bin/server
as nobody
2024-06-07T20:13:20Z app[d8dd9eeae74338] ord [info] INFO [fly api proxy] listening at /.fly/api
2024-06-07T20:13:20Z app[d8dd9eeae74338] ord [info]2024/06/07 20:13:20 INFO SSH listening listen_address=[fdaa:0:81e3:a7b:2a9:5060:63a3:2]:22 dns_server=[fdaa::3]:53
2024-06-07T20:13:20Z runner[d8dd9eeae74338] ord [info]Machine started in 624ms
2024-06-07T20:13:20Z proxy[d8dd9eeae74338] ord [info]machine started in 627.384198ms
2024-06-07T20:13:20Z app[7843e64c264138] ord [info]warning: variable “port” is unused (if the variable is not meant to be used, prefix it with an underscore)
2024-06-07T20:13:20Z app[7843e64c264138] ord [info] /app/releases/0.1.0/runtime.exs:52
2024-06-07T20:13:20Z app[7843e64c264138] ord [info]20:13:20.604 [info] Running WhodapetWeb.Endpoint with cowboy 2.10.0 at :::8080 (http)
2024-06-07T20:13:20Z app[7843e64c264138] ord [info]20:13:20.606 [error] Failed to start Ranch listener WhodapetWeb.Endpoint.HTTPS in :ranch_ssl:listen([cacerts: :…, key: :…, cert: :…, alpn_preferred_protocols: [“h2”, “http/1.1”], next_protocols_advertised: [“h2”, “http/1.1”], reuse_sessions: true, secure_renegotiate: true, keyfile: ~c"/app/bin/tmp/site_encrypt_db/certs/whodapet.com/privkey.pem", certfile: ~c"/app/bin/tmp/site_encrypt_db/certs/whodapet.com/cert.pem", cacertfile: ~c"/app/bin/tmp/site_encrypt_db/certs/whodapet.com/chain.pem", port: 443]) for reason :eacces (permission denied)
2024-06-07T20:13:20Z app[7843e64c264138] ord [info]20:13:20.607 [error] Error starting the child :site: {:shutdown, {:failed_to_start_child, {:ranch_listener_sup, WhodapetWeb.Endpoint.HTTPS}, {:shutdown, {:failed_to_start_child, :ranch_acceptors_sup, {:listen_error, WhodapetWeb.Endpoint.HTTPS, :eacces}}}}}
2024-06-07T20:13:20Z app[7843e64c264138] ord [info]20:13:20.609 [notice] Application whodapet exited: Whodapet.Application.start(:normal, ) returned an error: shutdown: failed to start child: SiteEncrypt.Phoenix.Endpoint