W
Waspโ€ข2w ago
Kbral

Deploy trouble

i'm receiving this error: Error: failed retrieving app my-wasp-app-dry-sun-4376-server: Could not find App "my-wasp-app-dry-sun-4376-server" ๐Ÿš€ There was an error running "wasp deploy fly create-db <region>". Please review the error and try again (if appropriate).
2 Replies
kapa.ai
kapa.aiโ€ข2w ago
Hi @Kbral. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the information provided in the knowledge sources, it appears you're encountering an issue with deploying your Wasp app to Fly.io. This error suggests that the app name generated by Fly.io is causing problems with the deployment process. Let me explain the issue and provide some guidance: 1. The error you're seeing is related to a known issue with the Wasp CLI deployment to Fly.io, as described in this GitHub issue. 2. When you try to deploy an app using wasp deploy fly launch, Fly.io attempts to create a unique name for your app. If the name you provided is already taken, it generates a new name with additional random words (e.g., "dry-sun-4376"). 3. This auto-generated name can cause issues with the deployment script, as it doesn't match the expected format for subsequent commands. To resolve this issue, you can try the following: 1. Choose a more unique name for your app that is less likely to be taken on Fly.io. 2. If the deployment fails, you may need to manually clean up the created resources on Fly.io before trying again. You can do this by running:
flyctl apps destroy <app-name>

flyctl apps destroy <app-name>

Replace <app-name> with the name of the app that was created (in your case, it would be "my-wasp-app-dry-sun-4376"). 3. After cleaning up, try the deployment again with a new, more unique name:
wasp deploy fly launch <new-unique-app-name> <region>

wasp deploy fly launch <new-unique-app-name> <region>

If you continue to experience issues, you might want to consider deploying manually as described in the Fly.io manual deployment documentation. Remember that your app name must be unique across all of Fly.io, or the deployment will fail. The Wasp team is aware of this issue and is working on improving the deployment process to handle these scenarios better. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Kbral, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
mihoโ€ข2w ago
Your Fly app name has to be globally unique. The bot gave a good answer ๐Ÿ™‚

Did you find this page helpful?