You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Marc-André Laverdière <ma...@gmail.com> on 2011/05/06 08:30:44 UTC

Re: Unable to deploy

I managed to recompile with verbose at debug level. Here goes!


D, [2011-05-06T11:50:53.353567 #12862] DEBUG --
net.ssh.transport.algorithms[..fdb815f14]: exchanging keys
D, [2011-05-06T11:50:53.367817 #12862] DEBUG --
tcpsocket[..fdb816644]: queueing packet nr 1 type 34 len 20
D, [2011-05-06T11:50:53.367936 #12862] DEBUG --
tcpsocket[..fdb816644]: sent 24 bytes
D, [2011-05-06T11:50:53.393458 #12862] DEBUG --
tcpsocket[..fdb816644]: read 152 bytes
D, [2011-05-06T11:50:53.393784 #12862] DEBUG --
tcpsocket[..fdb816644]: received packet nr 1 type 31 len 148
D, [2011-05-06T11:50:53.431277 #12862] DEBUG --
tcpsocket[..fdb816644]: queueing packet nr 2 type 32 len 140
D, [2011-05-06T11:50:53.431541 #12862] DEBUG --
tcpsocket[..fdb816644]: sent 144 bytes
D, [2011-05-06T11:50:53.445724 #12862] DEBUG --
tcpsocket[..fdb816644]: read 720 bytes
D, [2011-05-06T11:50:53.445986 #12862] DEBUG --
tcpsocket[..fdb816644]: received packet nr 2 type 33 len 700
D, [2011-05-06T11:50:53.477718 #12862] DEBUG --
tcpsocket[..fdb816644]: queueing packet nr 3 type 21 len 20
D, [2011-05-06T11:50:53.477859 #12862] DEBUG --
tcpsocket[..fdb816644]: sent 24 bytes
D, [2011-05-06T11:50:53.478015 #12862] DEBUG --
tcpsocket[..fdb816644]: received packet nr 3 type 21 len 12
D, [2011-05-06T11:50:53.478461 #12862] DEBUG --
net.ssh.authentication.session[..fdb80f196]: beginning authentication
of `user'
D, [2011-05-06T11:50:53.478650 #12862] DEBUG --
tcpsocket[..fdb816644]: queueing packet nr 4 type 5 len 28
D, [2011-05-06T11:50:53.478729 #12862] DEBUG --
tcpsocket[..fdb816644]: sent 52 bytes
D, [2011-05-06T11:50:53.515288 #12862] DEBUG --
tcpsocket[..fdb816644]: read 52 bytes
D, [2011-05-06T11:50:53.515545 #12862] DEBUG --
tcpsocket[..fdb816644]: received packet nr 4 type 6 len 28
D, [2011-05-06T11:50:53.515719 #12862] DEBUG --
net.ssh.authentication.session[..fdb80f196]: trying publickey
D, [2011-05-06T11:50:53.515847 #12862] DEBUG --
net.ssh.authentication.agent[..fdb80e5de]: connecting to ssh-agent
D, [2011-05-06T11:50:53.516027 #12862] DEBUG --
net.ssh.authentication.agent[..fdb80e5de]: sending agent request 1 len
43
D, [2011-05-06T11:50:53.571668 #12862] DEBUG --
net.ssh.authentication.agent[..fdb80e5de]: received agent packet 2 len
5
D, [2011-05-06T11:50:53.571814 #12862] DEBUG --
net.ssh.authentication.agent[..fdb80e5de]: sending agent request 11
len 0
D, [2011-05-06T11:50:54.119814 #12862] DEBUG --
net.ssh.authentication.agent[..fdb80e5de]: received agent packet 12
len 1702
D, [2011-05-06T11:50:54.120489 #12862] DEBUG --
net.ssh.authentication.methods.publickey[..fdb80e624]: trying
publickey (---)
D, [2011-05-06T11:50:54.120759 #12862] DEBUG --
tcpsocket[..fdb816644]: queueing packet nr 5 type 50 len 508
D, [2011-05-06T11:50:54.120865 #12862] DEBUG --
tcpsocket[..fdb816644]: sent 532 bytes
D, [2011-05-06T11:50:54.123825 #12862] DEBUG --
tcpsocket[..fdb816644]: read 68 bytes
D, [2011-05-06T11:50:54.124023 #12862] DEBUG --
tcpsocket[..fdb816644]: received packet nr 5 type 51 len 44
D, [2011-05-06T11:50:54.124160 #12862] DEBUG --
net.ssh.authentication.session[..fdb80f196]: allowed methods:
publickey,password
D, [2011-05-06T11:50:54.124354 #12862] DEBUG --
net.ssh.authentication.methods.publickey[..fdb80e624]: trying
publickey (2b:d7:0f:a2:74:97:7f:88:a9:06:ea:92:2f:8e:ed:ad)
D, [2011-05-06T11:50:54.124573 #12862] DEBUG --
tcpsocket[..fdb816644]: queueing packet nr 6 type 50 len 508
D, [2011-05-06T11:50:54.124660 #12862] DEBUG --
tcpsocket[..fdb816644]: sent 532 bytes
D, [2011-05-06T11:50:54.125633 #12862] DEBUG --
tcpsocket[..fdb816644]: read 68 bytes
D, [2011-05-06T11:50:54.125822 #12862] DEBUG --
tcpsocket[..fdb816644]: received packet nr 6 type 51 len 44
D, [2011-05-06T11:50:54.125942 #12862] DEBUG --
net.ssh.authentication.session[..fdb80f196]: allowed methods:
publickey,password
D, [2011-05-06T11:50:54.126094 #12862] DEBUG --
net.ssh.authentication.methods.publickey[..fdb80e624]: trying
publickey (94:2c:cb:e6:53:67:01:2c:5c:a2:43:59:a3:49:cd:86)
D, [2011-05-06T11:50:54.126302 #12862] DEBUG --
tcpsocket[..fdb816644]: queueing packet nr 7 type 50 len 348
D, [2011-05-06T11:50:54.126387 #12862] DEBUG --
tcpsocket[..fdb816644]: sent 372 bytes
D, [2011-05-06T11:50:54.127136 #12862] DEBUG --
tcpsocket[..fdb816644]: read 68 bytes
D, [2011-05-06T11:50:54.127318 #12862] DEBUG --
tcpsocket[..fdb816644]: received packet nr 7 type 51 len 44
D, [2011-05-06T11:50:54.127449 #12862] DEBUG --
net.ssh.authentication.session[..fdb80f196]: allowed methods:
publickey,password
D, [2011-05-06T11:50:54.127632 #12862] DEBUG --
net.ssh.authentication.methods.publickey[..fdb80e624]: trying
publickey (04:ce:a7:a4:4b:c9:3e:3f:46:78:ff:89:08:ae:80:4a)
D, [2011-05-06T11:50:54.127842 #12862] DEBUG --
tcpsocket[..fdb816644]: queueing packet nr 8 type 50 len 508
D, [2011-05-06T11:50:54.127927 #12862] DEBUG --
tcpsocket[..fdb816644]: sent 532 bytes
D, [2011-05-06T11:50:54.128781 #12862] DEBUG --
tcpsocket[..fdb816644]: read 68 bytes
D, [2011-05-06T11:50:54.128965 #12862] DEBUG --
tcpsocket[..fdb816644]: received packet nr 8 type 51 len 44
D, [2011-05-06T11:50:54.129078 #12862] DEBUG --
net.ssh.authentication.session[..fdb80f196]: allowed methods:
publickey,password
D, [2011-05-06T11:50:54.145712 #12862] DEBUG --
net.ssh.authentication.methods.publickey[..fdb80e624]: trying
publickey (e7:18:7c:52:0b:4b:9a:96:b4:ab:34:ae:eb:57:7c:29)
D, [2011-05-06T11:50:54.145983 #12862] DEBUG --
tcpsocket[..fdb816644]: queueing packet nr 9 type 50 len 508
D, [2011-05-06T11:50:54.146083 #12862] DEBUG --
tcpsocket[..fdb816644]: sent 532 bytes
D, [2011-05-06T11:50:54.146941 #12862] DEBUG --
tcpsocket[..fdb816644]: read 68 bytes
D, [2011-05-06T11:50:54.147127 #12862] DEBUG --
tcpsocket[..fdb816644]: received packet nr 9 type 51 len 44
D, [2011-05-06T11:50:54.147250 #12862] DEBUG --
net.ssh.authentication.session[..fdb80f196]: allowed methods:
publickey,password
D, [2011-05-06T11:50:54.159217 #12862] DEBUG --
net.ssh.authentication.methods.publickey[..fdb80e624]: trying
publickey (94:2c:cb:e6:53:67:01:2c:5c:a2:43:59:a3:49:cd:86)
D, [2011-05-06T11:50:54.159570 #12862] DEBUG --
tcpsocket[..fdb816644]: queueing packet nr 10 type 50 len 348
D, [2011-05-06T11:50:54.159681 #12862] DEBUG --
tcpsocket[..fdb816644]: sent 372 bytes
D, [2011-05-06T11:50:54.160612 #12862] DEBUG --
tcpsocket[..fdb816644]: read 84 bytes
D, [2011-05-06T11:50:54.160818 #12862] DEBUG --
tcpsocket[..fdb816644]: received packet nr 10 type 1 len 60
E, [2011-05-06T11:50:54.161157 #12862] ERROR --
net.ssh.authentication.key_manager[..fdb80e854]: could not load public
key file `/home/marc-andre/.ssh/id_rsa.pub': Net::SSH::Disconnect
(disconnected: Too many authentication failures for edrm (2))
D, [2011-05-06T11:50:54.161267 #12862] DEBUG --
net.ssh.authentication.session[..fdb80f196]: trying password
D, [2011-05-06T11:50:54.161512 #12862] DEBUG --
tcpsocket[..fdb816644]: queueing packet nr 11 type 50 len 60
D, [2011-05-06T11:50:54.161614 #12862] DEBUG --
tcpsocket[..fdb816644]: sent 84 bytes
D, [2011-05-06T11:50:54.161748 #12862] DEBUG --
tcpsocket[..fdb816644]: read 0 bytes
Buildr aborted!
Net::SSH::Disconnect : connection closed by remote host

Since it looks like some bad assumption is made about the auth I want
to do here, I changed the source a bit more to force password
authentication only.

And it worked!!!!

It looks like we either need to change the default to password only,
or give an option to specify the right ssh key, or some configuration
yanked from Net::SSH is in order :)


On 4/28/11, Ilya Pyatigorskiy <at...@gmail.com> wrote:
> Would be also nice to check if you can actually scp "large" files too. I've
> recently had a really frustrating problem where I was able to ssh to a host,
> but not transfer files. This was caused by some MTU evil magic. (Probably
> not relevant to you - specific for Windows OS)
>
> 2011/4/28 Marc-André Laverdière <ma...@gmail.com>
>
>> Yup, done that already :)
>>
>> $ ssh maven
>> marc-andre@aaa.bbb.ccc.ddd's password:
>> Linux util-server 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02
>> UTC 2010 i686 GNU/Linux
>> Ubuntu 10.04.1 LTS
>>
>> Welcome to Ubuntu!
>>  * Documentation:  https://help.ubuntu.com/
>> Last login: Mon Apr 25 13:00:44 2011 from ---.---.---.---
>>
>>
>> On 4/28/11, Alex Boisvert <al...@gmail.com> wrote:
>> > Hmmm.  The error message seems to point to an authentication issue... I
>> > assume you have double-checked your credentials?  Are you able to login
>> into
>> > the remote host manually using the same?
>> >
>> > alex
>> >
>> > 2011/4/27 Marc-André Laverdière <ma...@gmail.com>
>> >
>> >> Hello,
>> >>
>> >> Something weird has been happening lately. I am not able to make any
>> >> deployments on SFTP.
>> >>
>> >> I am getting the following error:
>> >> Buildr aborted!
>> >> Net::SSH::Disconnect : connection closed by remote host
>> >>
>> >> (See full trace by running task with --trace)
>> >> Buildr aborted!
>> >> RuntimeError : Command failed with status (1): [/usr/bin/ruby1.8 -S
>> >> buildr _1.4.5_ --build...]
>> >>
>> >> I checked, and my server config and my deployment YAML settings haven't
>> >> changed.
>> >> I ran a gem update and nothing changed.
>> >> One of my colleagues is able to make the deployment from cygwin,
>> however.
>> >>
>> >> I'm running Ubuntu 10.10... has any recent update broke a package or
>> >> something?
>> >>
>> >> Here is what it says with --trace enabled:
>> >>
>> >> Buildr aborted!
>> >> Net::SSH::Disconnect : connection closed by remote host
>> >>
>> >> (See full trace by running task with --trace)
>> >> rm /home/marc-andre/workspace/eDRM/server/buildfile.rb.next
>> >> Buildr aborted!
>> >> RuntimeError : Command failed with status (1): [/usr/bin/ruby1.8 -S
>> >> buildr _1.4.5_ --build...]
>> >> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/util.rb:503:in `sh'
>> >> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/util.rb:533:in
>> `call'
>> >> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/util.rb:533:in `sh'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:696:in
>> >> `sh'
>> >> /var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1027:in `ruby'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:696:in
>> >> `ruby'
>> >> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/build.rb:292:in
>> `make'
>> >> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/build.rb:354:in
>> >> `with_release_candidate_version'
>> >> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/build.rb:288:in
>> `make'
>> >> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/build.rb:508
>> >> /var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:634:in `call'
>> >> /var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:634:in `execute'
>> >> /var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
>> >> /var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:674:in
>> >> `invoke_with_call_chain'
>> >> /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:660:in
>> >> `invoke_with_call_chain'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:655:in
>> >> `invoke'
>> >> /var/lib/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:246:in
>> >> `top_level'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:246:in
>> >> `each'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:246:in
>> >> `top_level'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:535:in
>> >> `standard_exception_handling'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:237:in
>> >> `top_level'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:138:in
>> >> `run'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:535:in
>> >> `standard_exception_handling'
>> >>
>> /var/lib/gems/1.8/gems/buildr-1.4.5/lib/buildr/core/application.rb:135:in
>> >> `run'
>> >> /var/lib/gems/1.8/gems/buildr-1.4.5/bin/buildr:19
>> >> /var/lib/gems/1.8/bin/buildr:19:in `load'
>> >> /var/lib/gems/1.8/bin/buildr:19
>> >>
>> >>
>> >> --
>> >> Marc-André LAVERDIÈRE
>> >> "Perseverance must finish its work so that you may be mature and
>> complete,
>> >> not lacking anything." -James 1:4
>> >> http://asimplediscipleslife.blogspot.com/
>> >> mlaverd.theunixplace.com
>> >>
>> >
>>
>>
>> --
>> Marc-André LAVERDIÈRE
>> "Perseverance must finish its work so that you may be mature and complete,
>> not lacking anything." -James 1:4
>> http://asimplediscipleslife.blogspot.com/
>> mlaverd.theunixplace.com
>>
>


-- 
Marc-André LAVERDIÈRE
"Perseverance must finish its work so that you may be mature and complete,
not lacking anything." -James 1:4
http://asimplediscipleslife.blogspot.com/
mlaverd.theunixplace.com