I've an Angular Universal application deployed to CloudRun (running Node.js on the server) and connecting to a Firestore DB. It's been working successfully for the last 2 years.
I started getting the Could not reach Cloud Firestore backend on CloudRun
error since 2 days ago (I've run a query on Cloud logger for the last 2 months, and only last 2 days started being problematic).
Some things to consider:
package-lock
didn't change)It's not clear if the issue is from CloudRun non being able to connect to Firestore (eg due to lack of internet/egress-networking (?)), or if Firestore is somehow refusing the connection.
Has someone faced a similar issue, or can give me suggestions on how to approach/solve this incident?
Thank you very much in advance
Posting the updated and solving the issue in case it helps anybody else...
I've finally solved the issue by "rolling back" the Node alpine version used by my Docker image.
The Docker image I was using was created using FROM node:alpine
, which points to the newest stable version of Node.js.
Apparently, that last version introduced the bug; I've no idea what was causing the issue, but it started after upgrading to Node.js v18.8.0
.
I've rolled back to a previous version ( FROM node:current-alpine3.14
which runs Node.js v18.3.0
) and the error finally disappeared.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.