Failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF

I’m using Dockerfile to deploy my NestJS. At the very last step, I got this error

Failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF

I’ve tried to build on local and it works. Not sure what caused the problems?

Dockerfile

# Use an official Node.js runtime as a parent image
FROM node:18

# Set the working directory in the container
WORKDIR /usr/src/app

# Copy package.json and package-lock.json
COPY package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application code
COPY . .

# Build the application
RUN npm run build

# Show build files
RUN cd dist && ls -la

# Command to run the application
CMD ["npm", "run", "start:prod"]

Hi,

Your services are up and running. Did you fix the issue? Can you share how you solved it for the community if you were able to fix it, please?

Hey David, despite being up and running, the issues are still there, so I guess it doesn’t affect the services?

It seems related to the cache service. This is the logs at the end

#14 DONE 14.0s
#16 exporting cache to registry
#16 preparing build cache for export
error: failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF
sh: can't kill pid 9: No such process
Build failed ❌

This issue has been reported

I’m not sure what caused the problem. May you take a look?

Bump this issue. It’s still happening to my services.

Hi,

Yes, so the cache export step fails.

This does not prevent the deployment from moving forward. However, it prevents you from using the cache when you redeploy.

We need to investigate how we can solve this.

I’ll get back to you on this.