Hi Steve, Closer inspection reveals that this line:
server "ec2-xx-xx-xxx-xx.compute-1.amazonaws.com", :web, :db, primary: true is the problem, it should follow the format in the first response that I sent. Lee Hambley -- http://lee.hambley.name/ +49 (0) 170 298 5667 On 22 October 2013 15:38, Lee Hambley <[email protected]> wrote: > Steve, looks like the error is on this line: > > server 'ec2-xx-xx-xxx-xx.compute-1.amazonaws.com', roles: %w{web db}, > primary: :true > > Can you confirm that? (I'd say it's clear, from the line numbering, but > you are not sending 4 args in this code, you are sending just three... in > any case that line essentially should read `server('user@host:port', > {options hash here})` - but your syntax looks OK to me, except for the > weirdness in the `primary: :true`, which as far as I know isn't valid > syntax, it should be `primary: true`, or `:primary => :true` if you really > want a symbol key, with a symbol value. > > Lee Hambley > -- > http://lee.hambley.name/ > +49 (0) 170 298 5667 > > > On 22 October 2013 15:34, Steve McIntyre <[email protected]> wrote: > >> I am receiving the following errors during deployment whilst trying to >> upgrade to v3.0... >> >> cap aborted! >> wrong number of arguments (4 for 1..2) >> /srv/ci/jenkins/shared/bundle/ruby/2.0.0/gems/capistrano-3.0.0/lib/capistrano/dsl/env.rb:38:in >> `server' >> config/deploy/edge.rb:3:in `<top (required)>' >> /srv/ci/jenkins/shared/bundle/ruby/2.0.0/gems/capistrano-3.0.0/lib/capistrano/setup.rb:13:in >> `load' >> /srv/ci/jenkins/shared/bundle/ruby/2.0.0/gems/capistrano-3.0.0/lib/capistrano/setup.rb:13:in >> `block (2 levels) in <top (required)>' >> /srv/ci/jenkins/shared/bundle/ruby/2.0.0/gems/capistrano-3.0.0/lib/capistrano/application.rb:12:in >> `run' >> /srv/ci/jenkins/shared/bundle/ruby/2.0.0/gems/capistrano-3.0.0/bin/cap:3:in >> `<top (required)>' >> /srv/ci/jenkins/shared/bundle/ruby/2.0.0/bin/cap:23:in `load' >> /srv/ci/jenkins/shared/bundle/ruby/2.0.0/bin/cap:23:in `<main>' >> Tasks: TOP => edge >> >> >> Here is the code for our new deploy/edge.rb configuration using the new >> format suggested in the documentation, and also a copy of our old (working) >> configuration for reference. >> >> http://pastie.org/private/dpuvxvnwdcjgqj9ukuq >> >> Can anyone please suggest where I might be going wrong? >> >> Many thanks, >> Steve >> >> -- >> -- >> * You received this message because you are subscribed to the Google >> Groups "Capistrano" group. >> * To post to this group, send email to [email protected] >> * To unsubscribe from this group, send email to >> [email protected] For more options, visit this >> group at http://groups.google.com/group/capistrano?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Capistrano" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en --- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
