question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred.

See original GitHub issue

New project and it’s not deploying.

Do you want to continue (Y/n)?  y

Beginning deployment of service [default]...
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 0 files to Google Cloud Storage                ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
Updating service [default]...failed.
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred.

From searching I’ve tried gcloud config set app/use_deprecated_preparation True which does nothing

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rickbeachamcommented, Oct 5, 2018

It would be great if gcloud deploy could tell us what might be the reason for not being able to deploy.
Three main reasons: Account Permissions, gcloud components, or invalid file types(.DS_Store or Mac Icons).

1reaction
Mark-McCrackencommented, Aug 2, 2018

Hi, I’ve managed to resolve my issue thanks to your comment about Cloud Build API. I do have a billing account. I was using a service account, which previously had the following permissions:

App Engine Admin
App Engine Viewer
App Engine Code Viewer
App Engine Deployer
App Engine Service Admin
Storage Admin
Storage Object Creator
Storage Object Viewer

Using the cloud console in the IAM section I added some more permissions for container builder so that it now has the following:

App Engine Admin
App Engine Viewer
App Engine Code Viewer
App Engine Deployer
App Engine Service Admin
Cloud Build Service Account
Cloud Build Editor
Cloud Build Viewer
Storage Admin
Storage Object Creator
Storage Object Viewer

Ideally, I think instead of an internal error message, it’d be great if the gcloud output mentioned that it was a permissions error, as I managed to fix this in about 2 minutes once I started searching for Cloud Build API. I think this is more to do with the app engine deployment API response, rather than the gcloud command line tool, but something needs fixed somewhere for sure.

Thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

(gcloud.app.deploy) Error Response: [13] An internal ... - GitHub
ERROR : (gcloud.app.deploy) Error Response: [13] An internal error occurred during deployment. My local Google cloud SDK is using the latest:.
Read more >
(gcloud.app.deploy) Error Response: [13] Unexpected Error
Under App Engine > Services I only see default but when I click on that link (opens a new tab), I see "Error:...
Read more >
(gcloud.app.deploy) Error Response: [13] An ... - Google Groups
It appears that you may be experiencing the same "code=13" issue as this Google Groups thread or this Public Issue Tracker case. A...
Read more >
(gcloud.app.deploy) Error Response: [13] An internal error ...
I created an App Engine and a Cloud SQL for MYSQL, it is in a different project. Let's call App Engine as web1...
Read more >
[13] An internal error occurred" while running `gcloud app ...
I'm trying to deploy the appengine/flexible/hello_world in a new GCP project. I cd to this directory, run gcloud app deploy and eventually ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found