Todd,

thanks for your suggestion. turns out the problem was with the sftp
configuration on the server i was deploying to.
everything is working fine now. Jamis thanks for this awesome tool. :)

- shovan


On Jun 10, 5:18 pm, sbtodd <[EMAIL PROTECTED]> wrote:
> whenever I've had problems with SFTP it's because it tries to upload
> to a directory
> that you don't have permission to write to ...
>
> so I get around it by uploading to a place that the you do have
> permission to write
> to, and then move it.
>
> I can't tell if this is your problem or not though from the trace.
>
> Todd
>
> On Jun 10, 12:59 pm, SJ <[EMAIL PROTECTED]> wrote:
>
> > I am getting the following error when running the "cap deploy:setup".
> > The error seems to be related the sftp upload but i can;t figure out
> > what is wrong.
>
> > ----------------------------------------------------------------------
> > * executing `deploy:setup'
> >   * executing "umask 02 && mkdir -p /home/dssuser/apps/joanhughes /
> > home/dssuser/apps/joanhughes/releases /home/dssuser/apps/joanhughes/
> > shared /home/dssuser/apps/joanhughes/shared/system /home/dssuser/apps/
> > joanhughes/shared/log /home/dssuser/apps/joanhughes/shared/pids"
> >     servers: ["dssmongrel1"]
> >   * establishing connection to gateway [EMAIL PROTECTED]'
> >   * establishing connection to `dssmongrel1' via gateway
> >     connected: `dssmongrel1' (via gateway)
> >     [dssmongrel1] executing command
> >     command finished
> >   * executing `deploy:after_setup'
> >   * executing "mkdir -p /home/dssuser/apps/joanhughes/shared/config"
> >     servers: ["dssmongrel1"]
> >     [dssmongrel1] executing command
> >     command finished
> >     servers: ["dssmongrel1"]
> >  ** sftp upload #<StringIO:0x5d76cc> -> /home/dssuser/apps/joanhughes/
> > shared/config/database.yml
> > /Library/Ruby/Gems/1.8/gems/capistrano-2.3.0/lib/capistrano/
> > transfer.rb:156:in `[]=': undefined method `[]=' for nil:NilClass
> > (NoMethodError)
> >         from /Library/Ruby/Gems/1.8/gems/capistrano-2.3.0/lib/capistrano/
> > transfer.rb:207:in `handle_error'
> >         from /Library/Ruby/Gems/1.8/gems/capistrano-2.3.0/lib/capistrano/
> > transfer.rb:48:in `process!'
> >         from /Library/Ruby/Gems/1.8/gems/capistrano-2.3.0/lib/capistrano/
> > transfer.rb:43:in `loop'
> >         from /Library/Ruby/Gems/1.8/gems/capistrano-2.3.0/lib/capistrano/
> > transfer.rb:43:in `process!'
> >         from /Library/Ruby/Gems/1.8/gems/capistrano-2.3.0/lib/capistrano/
> > transfer.rb:11:in `process'
> >         from /Library/Ruby/Gems/1.8/gems/capistrano-2.3.0/lib/capistrano/
> > configuration/actions/file_transfer.rb:36:in `transfer'
> >         from /Library/Ruby/Gems/1.8/gems/capistrano-2.3.0/lib/capistrano/
> > configuration/connections.rb:159:in `execute_on_servers'
> >         from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/
> > ruby/1.8/erb.rb:743:in `each_slice'
> >          ... 19 levels...
> >         from 
> > /Library/Ruby/Gems/1.8/gems/capistrano-2.3.0/lib/capistrano/cli/
> > execute.rb:14:in `execute'
> >         from /Library/Ruby/Gems/1.8/gems/capistrano-2.3.0/bin/cap:4
> >         from /usr/bin/cap:19:in `load'
> >         from /usr/bin/cap:19
> > --------------------------------------------------------------------------- 
> > ---------------------------------------------------
>
> > here is the code that is causing the error:
>
> > *************************************************************************** 
> > ******
> >     mongrel_configuration = ERB.new <<-EOF
> >     ---
> >  cwd: /home/dssuser/apps/joanhughes/current
> >  log_file: log/mongrel.log
> >  port: 8003
> >  environment: joanhughes
> >  address: 127.0.0.1
> >  pid_file: tmp/pids/mongrel.pid
> >  servers: 1
>
> >     EOF
>
> >     run "mkdir -p #{deploy_to}/#{shared_dir}/config"
> >     put database_configuration.result, "#{deploy_to}/#{shared_dir}/
> > config/database.yml"
> > *************************************************************************** 
> > ******
>
> > any  help, guidance will be greatly appreciated.
>
> > thanks,
>
> > shovan
--~--~---------~--~----~------------~-------~--~----~
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