My app wakes up when I access it from the browser.
But if it is not running and I’m trying to access the machine via ssh I get
> fly ssh console
Error: app tdd-fastapi has no started VMs.
It may be unhealthy or not have been deployed yet.
Try the following command to verify:
fly status
I visit the app in the browser, repeat the command and access the machine successfully.
Not directly. Your browser can “wake” a Machine because that’s an explicit capability of our proxy network (it enables Lambda-like workloads). But SSH doesn’t run through our proxy. Use flyctl ssh, and just start your Machine manually with flyctl first.