google-github-actions / deploy-appengine

A GitHub Action that deploys source code to Google App Engine.
https://cloud.google.com/appengine
254 stars 72 forks source link

The component [app-engine-go] not being installed #332

Closed dantonio1401 closed 1 week ago

dantonio1401 commented 1 year ago

TL;DR

For whatever reason my pipeline is no longer deploying to app engine with the error The component [app-engine-go] is required for staging this application What's also strange is that it is actually running:

┌───────────────────────────────────────────────────┐
│        These components will be installed.        │
├──────────────────────────────┬─────────┬──────────┤
│             Name             │ Version │   Size   │
├──────────────────────────────┼─────────┼──────────┤
│ App Engine Go Extensions     │  1.9.75 │  4.5 MiB │
│ Cloud Datastore Emulator     │   2.3.1 │ 36.2 MiB │
│ gRPC Python library          │  1.20.0 │  2.1 MiB │
│ gcloud app Python Extensions │ 1.9.105 │  8.5 MiB │
└──────────────────────────────┴─────────┴──────────┘

For the latest full release notes, please visit:
  https://cloud.google.com/sdk/release_notes

╔════════════════════════════════════════════════════════════╗
╠═ Creating update staging area                             ═╣
╚════════════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════════════╗
╠═ Installing: App Engine Go Extensions                     ═╣
╚════════════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════════════╗
╠═ Installing: App Engine Go Extensions                     ═╣
╚════════════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════════════╗
╠═ Installing: Cloud Datastore Emulator                     ═╣
╚════════════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════════════╗
╠═ Installing: gRPC Python library                          ═╣
╚════════════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════════════╗
╠═ Installing: gRPC Python library                          ═╣
╚════════════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════════════╗
╠═ Installing: gcloud app Python Extensions                 ═╣
╚════════════════════════════════════════════════════════════╝
╔════════════════════════════════════════════════════════════╗
╠═ Creating backup and activating new installation          ═╣
╚════════════════════════════════════════════════════════════╝

which I thought would install the component but it is not. Has anyone else run into this issue? This happened seemingly over night

Expected behavior

No response

Observed behavior

No response

Action YAML

- name: App Engine Auth
        id: auth
        uses: google-github-actions/auth@v1
        with:
          credentials_json: ${{ secrets.gcp_credentials }}

      - name: App Engine Deployment
        id: deploy
        uses: google-github-actions/deploy-appengine@v1
        with:
          deliverables: go/src/github.com/myapp/app-dev.yaml go/src/github.com/myapp/cron.yaml
        env:
          GO111MODULE: off


### Log output

_No response_

### Additional information

_No response_
ZachBurm commented 1 year ago

+1

dantonio1401 commented 1 year ago

I ended up solving the issue but i was unrelated to this error.

I ran a gcloud deploy from my own machine instead of the pipeline and this gave me more insight as to why it was failing. In my case it was due to some internal error that prevented the service from starting.

So my suggestion for anyone else running into this issue to to potentially run it locally

Hope this helps someone

ZachBurm commented 1 year ago

I found the same, it was a package error related to a replace in my mod file I had forgotten. Better error handling would be ideal.

Livingpool commented 5 months ago

I am still having the same issue. Running gcloud app deploy gives no errors, but can't get this to work.

sethvargo commented 2 months ago

Hi there - could you please make sure you're using the latest version of the GitHub Action and provide the debug output for the complete GitHub Actions workflow run?