Firebase CLI error in Google Cloud Build step - google-cloud-build

When I am running the "firebase use" command from the Firebase CLI in a cloudbuild step I get the following error:
Starting Step #5 - "SetFirebaseEnvironment"
Step #5 - "SetFirebaseEnvironment": Already have image (with digest): eu.gcr.io/BUCKET_NAME/firebase:7.12-0
Step #5 - "SetFirebaseEnvironment": [2020-02-17T13:09:50.806Z] ----------------------------------------------------------------------
Step #5 - "SetFirebaseEnvironment": [2020-02-17T13:09:50.808Z] Command: /usr/local/bin/node /usr/local/bin/firebase use dev --debug
Step #5 - "SetFirebaseEnvironment": [2020-02-17T13:09:50.808Z] CLI Version: 7.12.1
Step #5 - "SetFirebaseEnvironment": [2020-02-17T13:09:50.808Z] Platform: linux
Step #5 - "SetFirebaseEnvironment": [2020-02-17T13:09:50.808Z] Node Version: v13.6.0
Step #5 - "SetFirebaseEnvironment": [2020-02-17T13:09:50.813Z] Time: Mon Feb 17 2020 13:09:50 GMT+0000 (Coordinated Universal Time)
Step #5 - "SetFirebaseEnvironment": [2020-02-17T13:09:50.813Z] ----------------------------------------------------------------------
Step #5 - "SetFirebaseEnvironment": [2020-02-17T13:09:50.813Z]
Step #5 - "SetFirebaseEnvironment": [2020-02-17T13:09:50.820Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
Step #5 - "SetFirebaseEnvironment": [2020-02-17T13:09:50.820Z] > attempting to authenticate via app default credentials
Step #5 - "SetFirebaseEnvironment": [2020-02-17T13:09:50.854Z] TypeError: Cannot create property 'refresh_token' on string 'Not Found
Step #5 - "SetFirebaseEnvironment": '
Step #5 - "SetFirebaseEnvironment": at /usr/local/lib/node_modules/firebase-tools/node_modules/google-auto-auth/node_modules/google-auth-library/lib/auth/oauth2client.js:208:28
Step #5 - "SetFirebaseEnvironment": at /usr/local/lib/node_modules/firebase-tools/node_modules/google-auto-auth/node_modules/google-auth-library/lib/auth/computeclient.js:85:7
Step #5 - "SetFirebaseEnvironment": at Request._callback (/usr/local/lib/node_modules/firebase-tools/node_modules/google-auto-auth/node_modules/google-auth-library/lib/transporters.js:106:7)
Step #5 - "SetFirebaseEnvironment": at Request.self.callback (/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js:185:22)
Step #5 - "SetFirebaseEnvironment": at Request.emit (events.js:321:20)
Step #5 - "SetFirebaseEnvironment": at Request.EventEmitter.emit (domain.js:485:12)
Step #5 - "SetFirebaseEnvironment": at Request.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js:1154:10)
Step #5 - "SetFirebaseEnvironment": at Request.emit (events.js:321:20)
Step #5 - "SetFirebaseEnvironment": at Request.EventEmitter.emit (domain.js:485:12)
Step #5 - "SetFirebaseEnvironment": at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/firebase-tools/node_modules/request/request.js:1076:12)
Step #5 - "SetFirebaseEnvironment": at Object.onceWrapper (events.js:427:28)
Step #5 - "SetFirebaseEnvironment": at IncomingMessage.emit (events.js:333:22)
Step #5 - "SetFirebaseEnvironment": at IncomingMessage.EventEmitter.emit (domain.js:485:12)
Step #5 - "SetFirebaseEnvironment": at endReadableNT (_stream_readable.js:1220:12)
Step #5 - "SetFirebaseEnvironment": at processTicksAndRejections (internal/process/task_queues.js:84:21)
Step #5 - "SetFirebaseEnvironment":
Step #5 - "SetFirebaseEnvironment": Error: An unexpected error has occurred.
Finished Step #5 - "SetFirebaseEnvironment"
2020/02/17 14:09:51 Step Step #5 - "SetFirebaseEnvironment" finished
2020/02/17 14:09:51 status changed to "ERROR"
ERROR
ERROR: build step 5 "eu.gcr.io/BUCKET_NAME/firebase:7.12-0" failed: exit status 2
2020/02/17 14:09:54 Build finished with ERROR status
When I run the same command on my local machine with exactly the same Firebase CLI version and Node version I dont get this error. Why do I get this error and how do a solve it?

