MySQL app remains suspended

Hi there,

I am new to Fly.io - wanted to get a WordPress app up and running because that is what I know as a way to learn Fly.

I followed the instructions for deploying a MySQL app here - Use a MySQL Database · Fly Docs and could deploy the app successfully.

I could also Deploy Wordpress from the instructions here - Run a WordPress App · Fly Docs with two machines running.

The MySQL app remains in suspended state - I suspect this is why I am getting a connection to database error.

Not sure why the MySQL app is suspended or how to fix it.

Any assistance would be greatly appreciated.

Thanks
Francois Wessels

Hi,

I haven’t tried, but could the MySQL app be auto-suspending :thinking:? It doesn’t know it’s a database so it could be behaving like any other app and pauses when idle. Since it sounds like it worked when you deployed … but then moved to being suspended afterwards.

It’s not obvious but I think the default when creating a new app is to have it auto-stop when idle. That saves you money, but for a database you probably want it to stay running.

Check the fly.toml file (if there is one) and see if there is an option set in there to auto-stop. I think if no options are set, it should default to not auto-stop/suspend, but not sure on that.

Check out:

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