
anbusatish
New User
Sep 8, 2011, 2:42 AM
Post #1 of 2
(1755 views)
|
|
NET::SFTP -> channel 1: rcvd eof
|
Can't Post
|
|
Hi, Am have a function in perl which does the sftp to copy a file from my local machine to a remote machine . 3 out of 5 times the sftp fails, saying the channel 1 received end of file. This info i could see if I enable the debug to 1 in net::sftp module. So have pasted the output of the debug logs when it passed and when it failed. Please help me solve this random failures ? Failed debug log =========== 082511 151100: zxyzQA::Utils.SftpFiletoNFS: Opening SFTP session to NFS server, ip = '10.99.96.72', user = 'autouser', passwd = 'autouser' Reading configuration data /home/jumaji/.ssh/config Reading configuration data /etc/ssh_config Connecting to 10.99.96.72, port 22. Remote version string: SSH-2.0-Sun_SSH_1.0.1 Remote protocol version 2.0, remote software version Sun_SSH_1.0.1 Net::SSH::Perl Version 1.30, protocol version 2.0. No compat match: Sun_SSH_1.0.1. Connection established. Sent key-exchange init (KEXINIT), wait response. Algorithms, c->s: 3des-cbc hmac-sha1 none Algorithms, s->c: 3des-cbc hmac-sha1 none Entering Diffie-Hellman Group 1 key exchange. Sent DH public key, waiting for reply. Received host key, type 'ssh-dss'. Host '10.99.96.72' is known and matches the host key. Computing shared secret key. Verifying server signature. Waiting for NEWKEYS message. Enabling incoming encryption/MAC/compression. Send NEWKEYS, enable outgoing encryption/MAC/compression. Sending request for user-authentication service. Service accepted: ssh-userauth. Trying empty user-authentication request. Authentication methods that can continue: publickey,password. Next method to try is publickey. Next method to try is password. Trying password authentication. Login completed, opening dummy shell channel. channel 0: new [client-session] Requesting channel_open for channel 0. channel 0: open confirm rwindow 0 rmax 16384 channel 1: new [client-session] Requesting channel_open for channel 1. Sending subsystem: sftp Requesting service subsystem on channel 1. channel 1: open confirm rwindow 0 rmax 16384 sftp: Sending SSH2_FXP_INIT sftp: Remote version: 2 082511 151152: zxyzQA::Utils.SftpFiletoNFS: Opened autouser SFTP session to (10.99.96.72) NFS server 082511 151152: zxyzQA::Utils.SftpFiletoNFS: from: kl_STATISTICS.tcl, to: /zxyz/zxyzNFS/C/kl_STATISTICS.tcl sftp: Sent SSH2_FXP_OPEN I:0 P:/zxyz/zxyzNFS/C/kl_STATISTICS.tcl channel 1: rcvd eof -----> it say endoffile channel 1: output open -> drain channel 1: rcvd close channel 1: input open -> closed channel 1: close_read channel 1: obuf empty channel 1: output drain -> closed channel 1: close_write channel 1: send close channel 1: full closed Passed debug log ============ Reading configuration data /home/jumanji/.ssh/config Reading configuration data /etc/ssh_config Connecting to 10.99.96.72, port 22. Remote version string: SSH-2.0-Sun_SSH_1.0.1 Remote protocol version 2.0, remote software version Sun_SSH_1.0.1 Net::SSH::Perl Version 1.30, protocol version 2.0. No compat match: Sun_SSH_1.0.1. Connection established. Sent key-exchange init (KEXINIT), wait response. Algorithms, c->s: 3des-cbc hmac-sha1 none Algorithms, s->c: 3des-cbc hmac-sha1 none Entering Diffie-Hellman Group 1 key exchange. Sent DH public key, waiting for reply. Received host key, type 'ssh-dss'. Host '10.99.96.72' is known and matches the host key. Computing shared secret key. Verifying server signature. Waiting for NEWKEYS message. Enabling incoming encryption/MAC/compression. Send NEWKEYS, enable outgoing encryption/MAC/compression. Sending request for user-authentication service. Service accepted: ssh-userauth. Trying empty user-authentication request. Authentication methods that can continue: publickey,password. Next method to try is publickey. Next method to try is password. Trying password authentication. Login completed, opening dummy shell channel. channel 0: new [client-session] Requesting channel_open for channel 0. channel 0: open confirm rwindow 0 rmax 16384 channel 1: new [client-session] Requesting channel_open for channel 1. Sending subsystem: sftp Requesting service subsystem on channel 1. channel 1: open confirm rwindow 0 rmax 16384 sftp: Sending SSH2_FXP_INIT sftp: Remote version: 2 082411 183221: zxyzQA::Utils.SftpFiletoNFS: Opened autouser SFTP session to (10.99.96.72) NFS server 082411 183221: zxyzQA::Utils.SftpFiletoNFS: from: kl_STATISTICS.tcl, to: /zxyz/zxyzNFS/C/kl_STATISTICS.tcl sftp: Sent SSH2_FXP_OPEN I:0 P:/zxyz/zxyzNFS/C/kl_STATISTICS.tcl sftp: Sent message SSH2_FXP_WRITE I:1 O:0 sftp: In write loop, got 6811 offset 0 --> successfully tx. sftp: Sent message T:10 I:2 sftp: Sent message T:4 I:3 Thanks and your time to help is much appreciated, Satish
|