Fly deploy fails

I am trying to deploy a Python/FastAPI application.
It works flawlessly locally but when I try to run “fly deploy” it fails after a long while with this error:
Error executing lifecycle: io: read/write on closed pipe

Any ideas?


Can you see if the suggestions here help -

Also can you post a few more lines of logs above & below the error msg you’ve highlighted.