GoogleCloudPlatform / google-cloud-visualstudio

Google Cloud Tools for Visual Studio
https://cloud.google.com/tools/visual-studio/docs/
Apache License 2.0
88 stars 51 forks source link

App Deployment failed while deploying Asp.net core app n App Engine flexible enviornment #1100

Closed Shanmt closed 4 years ago

Shanmt commented 4 years ago

Encountered following error while trying to deploy Asp.net core application in GCP app engine flexible environment. Targeting netcore 2.2 version now. I've tried deploying netcore with 3.0 version. Both failed. Receiving same error in both scenarios. Please help. Attaching the error log.

Beginning deployment of service [default]...
Building and pushing image for service [default]
Started cloud build [b9478e4c-1e01-447b-81d7-090c5194a900].
To see logs in the Cloud Console: https://console.cloud.google.com/gcr/builds/b9478e4c-1e01-447b-81d7-090c5194a900?project=849277635841
----------------------------- REMOTE BUILD OUTPUT ------------------------------
starting build "b9478e4c-1e01-447b-81d7-090c5194a900"

FETCHSOURCE
Fetching storage object: gs://staging.cosmoapis.appspot.com/asia.gcr.io/cosmoapis/appengine/default.20191222t131443:latest#1577000842536701
Copying gs://staging.cosmoapis.appspot.com/asia.gcr.io/cosmoapis/appengine/default.20191222t131443:latest#1577000842536701...
/ [0 files][    0.0 B/  5.8 MiB]                                                
/ [0 files][264.0 KiB/  5.8 MiB]                                                
-
- [0 files][  4.1 MiB/  5.8 MiB]                                                
\
\ [1 files][  5.8 MiB/  5.8 MiB]                                                

Operation completed over 1 objects/5.8 MiB.                                      
BUILD
Starting Step #0
Step #0: Pulling image: gcr.io/gcp-runtimes/aspnetcorebuild@sha256:345558080c4215f8d14ccc57b1ddc5d1a3363e3e81fe278c179379ec131563b9
Step #0: sha256:345558080c4215f8d14ccc57b1ddc5d1a3363e3e81fe278c179379ec131563b9: Pulling from gcp-runtimes/aspnetcorebuild
Step #0: 6f1169067288: Pulling fs layer
Step #0: f76f782e6432: Pulling fs layer
Step #0: a83b6d8b8290: Pulling fs layer
Step #0: 7bb59f3c128c: Pulling fs layer
Step #0: e7272522e829: Pulling fs layer
Step #0: 7bb59f3c128c: Waiting
Step #0: e7272522e829: Waiting
Step #0: a83b6d8b8290: Download complete
Step #0: 7bb59f3c128c: Download complete
Step #0: e7272522e829: Verifying Checksum
Step #0: e7272522e829: Download complete
Step #0: f76f782e6432: Verifying Checksum
Step #0: f76f782e6432: Download complete
Step #0: 6f1169067288: Verifying Checksum
Step #0: 6f1169067288: Download complete
Step #0: 6f1169067288: Pull complete
Step #0: f76f782e6432: Pull complete
Step #0: a83b6d8b8290: Pull complete
Step #0: 7bb59f3c128c: Pull complete
Step #0: e7272522e829: Pull complete
Step #0: Digest: sha256:345558080c4215f8d14ccc57b1ddc5d1a3363e3e81fe278c179379ec131563b9
Step #0: Status: Downloaded newer image for gcr.io/gcp-runtimes/aspnetcorebuild@sha256:345558080c4215f8d14ccc57b1ddc5d1a3363e3e81fe278c179379ec131563b9
Step #0: gcr.io/gcp-runtimes/aspnetcorebuild@sha256:345558080c4215f8d14ccc57b1ddc5d1a3363e3e81fe278c179379ec131563b9
Step #0: No .deps.json file found for the app
Finished Step #0
ERROR
ERROR: build step 0 "gcr.io/gcp-runtimes/aspnetcorebuild@sha256:345558080c4215f8d14ccc57b1ddc5d1a3363e3e81fe278c179379ec131563b9" failed: exit status 1
--------------------------------------------------------------------------------

ERROR: (gcloud.app.deploy) Cloud build failed. Check logs at https://console.cloud.google.com/gcr/builds/b9478e4c-1e01-447b-81d7-090c5194a900?project=849277635841 Failure status: UNKNOWN: Error Response: [2] Build failed; check build logs for details
Project CosmoApiSystem deployed to App Engine Flex.