I thought it was relevant to the deployment issues, but now that they are resolved and I still have mine, I’m not so sure about it.
Yesterday I tried to launch a new app on Fly.io and still can’t do it. The error is persistent.
I’m trying to deploy a simple Phoenix 1.6.15 app with fly v0.0.424 darwin/arm64 Commit: d78c6f3c BuildDate: 2022-10-27T20:12:34Z, and getting the Error Could not find App after creating a release. On the dashboard, DB seems healthy, and the app has a yellow icon. The app’s status is “pending” (I tried to leave it as is for a few hours yesterday - it didn’t help).
Here is the log with the relevant steps. Let me know if you need any specific data.
mix phx.new myapp
...
cd myapp
fly launch
...
Detected a Phoenix app
? Create .dockerignore from 2 .gitignore files? Yes
...
? Choose an app name (leave blank to generate one):
? Select Organization: Roman Chvanikov (personal)
? Choose a region for deployment: Frankfurt, Germany (fra)
...
? Would you like to set up a Postgresql database now? Yes
? Select configuration: Development - Single node, 1x shared CPU, 256MB RAM, 1GB disk
...
==> Monitoring health checks
...
? Would you like to deploy now? Yes
==> Building image
...
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
...
==> Pushing image to fly
...
--> Pushing image done
...
==> Creating release
Error Could not find App
I tried different regions and app names (manual and auto-generated), but it didn’t help either.
Oh snap. I guess I changed the Fly token a while back and forgot!? Thanks for the help @jsierles, checking fly auth token and updating the Github secret fixed it.
It’d be helpful if the Fly error message was a bit more explicit about what went wrong — the auth token was invalid!