W
Wasp•6mo ago
haarismian

fly.io frontend keeps crashing

hey folks, my fly.io deployed app keeps crashing, not sure why, I don't even know how to begin investigating why it keeps crashing, it says its suspended in the fly.io dashboard and these are some recent logs
3 Replies
kapa.ai
kapa.ai•6mo ago
Hi @haarismian. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry to hear that you're experiencing issues with your app on fly.io. Here are some steps you can take to investigate the issue: 1. Check the server logs: The logs can provide valuable information about what might be causing the app to crash. Look for any error messages or unusual behavior. 2. Check the network tab in your browser's dev tools: This can help you see if requests to the server are taking a long time or failing. 3. Check the database: Make sure there are no errors in your Postgres database and that it's not exhibiting any strange behavior. 4. Try redeploying or restarting the app: You can do this with the wasp deploy fly deploy command. If that doesn't work, you can try restarting the server with wasp deploy fly cmd --context server scale count 0 - wasp deploy fly cmd --context server scale count 1. You can also try restarting the Postgres database with flyctl postgres restart -a your-app-db. 5. Run the app locally: If the app works fine locally, the issue might be with the deployment or the server. 6. Upgrade your app to the newest Wasp version: This has solved similar issues for some users in the past. You can do this by running curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh, changing the Wasp version in your main.wasp file, making sure everything works locally, and then redeploying with wasp deploy fly deploy. If none of these steps help, it would be useful to have more information about your app and the specific issues you're experiencing. What kind of app is it? Does everything work okay locally? How did you deploy it to Fly? Do you have any logs from the actual deployment? What happens if you try to re-deploy it? What does the database look like on Fly? Do you have any more logs from the server on Fly? Sources: Discord support thread: server deployment issue > Answers (https://discord.com/channels/686873244791210014/1207206194872057917), Discord support thread: Problems with server on fly.io - unexpectedly without any updates or redeployments > Answers Part 1 (https://discord.com/channels/686873244791210014/1201898985300971540), Discord support thread: My login tab on the frontpage went missing after deployment on fly.io > Answers Part 1 (https://discord.com/channels/686873244791210014/1217941277979574315) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @haarismian, 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•6mo ago
Have you tried anything that the bot suggested? 😄
miho
miho•6mo ago
Is the app not working or you think it's not working due to the logs? Fly auto stops the client app if it doesn't receive some requests for a while and auto starts it on the first request: https://fly.io/docs/apps/autostart-stop/
Fly
Automatically stop and start Machines
Documentation and guides from the team at Fly.io.
Want results from more Discord servers?
Add your server