Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to provide value for app_yaml_path in app_engine_flexible_app_version #7770

Closed
playersons opened this issue Nov 10, 2020 · 17 comments
Closed
Assignees
Labels

Comments

@playersons
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

0.13.5

Affected Resource(s)

  • app_engine_flexible_app_version

Terraform Configuration Files

resource "google_app_engine_flexible_app_version" "hello_world" {
  version_id = "v1"
  project    = "my-project"
  service    = "default"
  runtime    = "python"

  entrypoint {
    shell = "python main.py"
  }

  deployment {
    zip {
      source_url = "https://storage.googleapis.com/my-project-id.appspot.com/hello-world.zip"
    }
    cloud_build_options {
      app_yaml_path = "./hello-world/app.yaml"
    }
  }
...
}

Debug Output

Terraform logs are not available with this error message, but there is a reference to Google Cloud Build logs where following output is shown:

Starting Step #1
Step #1: Pulling image: gcr.io/gcp-runtimes/python/gen-dockerfile@sha256:ac444fc620f70ff80c19cde48d18242dbed63056e434f0039bf939433e7464aa
Step #1: sha256:ac444fc620f70ff80c19cde48d18242dbed63056e434f0039bf939433e7464aa: Pulling from gcp-runtimes/python/gen-dockerfile
Step #1: Digest: sha256:ac444fc620f70ff80c19cde48d18242dbed63056e434f0039bf939433e7464aa
Step #1: Status: Downloaded newer image for gcr.io/gcp-runtimes/python/gen-dockerfile@sha256:ac444fc620f70ff80c19cde48d18242dbed63056e434f0039bf939433e7464aa
Step #1: gcr.io/gcp-runtimes/python/gen-dockerfile@sha256:ac444fc620f70ff80c19cde48d18242dbed63056e434f0039bf939433e7464aa
Step #1: Traceback (most recent call last):
Step #1:   File "/builder/gen_dockerfile.py", line 277, in <module>
Step #1:     main()
Step #1:   File "/builder/gen_dockerfile.py", line 273, in main
Step #1:     generate_dockerfile_command(args.base_image, args.config, args.source_dir)
Step #1:   File "/builder/gen_dockerfile.py", line 220, in generate_dockerfile_command
Step #1:     with io.open(config_file, 'r', encoding='utf8') as yaml_config_file:
Step #1: FileNotFoundError: [Errno 2] No such file or directory: './hello-world/app.yaml'
Finished Step #1
ERROR
ERROR: build step 1 "gcr.io/gcp-runtimes/python/gen-dockerfile@sha256:ac444fc620f70ff80c19cde48d18242dbed63056e434f0039bf939433e7464aa" failed: step exited with non-zero status: 1

Expected Behavior

The Google App Engine app should have been deployed with instance configuration from the app.yaml.

Actual Behavior

