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

2,822 views
Skip to first unread message

Gaurav Bansal

unread,
Mar 8, 2021, 11:22:56 AM3/8/21
to Google App Engine
Hello Guys,

We are getting an error while run "gcloud app deploy" command on google cloud shell.

Actually we are implementing virus scanning bucket where we created 3 bucket one in unscanned bucket second is scanned bucket and last one is quarantine bucket. And then following this URL:- https://cloud.google.com/solutions/automating-malware-scanning-for-documents-uploaded-to-cloud-storage?hl=en#gcp-console

Getting error:-

Updating service [default] (this may take several minutes)...failed.
DEBUG: (gcloud.app.deploy) Error Response: [13] An internal error occurred.
Traceback (most recent call last):
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 982, in Execute
    resources = calliope_command.Run(cli=self, args=args)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 809, in Run
    resources = command_instance.Run(args)
  File "/usr/lib/google-cloud-sdk/lib/surface/app/deploy.py", line 121, in Run
    default_strategy=flex_image_build_option_default))
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 678, in RunDeploy
    ignore_file=args.ignore_file)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/command_lib/app/deploy_util.py", line 455, in Deploy
    extra_config_settings)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/appengine_api_client.py", line 208, in DeployService
    poller=done_poller)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py", line 314, in WaitForOperation
    sleep_ms=retry_interval)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", line 264, in WaitFor
    sleep_ms, _StatusUpdate)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", line 326, in PollUntilDone
    sleep_ms=sleep_ms)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/core/util/retry.py", line 229, in RetryOnResult
    if not should_retry(result, state):
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/util/waiter.py", line 320, in _IsNotDone
    return not poller.IsDone(operation)
  File "/usr/lib/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/operations_util.py", line 183, in IsDone
    encoding.MessageToPyValue(operation.error)))
googlecloudsdk.api_lib.app.operations_util.OperationError: Error Response: [13] An internal error occurred.
ERROR: (gcloud.app.deploy) Error Response: [13] An internal error occurred.


Thanks,
Gaurav


gonzalezwalter

unread,
Mar 8, 2021, 5:06:14 PM3/8/21
to Google App Engine

Have you made any changes to the app.yaml used it the documentation as running it on my side successfully deploys. Can you check if your app engine default service account is enabled and has the correct permissions.  

Gaurav Bansal

unread,
Mar 9, 2021, 12:05:43 AM3/9/21
to Google App Engine
Hi, 

Thanks for update. 

In the app.yaml file i have made change only replaced the bucket name,  also replace service name malware scanner to default. I tried to multiple times to deploy app but it's getting same error. 

I have also tried to different account with follow same documentation  it was deploy successfully. 

Can you help with support i can show you which error is getting.

Elliott (Cloud Platform Support)

unread,
Mar 9, 2021, 12:04:30 PM3/9/21
to Google App Engine
Hello Gaurav,

I understand that you are getting an Error 13 when you are deploying an application but changing accounts resolved the issue.

From the information provided in the description, it is not enough to troubleshoot the issue. I would need more information. To move this case forward, I have deployed successfully the instructions of that tutorial. To understand better, how did you configure the new account? What is different from the one that does not work?

The gcloud command has a feature to capture debug information for error messages.

Also, there are improvements and patches with every new release. Would you consider updating your Cloud SDK and run the debug command? 

“gcloud components update”

I will need REDACTED output of the gcloud command you are using for the deploy that fails with the "--verbosity" flag set to DEBUG and the output of the "gcloud info --anonymize" command for further investigation.

--verbosity=debug is the option you need to add.

 "gcloud app deploy --verbosity=debug"

I will then look at the debug output of the latest version.

I will wait for your response.

Gaurav Bansal

unread,
Mar 10, 2021, 3:57:58 AM3/10/21
to google-a...@googlegroups.com, Abhishek Kumar Keshari, Priya Chouhan
Hello Sir,

Gcloud SDK version  330.0.0 is currently running on this account. 

Please confirm if component update command will be run so after update all existing services are running on this account it will run as previously running or may be changed. 

I have tried to deploy the Gcloud app engine on the current  SDK version  330.0.0 with debug. command. Please see the debug output for your reference.


Google Cloud SDK [330.0.0]
Platform: [Linux, x86_64] uname_result(system='Linux', node='cs-720912693712-default-default-sq2rr', release='5.4.89+', version='#1 SMP Wed Feb 24 19:44:28 PST 2021', machin
e='x86_64', processor='')
Locale: ('en_US', 'UTF-8')
Python Version: [3.7.3 (default, Jul 25 2020, 13:03:44)  [GCC 8.3.0]]
Python Location: [/usr/bin/python3]
Site Packages: [Disabled]
Installation Root: [${SDK_ROOT}]
Installed Components:
  bigtable: []
  cloud-datastore-emulator: [2.1.0]
  local-extract: [0.1.4]
  app-engine-python-extras: [1.9.91]
  kind: [0.7.0]
  alpha: [2021.02.26]
  bq: [2.0.65]
  gsutil: [4.59]
  pubsub-emulator: [0.4.0]
  cloud-build-local: [0.5.2]
  core: [2021.02.26]
  app-engine-go: [1.9.71]
  skaffold: [1.20.0]
  beta: [2021.02.26]
  kpt: [0.37.1]
  app-engine-java: [1.9.86]
  app-engine-python: [1.9.91]
  minikube: [1.17.1]
  datalab: [20190610]
  cbt: [0.9.0]
System PATH: [/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin]
Python PATH: [${SDK_ROOT}/lib/third_party:${SDK_ROOT}/lib:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload]
Cloud SDK on PATH: [False]
Kubectl on PATH: [/usr/bin/kubectl]
WARNING: There are other instances of the Google Cloud Platform tools on your system PATH.
  /usr/bin/cloud_sql_proxy
Installation Properties: [${SDK_ROOT}/properties]
User Config Directory: [${CLOUDSDK_CONFIG}]
Active Configuration Name: [default]
Active Configuration Path: [${CLOUDSDK_CONFIG}/configurations/config_default]
Account: [g..b@1..m]
Project: [j..1]
Current Properties:
  [component_manager]
    disable_update_check: [True]
  [compute]
    gce_metadata_read_timeout_sec: [30]
  [core]
    account: [g..b@1..m]
    disable_usage_reporting: [True]
    project: [j..1]
  [metrics]
    environment: [devshell]
Logs Directory: [${CLOUDSDK_CONFIG}/logs]
Last Log File: [${CLOUDSDK_CONFIG}/logs/2021.03.10/08.26.30.992639.log]
git: [git version 2.20.1]
ssh: [OpenSSH_7.9p1 Debian-10+deb10u2, OpenSSL 1.1.1j  16 Feb 2021]





Regards,
Gaurav Bansal
Mob. 9575067689


--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/b818fc74-31cc-47ca-a06c-a5d5f346b16cn%40googlegroups.com.

barrado

unread,
Mar 10, 2021, 7:48:58 AM3/10/21
to Google App Engine
Have you tried to deploy any other App Engine service? For example the Python3 App Engine Standard quickstart. If you are able to do so, this would mean that the error is specific or the service you are trying to deploy. Otherwise I can be a general error such as service accounts missconfigured, permissions etc...
Reply all
Reply to author
Forward
0 new messages