Subject: Re: Error Handling with Net::SSH2

Re: Error Handling with Net::SSH2

From: David E. Wheeler <>
Date: Mon, 12 Jul 2010 13:31:22 -0700

On Jul 12, 2010, at 1:11 PM, Bret Dawson wrote:

> Hi David
> Here are those details. Crossing my fingers!
>> Bret, can you check that with
>> perl -MNet::SSH2 -le 'print Net::SSH2->version'
> 1.165792SSH-2.0-libssh2_1.1


>> Bret, I need to rely on you for this, too. In Bric::Util::Trans::SFTP, just add, near the top:
>> Net::SSH2->debug(1);
>> Then tail your log (debugging will be sent to STDERR).
> These are the relevant lines from the Bricolage error log, which don't
> reveal too much more than the original stack. Is that the log you meant?
> .0.4 Perl/v5.10.0 configured -- resuming normal operations
> Net::SSH2: created new object 0x23561e88
> [Mon Jul 12 20:08:13 2010] [error] [client] Error
> authenticating to '' via SSH2: -37 LIBSSH2_ERROR_EAGAIN Would
> block requesting userauth list, referer:
> [/usr/local/bricolage/lib/Bric/Util/Trans/]


No, that's just a Perl stack track. We need debugging output from libssh2. I'm hoping that if you turn on Net::SSH2->debug(1) and restart and try the distribution again, it will send a lot more info to the log as to what it's doing.

But can you do a rename using scp on the command-line?



Received on 2010-07-12