continuous machine crashing

I’m using fly because it was recommended to me in a tutorial.
It was working fine up until recently, but the machines are crashing until they reach their max restart count and all of the errors are showing code that isn’t present in my project.
Is there anything to do here? How do I find out what’s going on?

Logs below (there was a lot, but it largely consisted of this, very many times over)

 2024-09-21T04:28:48.372 runner[78425edc49e7e8] den [info] Machine started in 801ms

2024-09-21T04:28:48.404 app[78425edc49e7e8] den [info] $ bun server/index.ts

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] 538 |

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] 539 | let host = url

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] 540 | host = host.slice(host.indexOf('://') + 3).split(/[?/]/)[0]

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] 541 | host = decodeURIComponent(host.slice(host.indexOf('@') + 1))

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] 542 |

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] 543 | const urlObj = new URL(url.replace(host, host.split(',')[0]))

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] ^

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] TypeError: <redacted> cannot be parsed as a URL.

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] code: "ERR_INVALID_URL"

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] at parseUrl (/app/node_modules/postgres/src/index.js:543:18)

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] at parseOptions (/app/node_modules/postgres/src/index.js:435:30)

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] at Postgres (/app/node_modules/postgres/src/index.js:50:19)

2024-09-21T04:28:48.756 app[78425edc49e7e8] den [info] at /app/server/db/index.ts:5:21

2024-09-21T04:28:48.757 app[78425edc49e7e8] den [info] Bun v1.1.28 (Linux x64 baseline)

2024-09-21T04:28:48.760 app[78425edc49e7e8] den [info] error: script "start" exited with code 1

2024-09-21T04:28:49.363 app[78425edc49e7e8] den [info] INFO Main child exited normally with code: 1

2024-09-21T04:28:49.376 app[78425edc49e7e8] den [info] INFO Starting clean up.

2024-09-21T04:28:49.378 app[78425edc49e7e8] den [info] WARN could not unmount /rootfs: EINVAL: Invalid argument

2024-09-21T04:28:49.378 app[78425edc49e7e8] den [info] [ 1.691994] reboot: Restarting system 

Like I said, I’m trying to run a bun server and it is showing a bun error, but the code it’s pointing to isn’t present anywhere in my project. I didn’t write it, and I don’t know what I can do to fix it.

EDIT: looks like it was an error with how I pushed my secrets. Not sure exactly what happened but I was able to fix it by manually typing the secrets in on the dashboard.

From General to Build debugging

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