The error message above indicates that the app.yaml file could not be found. This error persists, regardless of any value that is being provided as the path attribute within the deployment argument block. Unfortunately, the Terraform documentation is not being clear about the expected format, location, etc - and neither is the Google documentation (e.g. https://cloud.google.com/appengine/docs/flexible/python)

  • "./app.yaml"
  • "./hello-world/app.yaml"
  • "gs://app-engine-bucket/hello-world/app.yaml"
  • "gs://app-engine-bucket/app.yaml"

Steps to Reproduce

  1. terraform apply
@ghost ghost added the bug label Nov 10, 2020
@playersons playersons changed the title unable to provide value for _app_yaml_path_ in _app_engine_flexible_app_version_ unable to provide value for app_yaml_path in app_engine_flexible_app_version Nov 10, 2020
@edwardmedia edwardmedia self-assigned this Nov 10, 2020
@edwardmedia
Copy link
Contributor

@playersons below is the official doc you may reference. Is the file app.yam available in the https://storage.googleapis.com/my-project-id.appspot.com/hello-world.zip? If not, can you try by adding it into the zip?

https://cloud.google.com/appengine/docs/admin-api/reference/rest/v1/apps.services.versions#cloudbuildoptions

@playersons
Copy link
Author

@edwardmedia thanks for your reply, the app.yaml is in the .zip archive.

@ghost ghost removed waiting-response labels Nov 10, 2020
@edwardmedia
Copy link
Contributor

edwardmedia commented Nov 10, 2020

@playersons did you try something like below if it is at the root of zip file?

    cloud_build_options {
      app_yaml_path = "app.yaml"
    }

@playersons
Copy link
Author

thank you, @edwardmedia appreciate your support. my tf code looks like this here

deployment {
    zip {
      source_url = "https://storage.googleapis.com/my-project-id.appspot.com/hello-world.zip"
    }
    cloud_build_options {
      app_yaml_path = "app.yaml"
    }
  }

@edwardmedia
Copy link
Contributor

edwardmedia commented Nov 10, 2020

@playersons can you share the file structure of your hello-world.zip? Did you have app.yaml at root? You may also reference the docs about how to config Cloud Build

@playersons
Copy link
Author

this is the content of my hello-world.zip

.
├── __pycache__
├── app.yaml
├── main.py
├── main_test.py
├── requirements-test.txt
└── requirements.txt

@ghost ghost removed waiting-response labels Nov 11, 2020
@edwardmedia
Copy link
Contributor

@playersons what error do you get? Can you post the full TF debug log (you mentioned the log not available, can you explain why?)

@playersons
Copy link
Author

playersons commented Nov 11, 2020

@edwardmedia I was trying to say that TF does not provide very much information in its debug log but does refer to the Cloud Build log instead. This is what TF provides:

google_app_engine_flexible_app_version.hello_world: Creating...
2020/11/11 17:45:38 [DEBUG] EvalApply: ProviderMeta config value set
2020/11/11 17:45:38 [DEBUG] google_app_engine_flexible_app_version.hello_world: applying the planned Create change
2020-11-11T17:45:38.991+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:38 [DEBUG] setting computed for "handlers" from ComputedKeys
2020-11-11T17:45:38.992+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:38 [DEBUG] Locking "apps/my-project-id"
2020-11-11T17:45:38.992+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:38 [DEBUG] Locked "apps/my-project-id"
2020-11-11T17:45:38.992+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:38 [DEBUG] Creating new FlexibleAppVersion: map[string]interface {}{"automaticScaling":map[string]interface {}{"coolDownPeriod":"120s", "cpuUtilization":map[string]interface {}{"targetUtilization":0.5}, "maxTotalInstances":20, "minTotalInstances":2}, "deployment":map[string]interface {}{"cloudBuildOptions":map[string]interface {}{"appYamlPath":"./app.yaml"}, "zip":map[string]interface {}{"sourceUrl":"https://storage.googleapis.com/my-project-id.appspot.com/hello-world.zip"}}, "entrypoint":map[string]interface {}{"shell":"python main.py"}, "env":"flex", "envVariables":map[string]string{"port":"8080"}, "id":"v1", "livenessCheck":map[string]interface {}{"checkInterval":"30s", "failureThreshold":4, "initialDelay":"300s", "path":"/", "successThreshold":2, "timeout":"4s"}, "network":map[string]interface {}{"name":"projects/my-shared-project/global/networks/shared-vpc-01", "subnetworkName":"my-project-id"}, "readinessCheck":map[string]interface {}{"appStartTimeout":"300s", "checkInterval":"5s", "failureThreshold":2, "path":"/", "successThreshold":2, "timeout":"4s"}, "runtime":"python", "servingStatus":"SERVING"}
2020-11-11T17:45:38.992+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:38 [DEBUG] Waiting for state to become: [success]
2020-11-11T17:45:38.992+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:38 [DEBUG] Retry Transport: starting RoundTrip retry loop
2020-11-11T17:45:38.992+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:38 [DEBUG] Retry Transport: request attempt 0
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:38 [DEBUG] Google API Request Details:
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: ---[ REQUEST ]---------------------------------------
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: POST /v1/apps/my-project-id/services/hello-world/versions?alt=json HTTP/1.1
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Host: appengine.googleapis.com
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: User-Agent: Terraform/0.13.5 (+https://www.terraform.io) Terraform-Plugin-SDK/2.1.0 terraform-provider-google/3.47.0
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Content-Length: 841
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Content-Type: application/json
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Accept-Encoding: gzip
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: {
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "automaticScaling": {
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "coolDownPeriod": "120s",
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "cpuUtilization": {
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:    "targetUtilization": 0.5
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   },
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "maxTotalInstances": 20,
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "minTotalInstances": 2
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  },
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "deployment": {
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "cloudBuildOptions": {
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:    "appYamlPath": "./app.yaml"
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   },
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "zip": {
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:    "sourceUrl": "https://storage.googleapis.com/my-project-id.appspot.com/hello-world.zip"
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   }
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  },
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "entrypoint": {
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "shell": "python main.py"
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  },
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "env": "flex",
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "envVariables": {
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "port": "8080"
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  },
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "id": "v1",
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "livenessCheck": {
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "checkInterval": "30s",
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "failureThreshold": 4,
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "initialDelay": "300s",
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "path": "/",
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "successThreshold": 2,
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "timeout": "4s"
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  },
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "network": {
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "name": "projects/my-shared-project/global/networks/shared-vpc-01",
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "subnetworkName": "my-project-id"
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  },
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "readinessCheck": {
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "appStartTimeout": "300s",
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "checkInterval": "5s",
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "failureThreshold": 2,
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "path": "/",
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "successThreshold": 2,
plugin.terraform-provider-google_v3.47.0_x5:   "timeout": "4s"
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  },
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "runtime": "python",
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "servingStatus": "SERVING"
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: }
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:38.993+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: -----------------------------------------------------
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [DEBUG] Google API Response Details:
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: ---[ RESPONSE ]--------------------------------------
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: HTTP/1.1 200 OK
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Connection: close
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Transfer-Encoding: chunked
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Alt-Svc: h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Cache-Control: private
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Content-Type: application/json; charset=UTF-8
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Date: Wed, 11 Nov 2020 16:45:41 GMT
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Server: ESF
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Vary: Origin
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Vary: X-Origin
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Vary: Referer
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Content-Type-Options: nosniff
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Frame-Options: SAMEORIGIN
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Xss-Protection: 0
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 1db
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: {
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "name": "apps/my-project-id/operations/9caa1124-2153-4e79-a414-da5c59f368b1",
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "metadata": {
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:     "@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1",
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:     "method": "google.appengine.v1.Versions.CreateVersion",
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:     "insertTime": "2020-11-11T16:45:41.139Z",
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:     "user": "[email protected]",
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:     "target": "apps/my-project-id/services/hello-world/versions/v1"
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   }
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: }
2020-11-11T17:45:40.688+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 0
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: -----------------------------------------------------
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [DEBUG] Retry Transport: Stopping retries, last request was successful
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [DEBUG] Retry Transport: Returning after 1 attempts
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [INFO] Instantiating App Engine client for path https://appengine.googleapis.com/
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [DEBUG] Waiting for state to become: [done: true]
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [DEBUG] Retry Transport: starting RoundTrip retry loop
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [DEBUG] Retry Transport: request attempt 0
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [DEBUG] Google API Request Details:
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: ---[ REQUEST ]---------------------------------------
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: GET /v1/apps/my-project-id/operations/9caa1124-2153-4e79-a414-da5c59f368b1?alt=json&prettyPrint=false HTTP/1.1
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Host: appengine.googleapis.com
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: User-Agent: google-api-go-client/0.5 Terraform/0.13.5 (+https://www.terraform.io) Terraform-Plugin-SDK/2.1.0 terraform-provider-google/3.47.0
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Goog-Api-Client: gl-go/1.14.5 gdcl/20201023
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Accept-Encoding: gzip
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:40.689+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: -----------------------------------------------------
2020-11-11T17:45:40.902+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [DEBUG] Google API Response Details:
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: ---[ RESPONSE ]--------------------------------------
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: HTTP/1.1 200 OK
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Connection: close
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Transfer-Encoding: chunked
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Alt-Svc: h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Cache-Control: private
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Content-Type: application/json; charset=UTF-8
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Date: Wed, 11 Nov 2020 16:45:41 GMT
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Server: ESF
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Vary: Origin
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Vary: X-Origin
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Vary: Referer
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Content-Type-Options: nosniff
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Frame-Options: SAMEORIGIN
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Xss-Protection: 0
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 1b0
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: {
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "name": "apps/my-project-id/operations/9caa1124-2153-4e79-a414-da5c59f368b1",
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "metadata": {
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1",
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "method": "google.appengine.v1.Versions.CreateVersion",
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "insertTime": "2020-11-11T16:45:41.139Z",
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "user": "[email protected]",
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "target": "apps/my-project-id/services/hello-world/versions/v1"
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  }
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: }
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 0
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: -----------------------------------------------------
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [DEBUG] Retry Transport: Stopping retries, last request was successful
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [DEBUG] Retry Transport: Returning after 1 attempts
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [DEBUG] Got done: false while polling for operation apps/my-project-id/operations/9caa1124-2153-4e79-a414-da5c59f368b1's status
2020-11-11T17:45:40.903+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:40 [TRACE] Waiting 10s before next try
google_app_engine_flexible_app_version.hello_world: Still creating... [10s elapsed]
2020-11-11T17:45:50.904+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:50 [DEBUG] Retry Transport: starting RoundTrip retry loop
2020-11-11T17:45:50.904+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:50 [DEBUG] Retry Transport: request attempt 0
2020-11-11T17:45:50.904+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:50 [DEBUG] Google API Request Details:
2020-11-11T17:45:50.904+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: ---[ REQUEST ]---------------------------------------
2020-11-11T17:45:50.904+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: GET /v1/apps/my-project-id/operations/9caa1124-2153-4e79-a414-da5c59f368b1?alt=json&prettyPrint=false HTTP/1.1
2020-11-11T17:45:50.904+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Host: appengine.googleapis.com
2020-11-11T17:45:50.904+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: User-Agent: google-api-go-client/0.5 Terraform/0.13.5 (+https://www.terraform.io) Terraform-Plugin-SDK/2.1.0 terraform-provider-google/3.47.0
2020-11-11T17:45:50.904+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Goog-Api-Client: gl-go/1.14.5 gdcl/20201023
2020-11-11T17:45:50.904+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Accept-Encoding: gzip
2020-11-11T17:45:50.904+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:50.904+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:50.904+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: -----------------------------------------------------
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:51 [DEBUG] Google API Response Details:
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: ---[ RESPONSE ]--------------------------------------
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: HTTP/1.1 200 OK
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Connection: close
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Transfer-Encoding: chunked
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Alt-Svc: h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Cache-Control: private
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Content-Type: application/json; charset=UTF-8
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Date: Wed, 11 Nov 2020 16:45:51 GMT
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Server: ESF
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Vary: Origin
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Vary: X-Origin
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Vary: Referer
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Content-Type-Options: nosniff
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Frame-Options: SAMEORIGIN
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Xss-Protection: 0
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 200
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: {
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "name": "apps/my-project-id/operations/9caa1124-2153-4e79-a414-da5c59f368b1",
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "metadata": {
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1",
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "method": "google.appengine.v1.Versions.CreateVersion",
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "insertTime": "2020-11-11T16:45:41.139Z",
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "user": "[email protected]",
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "target": "apps/my-project-id/services/hello-world/versions/v1",
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "createVersionMetadata": {
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:    "cloudBuildId": "4b26ccc6-de85-4f05-9185-cc9030f801b3"
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   }
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  }
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: }
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 0
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: -----------------------------------------------------
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:51 [DEBUG] Retry Transport: Stopping retries, last request was successful
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:51 [DEBUG] Retry Transport: Returning after 1 attempts
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:51 [DEBUG] Got done: false while polling for operation apps/my-project-id/operations/9caa1124-2153-4e79-a414-da5c59f368b1's status
2020-11-11T17:45:51.144+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:45:51 [TRACE] Waiting 10s before next try
google_app_engine_flexible_app_version.hello_world: Still creating... [20s elapsed]
2020-11-11T17:46:01.148+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:46:01 [DEBUG] Retry Transport: starting RoundTrip retry loop
2020-11-11T17:46:01.148+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:46:01 [DEBUG] Retry Transport: request attempt 0
2020-11-11T17:46:01.148+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:46:01 [DEBUG] Google API Request Details:
2020-11-11T17:46:01.148+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: ---[ REQUEST ]---------------------------------------
2020-11-11T17:46:01.149+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: GET /v1/apps/my-project-id/operations/9caa1124-2153-4e79-a414-da5c59f368b1?alt=json&prettyPrint=false HTTP/1.1
2020-11-11T17:46:01.149+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Host: appengine.googleapis.com
2020-11-11T17:46:01.149+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: User-Agent: google-api-go-client/0.5 Terraform/0.13.5 (+https://www.terraform.io) Terraform-Plugin-SDK/2.1.0 terraform-provider-google/3.47.0
2020-11-11T17:46:01.149+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Goog-Api-Client: gl-go/1.14.5 gdcl/20201023
2020-11-11T17:46:01.149+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Accept-Encoding: gzip
2020-11-11T17:46:01.149+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:46:01.149+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:46:01.149+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: -----------------------------------------------------
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:46:01 [DEBUG] Google API Response Details:
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: ---[ RESPONSE ]--------------------------------------
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: HTTP/1.1 200 OK
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Connection: close
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Transfer-Encoding: chunked
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Alt-Svc: h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Cache-Control: private
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Content-Type: application/json; charset=UTF-8
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Date: Wed, 11 Nov 2020 16:46:01 GMT
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Server: ESF
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Vary: Origin
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Vary: X-Origin
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: Vary: Referer
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Content-Type-Options: nosniff
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Frame-Options: SAMEORIGIN
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: X-Xss-Protection: 0
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 325
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: {
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "name": "apps/my-project-id/operations/9caa1124-2153-4e79-a414-da5c59f368b1",
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "metadata": {
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "@type": "type.googleapis.com/google.appengine.v1.OperationMetadataV1",
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "method": "google.appengine.v1.Versions.CreateVersion",
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "insertTime": "2020-11-11T16:45:41.139Z",
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "user": "[email protected]",
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "target": "apps/my-project-id/services/hello-world/versions/v1",
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "createVersionMetadata": {
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:    "cloudBuildId": "4b26ccc6-de85-4f05-9185-cc9030f801b3"
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   }
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  },
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "done": true,
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  "error": {
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "code": 9,
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:   "message": "Cloud build 4b26ccc6-de85-4f05-9185-cc9030f801b3 status: FAILURE\nBuild error details: Build error details not available.\nFull build logs: https://console.cloud.google.com/cloud-build/builds/4b26ccc6-de85-4f05-9185-cc9030f801b3?project=985056533285"
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5:  }
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: }
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 0
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: -----------------------------------------------------
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:46:01 [DEBUG] Retry Transport: Stopping retries, last request was successful
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:46:01 [DEBUG] Retry Transport: Returning after 1 attempts
2020-11-11T17:46:01.505+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:46:01 [DEBUG] Unlocking "apps/my-project-id"
2020-11-11T17:46:01.506+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:46:01 [DEBUG] Unlocked "apps/my-project-id"
2020-11-11T17:46:01.506+0100 [DEBUG] plugin.terraform-provider-google_v3.47.0_x5: 2020/11/11 17:46:01 [DEBUG] Unlocked "apps/my-project-id"
2020/11/11 17:46:01 [DEBUG] google_app_engine_flexible_app_version.hello_world: apply errored, but we're indicating that via the Error pointer rather than returning it: Error waiting to create FlexibleAppVersion: Error waiting for Creating FlexibleAppVersion: Error code 9, message: Cloud build 4b26ccc6-de85-4f05-9185-cc9030f801b3 status: FAILURE
Build error details: Build error details not available.
Full build logs: https://console.cloud.google.com/cloud-build/builds/4b26ccc6-de85-4f05-9185-cc9030f801b3?project=985056533285
2020/11/11 17:46:01 [ERROR] eval: *terraform.EvalApplyPost, err: Error waiting to create FlexibleAppVersion: Error waiting for Creating FlexibleAppVersion: Error code 9, message: Cloud build 4b26ccc6-de85-4f05-9185-cc9030f801b3 status: FAILURE
Build error details: Build error details not available.
Full build logs: https://console.cloud.google.com/cloud-build/builds/4b26ccc6-de85-4f05-9185-cc9030f801b3?project=985056533285
2020/11/11 17:46:01 [ERROR] eval: *terraform.EvalSequence, err: Error waiting to create FlexibleAppVersion: Error waiting for Creating FlexibleAppVersion: Error code 9, message: Cloud build 4b26ccc6-de85-4f05-9185-cc9030f801b3 status: FAILURE
Build error details: Build error details not available.
Full build logs: https://console.cloud.google.com/cloud-build/builds/4b26ccc6-de85-4f05-9185-cc9030f801b3?project=985056533285

Error: Error waiting to create FlexibleAppVersion: Error waiting for Creating FlexibleAppVersion: Error code 9, message: Cloud build 4b26ccc6-de85-4f05-9185-cc9030f801b3 status: FAILURE
Build error details: Build error details not available.
Full build logs: https://console.cloud.google.com/cloud-build/builds/4b26ccc6-de85-4f05-9185-cc9030f801b3?project=985056533285


2020-11-11T17:46:01.521+0100 [WARN]  plugin.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2020-11-11T17:46:01.524+0100 [DEBUG] plugin: plugin process exited: path=.terraform/plugins/registry.terraform.io/hashicorp/google/3.47.0/darwin_amd64/terraform-provider-google_v3.47.0_x5 pid=24698
2020-11-11T17:46:01.524+0100 [DEBUG] plugin: plugin exited

and this is what's there in Cloud Build:

starting build "4b26ccc6-de85-4f05-9185-cc9030f801b3"

FETCHSOURCE
BUILD
Starting Step #0 - "fetcher"
Step #0 - "fetcher": Already have image (with digest): gcr.io/cloud-builders/gcs-fetcher
Step #0 - "fetcher": WARNING: -type=Archive is deprecated; use -type=ZipArchive
Step #0 - "fetcher": Fetching archive gs://my-project-id.appspot.com/hello-world.zip.
Step #0 - "fetcher": ******************************************************
Step #0 - "fetcher": Status:                      SUCCESS
Step #0 - "fetcher": Started:                     2020-11-11T16:45:48Z
Step #0 - "fetcher": Completed:                   2020-11-11T16:45:49Z
Step #0 - "fetcher": Total files:            5
Step #0 - "fetcher": MiB downloaded:         0.00 MiB
Step #0 - "fetcher": MiB/s throughput:       0.01 MiB/s
Step #0 - "fetcher": Time for zipfile:       0.23 s
Step #0 - "fetcher": Time to unzip:          0.00 s
Step #0 - "fetcher": Total time:             0.24 s
Step #0 - "fetcher": ******************************************************
Finished Step #0 - "fetcher"
Starting Step #1
Step #1: Pulling image: gcr.io/gcp-runtimes/python/gen-dockerfile@sha256:ac444fc620f70ff80c19cde48d18242dbed63056e434f0039bf939433e7464aa
Step #1: sha256:ac444fc620f70ff80c19cde48d18242dbed63056e434f0039bf939433e7464aa: Pulling from gcp-runtimes/python/gen-dockerfile
Step #1: Digest: sha256:ac444fc620f70ff80c19cde48d18242dbed63056e434f0039bf939433e7464aa
Step #1: Status: Downloaded newer image for gcr.io/gcp-runtimes/python/gen-dockerfile@sha256:ac444fc620f70ff80c19cde48d18242dbed63056e434f0039bf939433e7464aa
Step #1: gcr.io/gcp-runtimes/python/gen-dockerfile@sha256:ac444fc620f70ff80c19cde48d18242dbed63056e434f0039bf939433e7464aa
Step #1: Traceback (most recent call last):
Step #1:   File "/builder/gen_dockerfile.py", line 277, in <module>
Step #1:     main()
Step #1:   File "/builder/gen_dockerfile.py", line 273, in main
Step #1:     generate_dockerfile_command(args.base_image, args.config, args.source_dir)
Step #1:   File "/builder/gen_dockerfile.py", line 220, in generate_dockerfile_command
Step #1:     with io.open(config_file, 'r', encoding='utf8') as yaml_config_file:
Step #1: FileNotFoundError: [Errno 2] No such file or directory: 'app.yaml'
Finished Step #1
ERROR
ERROR: build step 1 "gcr.io/gcp-runtimes/python/gen-dockerfile@sha256:ac444fc620f70ff80c19cde48d18242dbed63056e434f0039bf939433e7464aa" failed: step exited with non-zero status: 1

@ghost ghost removed the waiting-response label Nov 11, 2020
@edwardmedia
Copy link
Contributor

edwardmedia commented Nov 16, 2020

@playersons I am able to deploy a python app to app engine flexible. I have the app.yaml at the root and it is good for me without hitting your issue. I suspect the zip file structure. How did you create the zip file? Can you post the result by run vim hello-world.zip?

@edwardmedia
Copy link
Contributor

@playersons Is this still an issue? If yes, as I suggested, double check the zip file structure, or post the result by running vim command.

@playersons
Copy link
Author

the zip file structure is as follows:

" zip.vim version v28
" Select a file with cursor and press ENTER

hello_world/app.yaml
hello_world/main.py
hello_world/main_test.py
hello_world/requirements-test.txt
hello_world/requirements.txt

@ghost ghost removed waiting-response labels Nov 18, 2020
@edwardmedia
Copy link
Contributor

@playersons looks like there is a folder hello_world at the root, and app.yaml is in that folder (not at the root). You may try below command to create the zip file. Let me know if you see the difference

zip hello_world.zip app.yaml main.py...

@playersons
Copy link
Author

the app.yaml file is present at the root:

gsutil ls gs://my-service-bucket.appspot.com
gs://my-service-bucket.appspot.com/app.yaml
gs://my-service-bucket.appspot.com/hello-world.zip

@ghost ghost removed waiting-response labels Nov 19, 2020
@edwardmedia
Copy link
Contributor

edwardmedia commented Nov 19, 2020

@playersons there is just one file needed which is the gs://my-service-bucket.appspot.com/hello-world.zip. app.yaml is at the root of hello-world.zip file.If you don't want to recreate the zip file, you may also try removing ./ from the 2nd one of your original list

"./hello-world/app.yaml" ---> "hello-world/app.yaml"

@playersons
Copy link
Author

sorry for my misleading choice of words. The app.yaml file is at the root of hello-world.zip and also (just in case) at the root of the bucket itself.

@ghost ghost removed the waiting-response label Nov 19, 2020
@edwardmedia
Copy link
Contributor

@playersons Below structure indicates the app.yaml file is NOT at the root of the zip file. I tested my suggestion and it works for me. Please try what I have suggested. Closing this issue as it can't be reproduced.

" zip.vim version v28
" Select a file with cursor and press ENTER

hello_world/app.yaml
hello_world/main.py
hello_world/main_test.py
hello_world/requirements-test.txt
hello_world/requirements.txt

@ghost
Copy link

ghost commented Dec 20, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants