appengine-ruby icon indicating copy to clipboard operation
appengine-ruby copied to clipboard

GCloud failed with result code 126 when running migrations

Open udfalkso opened this issue 6 years ago • 3 comments

(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!

udfalkso avatar Jan 25 '19 14:01 udfalkso

@udfalkso, did you find a solution ?

Mesnet avatar Feb 15 '19 13:02 Mesnet

Sorry no. Back to heroku...

udfalkso avatar Feb 15 '19 13:02 udfalkso

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).

dazuma avatar Jul 09 '19 00:07 dazuma