It seems as it's fixed now (see comments to original question with links), but generally, the logic to fix such an issue is to try rebuilding firebase docker image used in cloud builder step.

Related

How to resolve error on ProcessMaker 4.3.0 instllation?

My server specifications:
Centos 7.9
PHP 8.2
Nginx
MySQL 8.0
Composer 2.4.4
Node 16.18.1
NPM 8.19.3
Redis 5
Docker
I have installed all the dependencies required for ProcessMaker 4.3.0 running(mentioned the versions above). After enabling the npm, laravel and artisan horizan server, I hit the URL and get 500 error. On checking the nginx log I get the following error:
[error] 8150#8150: *512 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught ErrorException: file_put_contents(/opt/processmaker-4.3.0/storage/framework/views/ef0f3565ae74afa67f42e441ee3da8cfbe934ae1.php): Failed to open stream: Permission denied in /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:187 Stack trace: #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(187): file_put_contents() #2 /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(169): Illuminate\Filesystem\Filesystem->put() #3 /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(55): Illuminate\View\Compilers\BladeCompiler->compile() #4 /opt/processmaker-4.3.0/vendor/facade/ignition/src/Views/Engines/CompilerEngine.php(37): Illuminate\View\Engines\CompilerEngine->get() #5 /opt/processmaker-4.3.0/vendor/laravel/fram...PHP message: PHP Fatal error: Uncaught ErrorException: file_put_contents(/opt/processmaker-4.3.0/storage/framework/views/ef0f3565ae74afa67f42e441ee3da8cfbe934ae1.php): Failed to open stream: Permission denied in /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:187 Stack trace: #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError() #1 /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php(187): file_put_contents() #2 /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/View/Compilers/BladeCompiler.php(169): Illuminate\Filesystem\Filesystem->put() #3 /opt/processmaker-4.3.0/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php(55): Illuminate\View\Compilers\BladeCompiler->compile() #4 /opt/processmaker-4.3.0/vendor/facade/ignition/src/Views/Engines/CompilerEngine.php(37): Illuminate\View\Engines\CompilerEngine->get
I have already given 755 permission to the storage and vendor folder in processmaker. Also the owner ship and group of all the folders and files is nginx.
Whatelse, could I be missing out?

getting permission denied on app engine deploy

