Need Help With Rust Deployment Error

This deployment will:

  • create 2 “app” machines

No machines in group app, launching a new machine
WARN failed to release lease for machine 6e82d664c4ed87: lease not found

:heavy_multiplication_x: Failed: timeout reached waiting for machine to started failed to wait
You can increase the timeout with the --wait-timeout flag

My machine app is currently on suspended. How can I get it to start please

I was able to deploy now, but the machine keeps stopping and restarting and I’m unable to connect.

Below are a few snippets from my logs:
hkg [info] Starting machine
hkg [info] PCI: Fatal: No config space access function found
hkg [info] waiting for machine to be reachable on (waited 17.131469475s so far)
hkg [error] failed to connect to machine: gave up after 15 attempts (in 22.135531386s)

Can You share your fly.toml?

yes sure.

# fly.toml app configuration file generated for finalytics on 2023-10-10T11:21:26+08:00
# See for information about how to use this file.

app = "finalytics"
primary_region = "hkg"


  internal_port = 8080
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 0
  processes = ["app"]

it was autogenerated

Are you binding to ?

Which Crate are you using?

I’m binding to

I’m using the actix-web crate

Can you share your docker file?

If you are binding to it has to work
Can you also share logs?
using fly logs

Thanks for pointing out to me about by docker file. I just checked and the issue was with my docker file. After amending the file, I’m able to deploy the app successfully

1 Like

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