I think the problem comes from the sftp upload function.
it tries to upload in the path starting from my user directory.
~/kunden/homepages/16/XXX/htdocs/MyApp/
And it tries to extract the archive in the path starting from the server root directory.
/kunden/homepages/16/XXX/htdocs/MyApp/
Without changing the temporary upload, I have to create the directory :
~/tmp
I resolve the problem using the scp function. Just have to add this at the end of deploy.rb file :
module UseScpForDeployment
def self.included(base)
base.send(:alias_method, :old_upload, :upload)
base.send(:alias_method, :upload, :new_upload)
end
def new_upload(from, to)
old_upload(from, to, :via => :scp)
end
end
Capistrano::Configuration.send(:include, UseScpForDeployment)