cannot run gcloud app deploy i get the following on terminal (gcloud.app.deploy) Error Response: [9] Cloud build 8c84eb5e-f6b7-4170-a87d-80754fecfbbe status: FAILURE
removing /layers/google.go.gomod/gopath: unlinkat /layers/google.go.gomod/gopath/pkg/mod/gonum.org/v1/gonum#v0.9.3/internal/math32/signbit.go: permission denied
Full build logs: https://console.cloud.google.com/cloud-build/builds;region=us-central1/8c84eb5e-f6b7-4170-a87d-80754fecfbbe?project=552359020884
starting build "f0da5db4-4130-4784-9276-90236bc2e6c6"
FETCHSOURCE
BUILD
Starting Step #0 - "fetch"
Step #0 - "fetch": Pulling image: us.gcr.io/gae-runtimes/utilities/gcs-fetcher:base_20220302a_18_04_RC00
Step #0 - "fetch": base_20220302a_18_04_RC00: Pulling from gae-runtimes/utilities/gcs-fetcher
Step #0 - "fetch": 05867982f162: Pulling fs layer
Step #0 - "fetch": 05867982f162: Verifying Checksum
Step #0 - "fetch": 05867982f162: Download complete
Step #0 - "fetch": 05867982f162: Pull complete
Step #0 - "fetch": Digest: sha256:3534f59733f91a6b570e0fee8394f356100459ce1b9b25aa80fa0dae19fd2b4b
Step #0 - "fetch": Status: Downloaded newer image for us.gcr.io/gae-runtimes/utilities/gcs-fetcher:base_20220302a_18_04_RC00
Step #0 - "fetch": us.gcr.io/gae-runtimes/utilities/gcs-fetcher:base_20220302a_18_04_RC00
Step #0 - "fetch": Fetching manifest gs://staging.fitstack-343223.appspot.com/ae/b92b526e-7dcf-4786-9d01-988286bbd036/manifest.json.
Step #0 - "fetch": Processing 32 files.
Step #0 - "fetch": ******************************************************
Step #0 - "fetch": Status: SUCCESS
Step #0 - "fetch": Started: 2022-03-16T01:27:57Z
Step #0 - "fetch": Completed: 2022-03-16T01:27:57Z
Step #0 - "fetch": Requested workers: 200
Step #0 - "fetch": Actual workers: 32
Step #0 - "fetch": Total files: 32
Step #0 - "fetch": Total retries: 0
Step #0 - "fetch": GCS timeouts: 0
Step #0 - "fetch": MiB downloaded: 0.27 MiB
Step #0 - "fetch": MiB/s throughput: 2.30 MiB/s
Step #0 - "fetch": Time for manifest: 73.99 ms
Step #0 - "fetch": Total time: 0.20 s
Step #0 - "fetch": ******************************************************
Finished Step #0 - "fetch"
Starting Step #1 - "pre-buildpack"
Step #1 - "pre-buildpack": Pulling image: us.gcr.io/gae-runtimes/utilities/buildpack-shim:base_20220302a_18_04_RC00
Step #1 - "pre-buildpack": base_20220302a_18_04_RC00: Pulling from gae-runtimes/utilities/buildpack-shim
Step #1 - "pre-buildpack": 47d17572643b: Already exists
Step #1 - "pre-buildpack": b69d4a399026: Already exists
Step #1 - "pre-buildpack": 3c2cba919283: Already exists
Step #1 - "pre-buildpack": 5683da2e62ee: Already exists
Step #1 - "pre-buildpack": 5d61b34c58e5: Already exists
Step #1 - "pre-buildpack": 871c5c6098f7: Already exists
Step #1 - "pre-buildpack": 258748e39430: Already exists
Step #1 - "pre-buildpack": 9044308efa14: Already exists
Step #1 - "pre-buildpack": 3dcf4435d2c6: Already exists
Step #1 - "pre-buildpack": dc5b391f6f2a: Already exists
Step #1 - "pre-buildpack": 2c067104188b: Already exists
Step #1 - "pre-buildpack": e60795ed0a63: Pulling fs layer
Step #1 - "pre-buildpack": b8988709d36f: Pulling fs layer
Step #1 - "pre-buildpack": ab002007ac6d: Pulling fs layer
Step #1 - "pre-buildpack": b8988709d36f: Download complete
Step #1 - "pre-buildpack": ab002007ac6d: Download complete
Step #1 - "pre-buildpack": e60795ed0a63: Verifying Checksum
Step #1 - "pre-buildpack": e60795ed0a63: Download complete
Step #1 - "pre-buildpack": e60795ed0a63: Pull complete
Step #1 - "pre-buildpack": b8988709d36f: Pull complete
Step #1 - "pre-buildpack": ab002007ac6d: Pull complete
Step #1 - "pre-buildpack": Digest: sha256:275cba4037e38f32445232017e902e70e6b29251ddbf8e2fba1b95f3fe37a6cf
Step #1 - "pre-buildpack": Status: Downloaded newer image for us.gcr.io/gae-runtimes/utilities/buildpack-shim:base_20220302a_18_04_RC00
Step #1 - "pre-buildpack": us.gcr.io/gae-runtimes/utilities/buildpack-shim:base_20220302a_18_04_RC00
Step #1 - "pre-buildpack": Preparing directory /layers
Step #1 - "pre-buildpack": Preparing directory /workspace
Step #1 - "pre-buildpack": Preparing directory /builder/home
Step #1 - "pre-buildpack": Preparing directory /builder/outputs
Step #1 - "pre-buildpack": Preparing directory /platform/env
Step #1 - "pre-buildpack": Passing build environment variable BUILDER_OUTPUT to buildpacks
Step #1 - "pre-buildpack": Passing build environment variable GOOGLE_DEBUG to buildpacks
Step #1 - "pre-buildpack": Passing build environment variable GOOGLE_RUNTIME to buildpacks
Step #1 - "pre-buildpack": Passing build environment variable GOOGLE_LABEL_BUILDER_VERSION to buildpacks
Step #1 - "pre-buildpack": Passing build environment variable GOOGLE_LABEL_BUILDER_IMAGE to buildpacks
Step #1 - "pre-buildpack": Passing build environment variable GOOGLE_LABEL_RUN_IMAGE to buildpacks
Step #1 - "pre-buildpack": Passing build environment variable GAE_APP_ENGINE_APIS to buildpacks
Step #1 - "pre-buildpack": Passing build environment variable GOOGLE_EXPERIMENTAL_AR_AUTH_ENABLED to buildpacks
Step #1 - "pre-buildpack": Retagging us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest as us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:f0da5db4-4130-4784-9276-90236bc2e6c6
Step #1 - "pre-buildpack": Checking if image us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest exists
Step #1 - "pre-buildpack": Image us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest exists
Step #1 - "pre-buildpack": DEBUG: "us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest"(us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest) took 381.418627ms
Step #1 - "pre-buildpack": Checking if image us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest is valid
Step #1 - "pre-buildpack": DEBUG: ...pull("us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest") took 95.856602ms
Step #1 - "pre-buildpack": DEBUG: ...validate("us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest") took 204.495818ms
Step #1 - "pre-buildpack": Image us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest is valid
Step #1 - "pre-buildpack": DEBUG: "us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest"(us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest) took 300.520902ms
Step #1 - "pre-buildpack": Image us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest copied to us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:f0da5db4-4130-4784-9276-90236bc2e6c6
Step #1 - "pre-buildpack": DEBUG: "us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest", "us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:f0da5db4-4130-4784-9276-90236bc2e6c6"(us.gcr.io/fitstack-343223/app-engine-tmp/build-cache/default/ttl-7d:latest) took 634.021045ms
Finished Step #1 - "pre-buildpack"
Starting Step #2 - "build"
Step #2 - "build": Pulling image: us.gcr.io/gae-runtimes/buildpacks/go116/builder:go116_20220306_1_16_13_RC00
Step #2 - "build": go116_20220306_1_16_13_RC00: Pulling from gae-runtimes/buildpacks/go116/builder
Step #2 - "build": 47d17572643b: Already exists
Step #2 - "build": b69d4a399026: Already exists
Step #2 - "build": 3c2cba919283: Already exists
Step #2 - "build": 5683da2e62ee: Already exists
Step #2 - "build": 5d61b34c58e5: Already exists
Step #2 - "build": 871c5c6098f7: Already exists
Step #2 - "build": 258748e39430: Already exists
Step #2 - "build": 9044308efa14: Already exists
Step #2 - "build": 3dcf4435d2c6: Already exists
Step #2 - "build": dc5b391f6f2a: Already exists
Step #2 - "build": 2c067104188b: Already exists
Step #2 - "build": 0f543a8b6413: Pulling fs layer
Step #2 - "build": 6b10d361d16a: Pulling fs layer
Step #2 - "build": 11c1bcc7b79a: Pulling fs layer
Step #2 - "build": d41faa8feb5c: Pulling fs layer
Step #2 - "build": 49ef2925f143: Pulling fs layer
Step #2 - "build": 9ebd49cad864: Pulling fs layer
Step #2 - "build": 9f660d20a3a2: Pulling fs layer
Step #2 - "build": e8c7adea3b75: Pulling fs layer
Step #2 - "build": 06f428a8446f: Pulling fs layer
Step #2 - "build": dcaad5a887e8: Pulling fs layer
Step #2 - "build": bfddb12fd793: Pulling fs layer
Step #2 - "build": 2dc944e4043e: Pulling fs layer
Step #2 - "build": 674804e5a494: Pulling fs layer
Step #2 - "build": fe55734633e1: Pulling fs layer
Step #2 - "build": d1ced7a31646: Pulling fs layer
Step #2 - "build": 8d51793b1c23: Pulling fs layer
Step #2 - "build": d32271d57ef0: Pulling fs layer
Step #2 - "build": 50e8b9c0dddc: Pulling fs layer
Step #2 - "build": 4f4fb700ef54: Pulling fs layer
Step #2 - "build": d41faa8feb5c: Waiting
Step #2 - "build": 49ef2925f143: Waiting
Step #2 - "build": 674804e5a494: Waiting
Step #2 - "build": 9ebd49cad864: Waiting
Step #2 - "build": fe55734633e1: Waiting
Step #2 - "build": 9f660d20a3a2: Waiting
Step #2 - "build": e8c7adea3b75: Waiting
Step #2 - "build": d1ced7a31646: Waiting
Step #2 - "build": 06f428a8446f: Waiting
Step #2 - "build": 8d51793b1c23: Waiting
Step #2 - "build": dcaad5a887e8: Waiting
Step #2 - "build": d32271d57ef0: Waiting
Step #2 - "build": bfddb12fd793: Waiting
Step #2 - "build": 2dc944e4043e: Waiting
Step #2 - "build": 50e8b9c0dddc: Waiting
Step #2 - "build": 4f4fb700ef54: Waiting
Step #2 - "build": 6b10d361d16a: Verifying Checksum
Step #2 - "build": 6b10d361d16a: Download complete
Step #2 - "build": 0f543a8b6413: Verifying Checksum
Step #2 - "build": 0f543a8b6413: Download complete
Step #2 - "build": d41faa8feb5c: Verifying Checksum
Step #2 - "build": d41faa8feb5c: Download complete
Step #2 - "build": 49ef2925f143: Download complete
Step #2 - "build": 0f543a8b6413: Pull complete
Step #2 - "build": 9ebd49cad864: Verifying Checksum
Step #2 - "build": 9ebd49cad864: Download complete
Step #2 - "build": 9f660d20a3a2: Verifying Checksum
Step #2 - "build": 9f660d20a3a2: Download complete
Step #2 - "build": e8c7adea3b75: Verifying Checksum
Step #2 - "build": e8c7adea3b75: Download complete
Step #2 - "build": 06f428a8446f: Verifying Checksum
Step #2 - "build": 06f428a8446f: Download complete
Step #2 - "build": 6b10d361d16a: Pull complete
Step #2 - "build": bfddb12fd793: Verifying Checksum
Step #2 - "build": bfddb12fd793: Download complete
Step #2 - "build": dcaad5a887e8: Verifying Checksum
Step #2 - "build": dcaad5a887e8: Download complete
Step #2 - "build": 2dc944e4043e: Verifying Checksum
Step #2 - "build": 2dc944e4043e: Download complete
Step #2 - "build": 674804e5a494: Verifying Checksum
Step #2 - "build": 674804e5a494: Download complete
Step #2 - "build": fe55734633e1: Verifying Checksum
Step #2 - "build": fe55734633e1: Download complete
Step #2 - "build": d1ced7a31646: Verifying Checksum
Step #2 - "build": d1ced7a31646: Download complete
Step #2 - "build": d32271d57ef0: Verifying Checksum
Step #2 - "build": d32271d57ef0: Download complete
Step #2 - "build": 8d51793b1c23: Verifying Checksum
Step #2 - "build": 8d51793b1c23: Download complete
Step #2 - "build": 4f4fb700ef54: Verifying Checksum
Step #2 - "build": 4f4fb700ef54: Download complete
Step #2 - "build": 50e8b9c0dddc: Verifying Checksum
Step #2 - "build": 50e8b9c0dddc: Download complete
Step #2 - "build": 11c1bcc7b79a: Verifying Checksum
Step #2 - "build": 11c1bcc7b79a: Download complete
Step #2 - "build": 11c1bcc7b79a: Pull complete
Step #2 - "build": d41faa8feb5c: Pull complete
Step #2 - "build": 49ef2925f143: Pull complete
Step #2 - "build": 9ebd49cad864: Pull complete
Step #2 - "build": 9f660d20a3a2: Pull complete
Step #2 - "build": e8c7adea3b75: Pull complete
Step #2 - "build": 06f428a8446f: Pull complete
Step #2 - "build": dcaad5a887e8: Pull complete
Step #2 - "build": bfddb12fd793: Pull complete
Step #2 - "build": 2dc944e4043e: Pull complete
Step #2 - "build": 674804e5a494: Pull complete
Step #2 - "build": fe55734633e1: Pull complete
Step #2 - "build": d1ced7a31646: Pull complete
Step #2 - "build": 8d51793b1c23: Pull complete
Step #2 - "build": d32271d57ef0: Pull complete
Step #2 - "build": 50e8b9c0dddc: Pull complete
Step #2 - "build": 4f4fb700ef54: Pull complete
Step #2 - "build": Digest: sha256:874ed274d98a67c23a1102811baac2313a3db7b0e1d60f2bdc34c9e2615e45a7
Step #2 - "build": Status: Downloaded newer image for us.gcr.io/gae-runtimes/buildpacks/go116/builder:go116_20220306_1_16_13_RC00
Step #2 - "build": us.gcr.io/gae-runtimes/buildpacks/go116/builder:go116_20220306_1_16_13_RC00
Step #2 - "build": ===> DETECTING
Step #2 - "build": google.go.appengine_gomod 0.9.0
Step #2 - "build": google.go.gomod 0.9.0
Step #2 - "build": google.go.build 0.9.0
Step #2 - "build": google.go.appengine 0.9.0
Step #2 - "build": google.utils.label 0.0.2
Step #2 - "build": ===> ANALYZING
Step #2 - "build": Previous image with name "us.gcr.io/fitstack-343223/app-engine-tmp/app/default/ttl-18h:b92b526e-7dcf-4786-9d01-988286bbd036" not found
Step #2 - "build": Restoring metadata for "google.go.gomod:gopath" from cache
Step #2 - "build": ===> RESTORING
Step #2 - "build": Restoring data for "google.go.gomod:gopath" from cache
Step #2 - "build": ===> BUILDING
Step #2 - "build": === App Engine Gomod (google.go.appengine_gomod#0.9.0) ===
Step #2 - "build": --------------------------------------------------------------------------------
Step #2 - "build": Running "cp --dereference -R . /layers/google.go.appengine_gomod/srv"
Step #2 - "build": Done "cp --dereference -R . /layers/google.go.appengine_gomod/srv" (62.041821ms)
Step #2 - "build": === Go - Gomod (google.go.gomod#0.9.0) ===
Step #2 - "build": DEBUG: go.mod SHA has changed: clearing GOPATH layer's cache
Step #2 - "build": Failure: (ID: 4516fb13) removing /layers/google.go.gomod/gopath: unlinkat /layers/google.go.gomod/gopath/pkg/mod/gonum.org/v1/gonum#v0.9.3/internal/math32/signbit.go: permission denied
Step #2 - "build": --------------------------------------------------------------------------------
Step #2 - "build": Running "mv -f /builder/outputs/output-5577006791947779410 /builder/outputs/output"
Step #2 - "build": Done "mv -f /builder/outputs/output-5577006791947779410 /builder/o..." (35.537571ms)
Step #2 - "build": ERROR: failed to build: exit status 1
Finished Step #2 - "build"
ERROR
ERROR: build step 2 "us.gcr.io/gae-runtimes/buildpacks/go116/builder:go116_20220306_1_16_13_RC00" failed: step exited with non-zero status: 145
here is my go mod
module github.com/voodoostack/fitstackapi
go 1.17
require golang.org/x/crypto v0.0.0-20220214200702-86341886e292
require (
github.com/99designs/gqlgen v0.17.1
github.com/georgysavva/scany v0.3.0
github.com/go-chi/chi v1.5.4
github.com/golang-migrate/migrate/v4 v4.15.1
github.com/jackc/pgx/v4 v4.15.0
github.com/joho/godotenv v1.4.0
github.com/lestrrat-go/jwx v1.2.20
github.com/stretchr/testify v1.7.0
github.com/vektah/gqlparser/v2 v2.4.0
)
require (
github.com/agnivade/levenshtein v1.1.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.0-20210816181553-5444fa50b93d // indirect
github.com/goccy/go-json v0.9.4 // indirect
github.com/gorilla/websocket v1.4.2 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.0 // indirect
github.com/hashicorp/golang-lru v0.5.1 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.11.0 // indirect
github.com/jackc/pgio v1.0.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgproto3/v2 v2.2.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
github.com/jackc/pgtype v1.10.0 // indirect
github.com/jackc/puddle v1.2.1 // indirect
github.com/lestrrat-go/backoff/v2 v2.0.8 // indirect
github.com/lestrrat-go/blackmagic v1.0.0 // indirect
github.com/lestrrat-go/httpcc v1.0.0 // indirect
github.com/lestrrat-go/iter v1.0.1 // indirect
github.com/lestrrat-go/option v1.0.0 // indirect
github.com/lib/pq v1.10.2 // indirect
github.com/matryer/moq v0.2.3 // indirect
github.com/mitchellh/mapstructure v1.2.3 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/stretchr/objx v0.2.0 // indirect
github.com/urfave/cli/v2 v2.3.0 // indirect
go.uber.org/atomic v1.6.0 // indirect
golang.org/x/mod v0.5.1 // indirect
golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/tools v0.1.9 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)
and finally my app.yaml
runtime: go117
env: standard
instance_class: F1
handlers:
- url: /.*
script: auto
- url: .*
script: auto
env_variables:
DATABASE_URL: none
automatic_scaling:
min_idle_instances: automatic
max_idle_instances: automatic
min_pending_latency: automatic
max_pending_latency: automatic
network: {}
service_account: fitstack-343223#appspot.gserviceaccount.com
Google cloud with the appengine doesn't support go 1.17 yet, only go 1.16 max at the moment

