could not find a good candidate within 21 attempts at load balancing

have wasp application with WebSocket but after deploying to fly.io the backend is having an issue about the load balancing issue
5 Replies
kapa.ai
kapa.ai2w ago
Hi @victor. 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, I don't have specific details about WebSocket deployment issues or load balancing problems with Wasp applications on Fly.io. However, I can offer some general troubleshooting suggestions based on related deployment information: 1. Check your Wasp version: Make sure you're using the latest version of Wasp, as some deployment issues have been resolved in newer versions. You can update Wasp using the command:
curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh

curl -sSL <https://get.wasp-lang.dev/installer.sh> | sh

Github Issue #1255 (https://github.com/wasp-lang/wasp/issues/1255) 2. Review your deployment logs: Check the Fly.io console for any specific error messages or logs that might provide more insight into the load balancing issue. 3. Verify your Fly.io configuration: Ensure that your fly-server.toml and fly-client.toml files are correctly set up for your application's needs. Wasp Docs - Deploying (https://wasp-lang.dev/docs/advanced/deployment/cli#deploying) 4. Consider redeploying: Sometimes, redeploying the application can resolve unexpected issues. You can try redeploying with:
wasp deploy fly deploy

wasp deploy fly deploy

Wasp Docs - Deploying (https://wasp-lang.dev/docs/advanced/deployment/cli#deploying) 5. Check environment variables: Ensure all necessary environment variables are correctly set for your production environment on Fly.io. Wasp Docs - Environment Variables (https://wasp-lang.dev/docs/advanced/deployment/cli#flyio-regions) If these steps don't resolve your issue, you may need to reach out to Fly.io support or the Wasp community for more specific assistance with WebSocket and load balancing configurations. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @victor, 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?
victor
victorOP2w ago
@kapa.ai i have wasp 0.15 and tried redeploy but same issue
kapa.ai
kapa.ai2w ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- I understand you're using Wasp 0.15 and have already tried redeploying, but you're still encountering the same issue. Unfortunately, the knowledge sources provided don't contain specific information about this particular load balancing problem with WebSockets on Fly.io for Wasp 0.15. However, I can suggest a few additional troubleshooting steps based on the available information: 1. Check server logs: Use the following command to view your server logs on Fly.io, which might provide more details about the load balancing issue:
flyctl logs

flyctl logs

Wasp Docs - Fly.io Deployment (https://wasp-lang.dev/docs/advanced/deployment/manually#deploy-to-a-flyio-app) 2. Verify secrets and environment variables: Ensure all necessary environment variables are correctly set on Fly.io:
flyctl secrets list

flyctl secrets list

If you need to set any additional variables, you can do so with:
wasp deploy fly cmd secrets set KEY=VALUE --context=server

wasp deploy fly cmd secrets set KEY=VALUE --context=server

Wasp Docs - Environment Variables (https://wasp-lang.dev/docs/advanced/deployment/cli#flyio-regions) 3. Check your app's configuration: Review your fly.toml file to ensure it's correctly configured for your WebSocket needs. 4. Consider manual deployment: If the Wasp CLI deployment is consistently failing, you might want to try deploying manually to see if it provides more insight into the issue:
flyctl deploy --remote-only --config ../../fly.toml

flyctl deploy --remote-only --config ../../fly.toml

Wasp Docs - Manual Deployment (https://wasp-lang.dev/docs/advanced/deployment/manually#deploy-to-a-flyio-app) 5. Investigate Fly.io-specific issues: This might be a Fly.io-specific problem rather than a Wasp issue. Check Fly.io's status page or community forums for any known issues with WebSockets or load balancing. If these steps don't resolve your issue, you may need to reach out to the Wasp community on Discord or GitHub for more specific assistance, as this seems to be a complex problem that might require more detailed investigation. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @victor, 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?
NEROX
NEROX2w ago
@victor could you share you backend logs?
miho
miho2w ago
Also, maybe share your Wasp file and the Websocket setup file?
Want results from more Discord servers?
Add your server