iqfareez / flet-hello

Inspirational quotes app using Flet (Flutter + Python, No Dart)
https://flet-hello.fly.dev/
0 stars 0 forks source link

does not pass fly.io health check #2

Open iot49 opened 1 year ago

iot49 commented 1 year ago

Log from flet deploy:

2023-04-20T22:42:04Z runner[148e42ef374589] sjc [info]Pulling container image registry.fly.io/flet-getting-started:deployment-01GYGD9CANJT175D8F1M6BZGSD
2023-04-20T22:42:04Z runner[148e42ef374589] sjc [info]Unpacking image
2023-04-20T22:42:04Z runner[148e42ef374589] sjc [info]Successfully prepared image registry.fly.io/flet-getting-started:deployment-01GYGD9CANJT175D8F1M6BZGSD
2023-04-20T22:42:05Z runner[148e42ef374589] sjc [info]Configuring firecracker
2023-04-20T22:42:05Z app[148e42ef374589] sjc [info]Starting init (commit: ed64554)...
2023-04-20T22:42:05Z app[148e42ef374589] sjc [info]Preparing to run: `python ./main.py` as root
2023-04-20T22:42:05Z app[148e42ef374589] sjc [info]2023/04/20 22:42:05 listening on [fdaa:2:85b:a7b:a15f:770a:31f7:2]:22 (DNS: [fdaa::3]:53)
2023-04-20T22:42:06Z health[148e42ef374589] sjc [error]Health check on port 8080 has failed. Your app is not responding properly. Services exposed on ports [80, 443] will have intermittent failures until the health check passes.
2023-04-20T22:47:30Z runner[148e42ef374589] sjc [info]Pulling container image registry.fly.io/flet-getting-started:deployment-01GYGDKF1PRQ8DB2ZSA5246KXE
2023-04-20T22:47:31Z runner[148e42ef374589] sjc [info]Unpacking image

Maybe the app is not listening on ip "0.0.0.0" - if that's the error - how do I correct it? Or what else could be wrong?

iqfareez commented 1 year ago

Hmm. I was able to reproduce the issue. Currently investigating.

iqfareez commented 1 year ago

Unfortunately, I was unable to fix the issue. Note that I followed the official steps to deploy https://flet.dev/docs/guides/python/deploying-web-app/. Maybe something has changed in fly.io that makes the deployment failed.

Anyhow, I've started a discussion thread in flet repo, hoping that anyone can help with the issue. https://github.com/flet-dev/flet/discussions/1316