WaspW
Wasp14mo ago
phlx

Machine doesn't start stays at waiting for machine to be reachable

Hi, I'm having an issue when deploying, my server machine is never starting, it just stays at "waiting for machine to be reachable on 0.0.0.0:3001" and then stops after a few tries. In my local the server works, but on fly it never starts. Logs don't say the cause of the issue and I can't ssh either if the machine doesn't start. At some point I thought this was related to missing some env variables, I added them and did a clean deploy but it still doesn't start.

My dockerfile is the same as the default but I'm using a library that doesn't support Alpine so I added a line at the end:

# Any user-defined Dockerfile contents will be appended below. # NOTE: Why do we specify alpine version here? # Because if not, we had situations where it would use the different version # locally and on Github CI. This way we ensure exact version is used, # and also have control over updating it (instead of update surprising us). FROM node:18-bullseye AS node

Fly.toml:
app = 'servername' primary_region = 'mia' [build] [http_service] internal_port = 3001 force_https = true auto_stop_machines = 'stop' auto_start_machines = true min_machines_running = 1 processes = ['app'] [[vm]] memory = '1gb' cpu_kind = 'shared' cpus = 1
image.png
image.png
Was this page helpful?