gcloud app deploy - cannot deploy to new project
See original GitHub issuei have created a new project, and am attempting to deploy the hello world node app. i get this error:
Updating service [default] (this may take several minutes)...failed.
DEBUG: (gcloud.app.deploy) Error Response: [13] An internal error occurred during deployment. You may need to delete this version manually.
Traceback (most recent call last):
File "/Applications/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 984, in Execute
resources = calliope_command.Run(cli=self, args=args)
File "/Applications/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 798, in Run
resources = command_instance.Run(args)
File "/Applications/google-cloud-sdk/lib/surface/app/deploy.py", line 110, in Run
default_strategy=flex_image_build_option_default))
File "/Applications/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 642, in RunDeploy
ignore_file=args.ignore_file)
File "/Applications/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 432, in Deploy
extra_config_settings)
File "/Applications/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py", line 208, in DeployService
poller=done_poller)
File "/Applications/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py", line 314, in WaitForOperation
sleep_ms=retry_interval)
File "/Applications/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", line 264, in WaitFor
sleep_ms, _StatusUpdate)
File "/Applications/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", line 326, in PollUntilDone
sleep_ms=sleep_ms)
File "/Applications/google-cloud-sdk/lib/googlecloudsdk/core/util/retry.py", line 229, in RetryOnResult
if not should_retry(result, state):
File "/Applications/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", line 320, in _IsNotDone
return not poller.IsDone(operation)
File "/Applications/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py", line 183, in IsDone
encoding.MessageToPyValue(operation.error)))
OperationError: Error Response: [13] An internal error occurred during deployment. You may need to delete this version manually.
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred during deployment. You may need to delete this version manually.
this is a new project within an existing account. i’ve noted several issues online referencing this in the past, but i cannot resolve by restarting Build Api, and I cannot clean out old versions of my app since there are none. i believe those are the only workarounds that i had found.
note - i had first attempted to deploy a more complex app than hello world, then simplified.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Testing and deploying your application - Google Cloud
If your deployment fails, make sure the Cloud Build API is enabled in your project. App Engine enables this API automatically the first...
Read more >GAE cannot Deploy to App Engine - java - Stack Overflow
To create an App Engine application in this project, run "gcloud beta app create" in your console. I am running the free version...
Read more >gcloud beta app deploy : This deployment has too many files
You cannot deploy an app with more than 10,000 files. The deployment is supposed to contain mainly code and configuration files. You probably...
Read more >How to deploy and publish applications to Google App Engine
Google #AppEngine is a #serverless #PaaS (platform as a service) service that is offered by #Google on Google Cloud Platform.
Read more >Google app engine deploy error - path too long [35906575]
Issue running command [gcloud preview app deploy]. What steps will reproduce the problem? deploying project 2-structured-data (Getting started with Node.js):
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have very a similar issue, I have created a new GCP project ‘project-b’ and I’d like to deploy an app on flex engine using an image from another GCP project ‘project-a’. When I try to do that I get same error message as @stlbucket :
ERROR: (gcloud.app.deploy) Error Response: [7] The App Engine appspot and App Engine flexible environment service accounts must have permissions on the image [gcr.io/...].
I have added both App Engine and App Engine Flexible service accounts from ‘project-b’ to ‘project-a’ and gave them Compute Image User role but it didn’t help, I still see same error message…
@miszczu Lifesaver! I had the same issue and I fixed by giving “Storage Object Viewer” to the App Engine Standard & Flex service accounts of project-b in project-a.