I'm trying to download a file via the get command, and it is failing
with the following (anonymized) error:

*** download via sftp failed on www.mydomain.tld: open /path/to/backup/
file
*** : no such file (2) (open /path/to/backup/file
*** : no such file (2))

Here's my task:

task :import_last_backup do
      remote = capture "ls #{shared_path}/backups/*.sql.tar.bz2 -tr1 |
tail -1"
      local = "/tmp/#{timestamp}.#{application}.sql.tar.bz2"
      get remote, local
end

The file definitely exists -- for instance, I can stat the captured
remote filename in the middle of that task and it works fine -- and I
can retrieve the file via sftp from the command line.

/var/log/secure has no meaningful output:
subsystem request for sftp
pam_unix(sshd:session): session closed for user username

Have I missed anything obvious?

Thanks,
Josh


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to