Hi Lee,

Thanks for your fast response, and yes I can confirm that it was line:3 
that seemed to be causing the error.  I think I might of replied to you 
directly rather than putting this publicly in the thread.

I have tried several variations provided in the documentation but keep 
coming up against the same error.

Just to confirm, you recommend the following line should be the correct 
format?

*server('[email protected]:22', {roles: %w{web 
db}, primary: true})*

I will need to confirm some details (username, port, and if the primary 
value is required) with our DevOps specialist who has sole access to the 
build servers but you think this is the correct syntax?

Thanks,
Steve

On Tuesday, 22 October 2013 14:45:22 UTC+1, Lee Hambley wrote:
>
> 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] <javascript:>>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] <javascript:>
>> > 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]<javascript:>
>>> * To unsubscribe from this group, send email to 
>>> [email protected] <javascript:> 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] <javascript:>.
>>> 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.

Reply via email to