Path Problems

Often when connecting via Capistrano you should be aware that your login scripts may not run...

You mileage may improve by using:

default_run_options[:pty] = true

This should allocate a pseudo terminal for each command, whilst this may slow things down (often unnoticeably so) it resolves a lot of common path problems.