I wasn't using docker containers but I was having this same issue deploying a Rails app and it ended up being because I had some large log files and database dumps in my logs/ and tmp/ directories. I fixed by adding this to the app.yml
skip_files: - tmp/ - log/ On Wednesday, June 22, 2016 at 7:08:20 PM UTC-5, Jason Kriesel wrote: > > With the new local build approach (docker-build local doesn't appear to be > an option for me), how do you deploy the docker file once it's built? > > > On Wednesday, April 6, 2016 at 4:00:01 PM UTC-5, joshuamo wrote: >> >> If you can set up docker locally, try using the flag `--docker-build >> local` as documented here[1]. That will at least provide a workaround. >> >> [1] https://cloud.google.com/sdk/gcloud/reference/preview/app/deploy >> >> On Wed, Apr 6, 2016 at 1:54 PM, pankaj kumar <[email protected]> wrote: >> >>> Thanks for your followup. Here is the error I receive when trying with >>> debug verbosity. >>> >>> DEBUG: Operation >>> [operations/build/datacabinet-backend/NjgyN2VkNGUtMThjOC00NGVhLWE3NDgtY2U2YWFhYmFhM2ViOlVT] >>> >>> not complete. Waiting 1s. >>> DEBUG: Reading GCS logfile: 206 (read 461 bytes) >>> gcc -std=gnu99 -DSTANDALONE_RSERVE -DRSERV_DEBUG -DNODAEMON -I. >>> -Iinclude -I/Rbins/lib/R/include -DNDEBUG -DRSERVE_PKG -I. -Iinclude >>> -pthread -I/usr/local/include -fpic -g -O2 -DRSERVE_PKG -I. -Iinclude >>> -pthread -o Rserve.dbg standalone.c md5.c session.c qap_decode.c >>> qap_encode.c sha1.c base64.c websockets.c RSserver.c tls.c http.c oc.c >>> rsio.c ulog.c ioc.c utils.c -lssl -lcrypto -ldl -lcrypt >>> -L/Rbins/lib/R/lib -lR -lssl -lcrypto -ldl -lcrypt >>> DEBUG: Operation >>> [operations/build/datacabinet-backend/NjgyN2VkNGUtMThjOC00NGVhLWE3NDgtY2U2YWFhYmFhM2ViOlVT] >>> >>> complete. Result: { >>> "metadata": { >>> "@type": " >>> type.googleapis.com/google.devtools.cloudbuild.v1.BuildOperationMetadata >>> ", >>> "build": { >>> "finishTime": "2016-04-06T20:50:37.382268Z", >>> "status": "TIMEOUT", >>> "timeout": "600.000s", >>> "projectId": "datacabinet-backend", >>> "id": "6827ed4e-18c8-44ea-a748-ce6aaabaa3eb", >>> "source": { >>> "storageSource": { >>> "object": >>> "datacabinet-backend.default.20160406t204017", >>> "bucket": "staging.datacabinet-backend.appspot.com" >>> } >>> }, >>> "steps": [ >>> { >>> "args": [ >>> " >>> appengine.gcr.io/gcloud/datacabinet-backend.default.20160406t204017" >>> ], >>> "name": "gcr.io/cloud-builders/dockerizer" >>> } >>> ], >>> "startTime": "2016-04-06T20:40:37.120120Z", >>> "logsBucket": "staging.datacabinet-backend.appspot.com", >>> "images": [ >>> " >>> appengine.gcr.io/gcloud/datacabinet-backend.default.20160406t204017" >>> ], >>> "createTime": "2016-04-06T20:40:36.449834Z" >>> } >>> }, >>> "done": true, >>> "name": >>> "operations/build/datacabinet-backend/NjgyN2VkNGUtMThjOC00NGVhLWE3NDgtY2U2YWFhYmFhM2ViOlVT", >>> >>> "error": { >>> "message": "DEADLINE_EXCEEDED", >>> "code": 4 >>> } >>> } >>> DEBUG: (gcloud.preview.app.deploy) Error Response: [4] DEADLINE_EXCEEDED >>> Traceback (most recent call last): >>> File "/root/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line >>> 654, in Execute >>> result = args.cmd_func(cli=self, args=args) >>> File "/root/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", >>> line 1390, in Run >>> resources = command_instance.Run(args) >>> File "/root/google-cloud-sdk/lib/surface/preview/app/deploy.py", line >>> 510, in Run >>> config_cleanup) >>> File >>> "/root/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/deploy_command_util.py", >>> >>> line 197, in BuildAndPushDockerImages >>> storage_client, http) >>> File >>> "/root/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/deploy_command_util.py", >>> >>> line 247, in _BuildImagesWithCloudBuild >>> image.repo_tag, cloudbuild_client, http) >>> File >>> "/root/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/cloud_build.py", >>> line 175, in ExecuteCloudBuild >>> retry_callback=log_tailer.Poll) >>> File >>> "/root/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/api/operations.py", >>> line 69, in WaitForOperation >>> encoding.MessageToPyValue(completed_operation.error))) >>> OperationError: Error Response: [4] DEADLINE_EXCEEDED >>> ERROR: (gcloud.preview.app.deploy) Error Response: [4] DEADLINE_EXCEEDED >>> >>> >>> On Wednesday, April 6, 2016 at 4:54:12 PM UTC+1, Nicholas (Google Cloud >>> Support) wrote: >>>> >>>> DEADLINE_EXCEEDED normally takes place when some part of the deploy >>>> process times out. It's not entirely clear from the console output why >>>> this >>>> is timing out. From the output above, the following seems to be happening: >>>> >>>> - Executing a npm deploy script >>>> - Script executes gcloud config set project datacabinet-backend && >>>> gcloud preview app deploy app.yaml and fails >>>> - gcloud preview app deploy times out returning DEADLINE_EXCEEDED >>>> error >>>> - npm catches the exception and returns >>>> >>>> If this is not the case, please clarify what your actual build/deploy >>>> steps are. If this is the case, I would suggest the --verbosity debug >>>> <https://cloud.google.com/sdk/gcloud/reference/#--verbosity> flag with >>>> the gcloud preview app deploy command for more informative gcloud >>>> output and separating the two gcloud commands: >>>> > gcloud config set project datacabinet-backend >>>> > gcloud preview app deploy app.yaml --verbosity debug >>>> >>>> This may provide a better idea of where in the deploy process this >>>> timeout occurs. Please note that very often, timeout errors are best >>>> addressed with retries. >>>> >>>> On Wednesday, April 6, 2016 at 12:01:46 AM UTC-4, pankaj kumar wrote: >>>>> >>>>> We have a custom runtime docker container that I deploy on google app >>>>> engine. While running the command "gcloud preview app deploy app.yaml", I >>>>> often get the following error but sometimes it goes through. I am not >>>>> sure >>>>> what deadline gets exceeded. >>>>> Where should I look to find the deadline that I am exceeding? >>>>> >>>>> Thanks >>>>> >>>>> ERROR: (gcloud.preview.app.deploy) Error Response: [4] >>>>> DEADLINE_EXCEEDED >>>>> >>>>> npm ERR! Linux 3.19.0-51-generic >>>>> npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "run" "deploy" >>>>> npm ERR! node v4.2.3 >>>>> npm ERR! npm v3.8.5 >>>>> npm ERR! code ELIFECYCLE >>>>> npm ERR! [email protected] deploy: ` gcloud config set project >>>>> datacabinet-backend && gcloud preview app deploy app.yaml` >>>>> npm ERR! Exit status 1 >>>>> npm ERR! >>>>> npm ERR! Failed at the [email protected] deploy script ' gcloud config >>>>> set project datacabinet-backend && gcloud preview app deploy app.yaml'. >>>>> npm ERR! Make sure you have the latest version of node.js and npm >>>>> installed. >>>>> npm ERR! If you do, this is most likely a problem with the DataCabinet >>>>> package, >>>>> npm ERR! not with npm itself. >>>>> npm ERR! Tell the author that this fails on your system: >>>>> npm ERR! gcloud config set project datacabinet-backend && gcloud >>>>> preview app deploy app.yaml >>>>> npm ERR! You can get information on how to open an issue for this >>>>> project with: >>>>> npm ERR! npm bugs DataCabinet >>>>> npm ERR! Or if that isn't available, you can get their info via: >>>>> npm ERR! npm owner ls DataCabinet >>>>> npm ERR! There is likely additional logging output above. >>>>> >>>>> npm ERR! Please include the following file with any support request: >>>>> npm ERR! /datacabinet-backend/npm-debug.log >>>>> >>>>> -- >>> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at https://groups.google.com/group/google-appengine. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/google-appengine/1baf8f99-c445-4348-ab62-faf1be339f75%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/google-appengine/1baf8f99-c445-4348-ab62-faf1be339f75%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> >> -- >> >> Josh Moore | Cloud Solutions Engineer | [email protected] | >> > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/37947937-3944-4759-bbd7-7102790cbf21%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
