-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DB:pull 127 error #113
Comments
I am having the same issue, this is what logs say:
|
i m too. ruby: 2.6 database: postgress in another machine |
@sgruhier - I get the same error, is there any updates on when this is gonna be fixed? |
I'm also experiencing the same behavior. db:pull fails unless I force version 0.4. For me at least, this didn't start happening until I updated to Capistrano 3.8.1. Having said that, I'm not exactly a ruby on rails guru and that might have not a damn thing to do with anything... |
The fix above from @sauliusgrigaitis worked for me. Thank you! |
Can we merge this into master and create a new release? I verified that @sauliusgrigaitis fix works. |
By the way, if you want to use the fix before they merge it into a release, you can do the following:
|
I don't think the patch above works well, since it doesn't work in cases in which the db config can't easily been taken from database.yml (for instance, when database info is encrypted in secrets, etc). For me, I ran into this one when using rvm. Rvm wasn't loading with the 'rails' command, so it wasn't found. Strange how it wasn't reporting anything out, though. This fixed it for me:
|
There are 2 issues here.
This enables capistrano-db-tasks to run rails runner using the bins provided by RVM.
This case will fail for those who have a different setup (e.g. creds in secrets.yml) (as #113 (comment) points out) |
Postgres datebase.
When
gem 'capistrano-db-tasks', '0.6', require: false
cap production db:pull error
when
gem 'capistrano-db-tasks', '0.4', require: false
it`s work fine.
The text was updated successfully, but these errors were encountered: