GoogleCloudPlatform / appengine-ruby

Optional integration library for the Ruby runtime for Google App Engine
Apache License 2.0
53 stars 21 forks source link

GCloud failed with result code 126 when running migrations #23

Open udfalkso opened 5 years ago

udfalkso commented 5 years ago
(appengine)[udi:soundprint/web]$ bundle exec rake appengine:exec -- bundle exec rake db:migrate
sh: /Users/udi/Downloads/google-cloud-sdk: is a directory
rake aborted!
AppEngine::Util::Gcloud::GcloudFailed: GCloud failed with result code 126
/Users/udi/.rbenv/versions/2.5.3/bin/bundle:23:in `load'
/Users/udi/.rbenv/versions/2.5.3/bin/bundle:23:in `<main>'
Tasks: TOP => appengine:exec
(See full trace by running task with --trace)

gcloud is in my path as far as I can tell. All other commands work, like gcloud config get-value project

(appengine)[udi:soundprint/web]$ which gcloud
/Users/udi/Downloads/google-cloud-sdk 2/bin/gcloud

What might I be doing wrong? Thanks!

Mesnet commented 5 years ago

@udfalkso, did you find a solution ?

udfalkso commented 5 years ago

Sorry no. Back to heroku...

dazuma commented 5 years ago

I suspect this is happening because you have a space in your path to gcloud (directory /Users/udi/Downloads/google-cloud-sdk 2/). Rename that directory (and adjust your $PATH as necessary).