Timeout reached waiting for healthchecks

Running fly secrets set returns the following error:

I’m following this guide:

How can the error be fixed?

As a default, fly secrets set triggers a deploy to set secrets on your app machines.

Try fly secrets set KEY=VALUE --stage to instead stage the secret without automatically deploying.

Then fly deploy --wait-timeout 300 to apply the secret while giving your machine a max of 300 seconds to become healthy. This should help if the issue is your machine is otherwise healthy but needs more time to pass checks.

I did --stage for fly secrets, and the deploy error doesn’t show anymore. However, when running fly deploy, the error still shows.
I just changed the --wait-timeout to 300, but still get the same error.

Still getting the same error. What else should I try?