W
Wasp6mo ago
jnrzxc

Errors in deployment to fly.io

I'm encountering an error after this execution
flyctl postgres attach my-wasp-app-billowing-dream-1046-db -a my-wasp-app-billowing-dream-1046-server
flyctl postgres attach my-wasp-app-billowing-dream-1046-db -a my-wasp-app-billowing-dream-1046-server
which is right after
wasp deploy fly launch my-wasp-app mia
wasp deploy fly launch my-wasp-app mia
. How can i fix these errors The errors are the following:
Error: failed retrieving app my-wasp-app-billowing-dream-1046-server: Could not find App "my-wasp-app-billowing-dream-1046-server"
Error: failed retrieving app my-wasp-app-billowing-dream-1046-server: Could not find App "my-wasp-app-billowing-dream-1046-server"
There was an error running "wasp deploy fly create-db <region>". Please review the error and try again (if appropriate).
There was an error running "wasp deploy fly create-db <region>". Please review the error and try again (if appropriate).
No description
3 Replies
kapa.ai
kapa.ai6mo ago
Hi @jnrzxc. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- The errors you're encountering seem to be related to the naming of your app and the database setup. Here are some steps you can take to troubleshoot: 1. Check the app name: The name of your app must be unique across all of Fly.io or the deployment will fail (source (https://wasp-lang.dev/docs/advanced/deployment/cli#deploying)). If the name is already taken, you'll need to choose a different one. 2. Check the database setup: If the database setup fails for any reason, you should run flyctl apps destroy <app-name> before trying again. Fly.io does not allow you to create multiple apps with the same name (source (https://wasp-lang.dev/docs/advanced/deployment/manually#set-up-a-flyio-app)). 3. Check the deployment sequence: The wasp deploy fly launch <app-name> <region> command is a convenience command that runs setup, create-db, and deploy in sequence (source (https://wasp-lang.dev/docs/advanced/deployment/cli#launch)). If there's an error in one of these steps, you might need to run them individually to isolate the issue. 4. Check the environment variables: Make sure you've set up all necessary environment variables. If your app requires any other environment variables (like social auth secrets), you can set them with the --server-secret option (source (https://wasp-lang.dev/docs/advanced/deployment/cli#launch)). If you're still encountering issues, it might be helpful to manually deploy your app following the steps outlined in the Wasp documentation (https://wasp-lang.dev/docs/advanced/deployment/manually). This could give you more control over each step and help identify where the problem lies. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @jnrzxc, 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
miho6mo ago
This usually means that apps with your selected name already exist on Fly.io, maybe from your previous attempt at deploying? Maybe you used a too generic name that someone already uses? Please go to your Fly dashboard and delete the apps from your previous attempts or select a different app name 😄 Let me know if this works out for you.
jnrzxc
jnrzxcOP6mo ago
Thank you that worked and the app has been deployed successfully😁
Want results from more Discord servers?
Add your server