Deploying nodejs (nestjs) app error on build

I have successfully deployed a project in the past with Django

Today when I’m trying to deploy my nodejs (nestjs) to fly i got this error:

Error: failed to fetch an image or build from source: error building: error during connect: Post "http://[fdaa:2:11c6:a7b:f5:a955:8a7e:2]:2375/v1.41/build?buildargs=null&buildid=upload-request%3A45ded2a4ba1b0e5c2d0a6994b1370b7ba4799549d5378e257dfa790556cc496b&cachefrom=null&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=&labels=null&memory=0&memswap=0&networkmode=&rm=0&shmsize=0&target=&ulimits=null&version=2": write unix @->/home/robertwt7/.fly/fly-agent.sock: write: broken pipe

I can build my image locally successfully, not sure what the error is in my case.

has anyone ever experience similar issue?


When you ran fly deploy did it create a fly.toml file and or do you get that error if you try to deploy again?

Check this out here, might help-

yeah I already have the fly.toml, i did it with something like this

	flyctl deploy -c ./infrastructure/fly/fly.toml --dockerfile ./infrastructure/app/Dockerfile

omg after doing this from the other thread it works!

fly wg websockets enable
1 Like