magento admin assert issue

Error in file: "/home/siddharth/iphp/magento/app/code/core/Mage/Admin/sql/admin_setup/install-1.6.0.0.php"
- SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'admin_role' already exists
Trace:
#0 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(421): Mage_Core_Model_Resource_Setup->_modifyResourceDb('install', '', '1.6.1.1')
#2 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(327): Mage_Core_Model_Resource_Setup->_installResourceDb('1.6.1.1')
#3 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 /home/siddharth/iphp/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /home/siddharth/iphp/magento/index.php(87): Mage::run('', 'store')
#8 {main}
1) Go to your localhost or mysql on your server and delete the table that gives error...
2) Clear cookies and refresh that page again
3) Ater 2nd step if same error persist then close the browser and restart it...this will delete all cookies and cache and then hit the url again... do these steps for all errors that come... after this successful completion will be done...

Magento 1.5.1 Installation Error

I receive the following error messages after I set the Base URL and database information. Here is the complete dump:
Error in file: "/var/www/docroot/store/app/code/core/Mage/Core/sql/core_setup/mysql4-upgrade-0.8.0-0.8.1.php" - SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine
Trace:
#0 /var/www/docroot/store/app/code/core/Mage/Core/Model/Resource/Setup.php(390): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /var/www/docroot/store/app/code/core/Mage/Core/Model/Resource/Setup.php(289): Mage_Core_Model_Resource_Setup->_modifyResourceDb('upgrade', '0.8.0', '0.8.28')
#2 /var/www/docroot/store/app/code/core/Mage/Core/Model/Resource/Setup.php(233): Mage_Core_Model_Resource_Setup->_upgradeResourceDb('0.8.0', '0.8.28')
#3 /var/www/docroot/store/app/code/core/Mage/Core/Model/Resource/Setup.php(161): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /var/www/docroot/store/app/code/core/Mage/Core/Model/App.php(399): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /var/www/docroot/store/app/code/core/Mage/Core/Model/App.php(329): Mage_Core_Model_App->_initModules()
#6 /var/www/docroot/store/app/Mage.php(627): Mage_Core_Model_App->run(Array)
#7 /var/www/docroot/store/index.php(81): Mage::run('', 'store')
#8 {main}
I've seen several supposed fixes for similar errors on Google, but none of them have worked. Can anyone help make sense of this?
This Linux System Error Code table reveals, that error 28 corresponds to
28 ENOSPC No space left on device
If you are on a shared host and you are using some global/shared MySQL instance, there is probably not much you can do about it.

