Error deploying to Google App Engine

by Tony Bagalini   Last Updated July 13, 2019 01:26 AM

This is the error I get in the logs when deploying a RUBY app.

ERROR

Finished Step #1 Step #1: The command '/bin/sh -c bundle install --deployment --without="development test" && rbenv rehash' returned a non-zero code: 18



Answers 1


Going off of the little info you provided and a similar issue I encountered, I'm thinking you were deploying a Rails app in a flex environment. Check out how it decides which Ruby version to use: https://cloud.google.com/appengine/docs/flexible/ruby/runtime. It may help to create a .ruby-version file in your app's root directory as specified. In my case, I specified the wrong version in my .ruby-version file: it didn't match up with the version in my Gemfile, so it gave me this error message:

Step #1: Step 14/17 : RUN bundle install --deployment --without="development test" && rbenv rehash
Step #1:  ---> Running in <some random hash>
Step #1: Your Ruby version is 2.4.1, but your Gemfile specified 2.5.5
Step #1: The command '/bin/sh -c bundle install --deployment --without="development test" && rbenv rehash' returned a non-zero code: 18
Andrew P
Andrew P
July 13, 2019 01:23 AM

Related Questions



Getting ZONE_RESOURCE_POOL_EXHAUSTED

Updated November 10, 2018 17:26 PM

How to avoid datastore_v3.Next calls

Updated March 29, 2018 05:26 AM