Hello,
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?
Hi,
Can you see if the suggestions here help -
I have been trying to deploy for about 48h now and still no luck so I don’t think this is due to a temporary issue.
Whenever i run fly deploy --remote-only I get a ERRO[0605] Can't add file <some_file> to tar: io: read/write on closed pipe error.
My app is in fra with ams and cdg as backup.
Here is a log with some more information:
Remote builder fly-builder-lively-sea-2360 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.…
I looked it over again. I think what happened here is a build was done locally, and such builds tend to be pretty big.
Since the Fly build (using Dockerfile) handles the build itself, you would want to ensure you don’t upload a locally run build.
The solution then would be to either remove the local build, or add the following lines to .dockerignore:
build/
public/build/
We’ll probably add this to the default .dockerignore as others have reported this problem.
Also can you post a few more lines of logs above & below the error msg you’ve highlighted.