Problem with Doctrine_Expression (Doctrine 2) 'There is no open connection'

I have Doctrine2 working fine with my Zend PHP stack.
However if I want to use Doctrine_Expression,
$item->setDateCreated(new Doctrine_Expression('NOW()'));
then I get following error 'There is no open connection'.
This is stack trace:
#0 D:\data\wamp\bin\php\php5.3.5\PEAR\Doctrine\Manager.php(264): Doctrine_Manager->getCurrentConnection()
#1 D:\data\wamp\bin\php\php5.3.5\PEAR\Doctrine\Expression.php(72): Doctrine_Manager::connection()
#2 D:\data\wamp\bin\php\php5.3.5\PEAR\Doctrine\Expression.php(116): Doctrine_Expression->getConnection()
#3 D:\data\wamp\bin\php\php5.3.5\PEAR\Doctrine\Expression.php(133): Doctrine_Expression->parseExpression('NOW()')
#4 D:\data\wamp\bin\php\php5.3.5\PEAR\Doctrine\Expression.php(89): Doctrine_Expression->parseClause('NOW()')
#5 D:\data\wamp\bin\php\php5.3.5\PEAR\Doctrine\Expression.php(60): Doctrine_Expression->setExpression('NOW()')
#6 D:\data\work\gazette\Projects\NorskTipping\admin-system\code\application\library\MagicHeads\Knalledge\Models\Tagging.php(91): Doctrine_Expression->__construct('NOW()')
...
#14 {main}
I tried to add connection
$item->setDateCreated(new Doctrine_Expression('NOW()', $this->_em->getConnection()));
However, it happens it is connection of type Doctrine\DBAL\Connection while Doctrine_Expression requires Doctrine_Connection
How I can get Doctrine_Connection and provide it to Doctrine_Expression?
Doctrine_Expression is a Doctrine 1 class and can not be used with Doctrine 2. The two versions are very different and not compatible.

Resources