Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Error deploying from source - failed to build: (error ID: e21b8027)

Hello,

I've managed to deploy multiple services from source in my project for some while now. I'm deploying nodejs projects using the Powershell in VS Code with the following command: gcloud run deploy [service name] --source . Recently when deploying a service, I back an error when building the container. Reading the build log in the cloud console, I get the following error:

Step #1: ===> BUILDING

Step #1: [builder] Timer: Builder started at 2025-01-13T09:41:42Z
Step #1: [builder] === Node.js - Runtime (google.nodejs.runtime@1.0.0) ===
Step #1: [builder] 2025/01/13 09:41:42 [DEBUG] GET https://dl.google.com/runtimes/ubuntu2204/nodejs/version.json
Step #1: [builder] ***** CACHE MISS: "nodejs"
Step #1: [builder] Installing Node.js v20.18.1.
Step #1: [builder] 2025/01/13 09:41:42 [DEBUG] GET https://dl.google.com/runtimes/ubuntu2204/nodejs/nodejs-20.18.1.tar.gz
Step #1: [builder] === Node.js - Npm (google.nodejs.npm@1.1.0) ===
Step #1: [builder] --------------------------------------------------------------------------------
Step #1: [builder] failed to build: (error ID: e21b8027):
Step #1: [builder] removing node_modules: unlinkat ./node_modules/escodegen/bin/esgenerate.js: permission denied
Step #1: [builder] --------------------------------------------------------------------------------
Step #1: [builder] Sorry your project couldn't be built.
Step #1: [builder] Our documentation explains ways to configure Buildpacks to better recognise your project:
Step #1: [builder] If you think you've found an issue, please report it:
Step #1: [builder] --------------------------------------------------------------------------------
Step #1: [builder] Timer: Builder ran for 2.436550514s and ended at 2025-01-13T09:41:44Z
Step #1: [builder] ERROR: failed to build: exit status 1
Step #1: ERROR: failed to build: executing lifecycle. This may be the result of using an untrusted builder: failed with status code: 51
Finished Step #1
ERROR
ERROR: build step 1 "gcr.io/k8s-skaffold/pack" failed: step exited with non-zero status: 1

I think the issue could be in the puppeteer package, because esgenerate.js is used by puppeteer. Anyone an idea how to fix this?

My package.json:
{
"name": [my_name_of-the_project],
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^1.7.7",
"body-parser": "^1.20.3",
"express": "^4.21.0",
"http": "^0.0.1-security",
"jsdom": "^25.0.1",
"puppeteer": "^23.11.1"
}
}

0 0 35
0 REPLIES 0