Sachin Vairagi
Sachin Vairagi

Reputation: 5334

Google cloud - connect: connection refused with cloud build triggers

I am trying to auto deploy an app from GitHub to Google cloud. For reference I checked similar example with firebase from - https://fireship.io/lessons/ci-cd-with-google-cloud-build/

but I am getting following error while trying to run trigger -

Pulling image: grc.io/cloud-builders/npm
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused
Using default tag: latest
Error response from daemon: Get https://grc.io/v2/: dial tcp 64.98.145.30:443: connect: connection refused

Updated as per Cloud Ace comment My cloudbuild.yaml file have following codes -

steps:
  #install
  - name: 'gcr.io/cloud-builders/npm'
    args: ['install']

   #build
  - name: 'gcr.io/cloud-builders/npm'
    args: ['run', 'build']

   #deploy
  - name: 'gcr.io/mytest-240512/npm'
    args: ['deploy']

Please help me to fix this error. Thank you!!

Now getting another error -

Step #1: ERROR: (gcloud.app.deploy) Permissions error fetching application [apps
/mytest-240512]. Please make sure you are using the correct project ID and that
you have permission to view applications on the project.

Upvotes: 7

Views: 2217

Answers (1)

Cloud Ace Wenyuan Jiang
Cloud Ace Wenyuan Jiang

Reputation: 2205

There's a typo in your cloudbuild.yaml, change grc.io to gcr.io

Upvotes: 18

Related Questions