I'm testing how to build a pipeline on GCP and after successfully deploying an Angular 6 application I wanted to add a websocket (socket.io) backend that will serve real time updates.
First of all the error itself, which is results of this command: gcloud builds submit --verbosity=debug --config stage.cloudbuild.yaml . [...] Step #1: ERROR: (gcloud.app.deploy) INTERNAL: Internal error encountered. Finished Step #1 ERROR ERROR: build step 1 "gcr.io/cloud-builders/gcloud" failed: exit status 1 ---------------------------------------------------------------------------------- DEBUG: (gcloud.builds.submit) build 29412e5a-cd7f-4af8-9b83-71fb17414dc2 completed with status "FAILURE" Traceback (most recent call last): File "C:\Users\[UsernameRedacted]\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\cli.py", line 985, in Execute resources = calliope_command.Run(cli=self, args=args) File "C:\Users\[UsernameRedacted]\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\googlecloudsdk\calliope\backend.py", line 795, in Run resources = command_instance.Run(args) File "C:\Users\[UsernameRedacted]\AppData\Local\Google\Cloud SDK\google-cloud-sdk\lib\surface\builds\submit.py", line 497, in Run raise FailedBuildException(build) FailedBuildException: build 29412e5a-cd7f-4af8-9b83-71fb17414dc2 completed with status "FAILURE" ERROR: (gcloud.builds.submit) build 29412e5a-cd7f-4af8-9b83-71fb17414dc2 completed with status "FAILURE" [...] [ ... NPM saying it's not its fault yada yada ... ] My local environment is: - Node: 10.9.0 - NPM: 6.2.0 - OS: Windows 10 Seems like something is wrong in some python script in my local machine but honestly I don't know how I should fix this. Any help is appreciated. The following is the app.yaml file (specifically stage.app.yaml): service: mercury runtime: nodejs env: flex instance_class: B1 manual_scaling: instances: 1 env_variables: MERCURY_PORT: 5001 MERCURY_SECRET: [REDACTED] network: session_affinity: true The cloudbuild.yaml (specifically stage.cloudbuild.yaml): steps: - name: 'gcr.io/cloud-builders/npm' args: [ 'install' ] - name: 'gcr.io/cloud-builders/gcloud' args: [ 'app', 'deploy', 'stage.app.yaml', '-v=stage' ] And finally, this is the package.json: { "name": "mercury", "version": "1.0.0", "description": "socket.io event manager", "main": "index.js", "scripts": { "start": "node index.js", "deploy-stage": "gcloud builds submit --config stage.cloudbuild.yaml .", "deploy-prod": "gcloud builds submit --config prod.cloudbuild.yaml ." }, "dependencies": { "async": "^2.4.0", "body-parser": "^1.17.1", "dotenv": "^4.0.0", "express": "^4.15.2", "express-validator": "^3.2.0", "http": "0.0.0", "jsonwebtoken": "^7.4.0", "moment": "^2.18.1", "request": "^2.81.0", "request-promise": "^4.2.2", "socket.io": "^2.0.1" }, "devDependencies": { "eslint": "^4.18.1", "eslint-plugin-node": "^6.0.0", "log-timestamp": "^0.1.2" }, "engines": { "node": "10.9.0" } } -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/9a79ef09-d6e1-4fcc-898d-9bf13a90fb0f%40googlegroups.com.