Why is My Deploy Failing?

Hi there,

I recently came across with Render and wanted to use it for my new node backend app. This is the repository i tested my deploy: GitHub - muratgozel/gov-backend at production but it keeps failing with no reason. Logs also look okay:

...
May 10 10:43:48 AM   ==> Generating container image from build. This may take a few minutes...
May 10 10:45:35 AM   ==> Uploading build...
May 10 10:46:22 AM   ==> Build successful 🎉
May 10 10:46:22 AM   ==> Deploying...
May 10 10:46:52 AM  ==> Starting service with 'npm run start'
May 10 10:46:55 AM  
May 10 10:46:55 AM  > testgov@0.1.0 start /opt/render/project/src
May 10 10:46:55 AM  > node app.js
May 10 10:46:55 AM  
May 10 10:46:58 AM  {"level":30,"time":1652172418828,"pid":62,"hostname":"srv-c9t2bbfho1knm5f78sp0-kn-00001-deployment-9b89d766c-pmn69","msg":"Server listening at http://127.0.0.1:3001"}

Render address is https://gov-backend.onrender.com

Hi Murat,

Thanks for reaching out.

It appears your app server is listening in localhost/127.0.0.1 that would need to be 0.0.0.0. Fastify listen docs.

Hope that helps

Kind regards

Alan

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.