I am new to Google Cloud, and I am trying to complete its first deployment. My first deployment is a Ruby on Rails project.
I mainly follow this guide in the Google Cloud documentation . The only difference is that I use my own project instead of the "hello world" project that they provide.
This is my app.yaml file
runtime: custom vm: true entrypoint: bundle exec rackup -p 8080 -E production config.ru resources: cpu: 0.5 memory_gb: 1.3 disk_size_gb: 10
When I go to the project directory and run the gcloud preview app deploy , it launches the deployment, but eventually there is a timeout. It gives an error (gcloud.preview.app.deploy) Error Response: [4] DEADLINE_EXCEEDED .
Doing some research that I found working with gcloud preview app deploy with --verbosity debug provides additional debugging information, but it doesnβt help me find what causes its timeout.
Here is the last piece of console log.
Bundle complete! 35 Gemfile dependencies, 102 gems now installed. Bundled gems are installed into ./vendor/bundle. Post-install message from rdoc: Depending on your version of ruby, you may need to install ruby rdoc/ri data: <= 1.8.6 : unsupported = 1.8.7 : gem install rdoc-data; rdoc-data --install = 1.9.1 : gem install rdoc-data; rdoc-data --install >= 1.9.2 : nothing to do! Yay! Post-install message from compass: Compass is charityware. If you love it, please donate on our behalf at http://umdf.org/compass Thanks! DEBUG: Operation [operations/build/guidir-1286/MmFkZjNmOGYtZDhhZi00NTJmLTk0YWEtMmQzMjBmM2JkOTg2OlVT] complete. Result: { "metadata": { "@type": "type.googleapis.com/google.devtools.cloudbuild.v1.BuildOperationMetadata", "build": { "finishTime": "2016-04-20T01:55:44.961635Z", "status": "TIMEOUT", "timeout": "600.000s", "projectId": "guidir-1286", "id": "2adf3f8f-d8af-452f-94aa-2d320f3bd986", "source": { "storageSource": { "object": "us.gcr.io/guidir-1286/appengine/default.20160420t110030:latest", "bucket": "staging.guidir-1286.appspot.com" } }, "steps": [ { "args": [ "us.gcr.io/guidir-1286/appengine/default.20160420t110030:latest" ], "name": "gcr.io/cloud-builders/dockerizer" } ], "startTime": "2016-04-20T01:45:43.216420Z", "logsBucket": "staging.guidir-1286.appspot.com", "images": [ "us.gcr.io/guidir-1286/appengine/default.20160420t110030:latest" ], "createTime": "2016-04-20T01:45:41.861657Z" } }, "done": true, "name": "operations/build/guidir-1286/MmFkZjNmOGYtZDhhZi00NTJmLTk0YWEtMmQzMjBmM2JkOTg2OlVT", "error": { "message": "DEADLINE_EXCEEDED", "code": 4 } } DEBUG: (gcloud.preview.app.deploy) Error Response: [4] DEADLINE_EXCEEDED Traceback (most recent call last): File "/Users/Robert/google-cloud-sdk/lib/googlecloudsdk/calliope/cli.py", line 654, in Execute result = args.cmd_func(cli=self, args=args) File "/Users/Robert/google-cloud-sdk/lib/googlecloudsdk/calliope/backend.py", line 1401, in Run resources = command_instance.Run(args) File "/Users/Robert/google-cloud-sdk/lib/surface/preview/app/deploy.py", line 507, in Run config_cleanup) File "/Users/Robert/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/deploy_command_util.py", line 195, in BuildAndPushDockerImages storage_client) File "/Users/Robert/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/deploy_command_util.py", line 245, in _BuildImagesWithCloudBuild image.tag, cloudbuild_client) File "/Users/Robert/google-cloud-sdk/lib/googlecloudsdk/api_lib/app/cloud_build.py", line 181, in ExecuteCloudBuild retry_callback=log_tailer.Poll) File "/Users/Robert/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
This is the farthest path, but sometimes its middle path through the installation of gems before it runs out of time, and in other cases it does not even get to the installation of gems.
How can i stop this?