sgruhier / capistrano-db-tasks

Add capistrano tasks for syncing remote and local database
Other
376 stars 177 forks source link

A relative `deploy_to` isnt supported. Bug? #33

Open ktaragorn opened 10 years ago

ktaragorn commented 10 years ago

Hi, My deploy_to is at ~ on my machine and this isnt supported. I get the error talked about at http://stackoverflow.com/a/9669507/1520364 . I am not sure if this is a bug at your end or net-scp or sshkit.

The exact error i get is *** Net::SCP::Error Exception: SCP did not finish successfully (1): scp: ~/<app>/current/db/<db>_2014-05-24-150321.sql.bz2: No such file or directory

It works if i prepend the /home/<user>/ to it in debugger. Is this an option that needs to be supplied to net scp by u? or sshkit?

ktaragorn commented 10 years ago

The relevant stack

Net::SCP::Error: SCP did not finish successfully (1): scp: ~/sportmenow/current/db/sgsportsbar_2014-05-24-134216.sql.bz2: No such file or directory
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/net-scp-1.2.1/lib/net/scp.rb:365:in `block (3 levels) in start_command'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.9.1/lib/net/ssh/connection/channel.rb:591:in `call'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.9.1/lib/net/ssh/connection/channel.rb:591:in `do_close'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:586:in `channel_close'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:465:in `dispatch_incoming_packets'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:221:in `preprocess'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:205:in `process'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:169:in `block in loop'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:169:in `loop'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.9.1/lib/net/ssh/connection/session.rb:169:in `loop'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/net-ssh-2.9.1/lib/net/ssh/connection/channel.rb:269:in `wait'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/net-scp-1.2.1/lib/net/scp.rb:321:in `download!'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/sshkit-1.4.0/lib/sshkit/backends/netssh.rb:86:in `download!'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/capistrano-db-tasks-0.3/lib/capistrano-db-tasks/database.rb:75:in `download'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/capistrano-db-tasks-0.3/lib/capistrano-db-tasks/database.rb:134:in `remote_to_local'
/home/karthikt/.rvm/gems/ruby-2.1.1/gems/capistrano-db-tasks-0.3/lib/capistrano-db-tasks/dbtasks.rb:29:in `block (4 levels) in <top (required)>'