
Gus
Novice
Sep 26, 2011, 6:52 AM
Post #6 of 12
(8047 views)
|
Re: [salva] Problem with Net::SFTP::Foreign
[In reply to]
|
Can't Post
|
|
Hi again, sorry about the late reply. I haven't received a reply yet regarding the software unfortunately. When I try to telnet to the server I get this: SSH-2.0-GXSSSHD_Comments When I set the debug = -1 I get a lot of debug output (more than my max allowed buffer size here...). Here is the output from where the $sftp-mget command runs (i have edited paths and filenames in the output manually here, hope that doesn't mess up readability):
main::(download-sftp-test.pl:33): $sftp->mget('*', $indir) or die "mget fa iled: " . $sftp->error; DB<1> s Net::SFTP::Foreign::mget(C:/Perl/site/lib/Net/SFTP/Foreign.pm:2645): 2645: @_ >= 2 or croak 'Usage: $sftp->mget($remote, $localdir, %opts)'; DB<1> c 1556 #2880 1317040677.00000 _rel2abs: '.' --> '/POLLABLE' #2880 1317040677.00000 _rel2abs: '/POLLABLE' --> '/POLLABLE' #2880 1317040677.00000 _queue_msg: queueing msg len: 31, code:11, id:8 ... [1] 00 00 00 1f 0b 00 00 00 08 00 00 00 16 2f 41 44 54 30 30 33 37 37 2f 2e 2f 2e 2f 50 4f 4c 4c 41 | ............./POLLA 42 4c 45 | BLE #2880 1317040677.00000 _get_msg: waiting for message... [1] #2880 1317040677.00000 _get_msg: got it!, len:31, code:102, id:8, status: - 66 00 00 00 08 00 00 00 16 2f 41 44 54 30 30 33 37 37 2f 2e 2f 2e 2f 50 4f 4c 4c 41 42 4c 45 | f......../POLLABLE #2880 1317040677.00000 opendir: new remote dir '/POLLABLE' open, ri d: 2f 41 44 54 30 30 33 37 37 2f 2e 2f 2e 2f 50 4f 4c 4c 41 42 4c 45 | /POLLABLE #2880 1317040677.00000 _queue_msg: queueing msg len: 31, code:12, id:9 ... [1] 00 00 00 1f 0c 00 00 00 09 00 00 00 16 2f 41 44 54 30 30 33 37 37 2f 2e 2f 2e 2f 50 4f 4c 4c 41 | ............./POLLA 42 4c 45 | BLE #2880 1317040677.00000 _get_msg: waiting for message... [1] #2880 1317040677.00000 _get_msg: got it!, len:527, code:104, id:9, status: - 68 00 00 00 09 00 00 00 02 00 00 00 69 2f 43 54 45 5f 45 44 2f 41 44 54 30 30 33 37 37 2f 41 42 | h...........i 53 43 49 45 58 54 45 53 54 2f 50 4f 4c 4c 41 42 4c 45 2f 63 6f 6e 74 72 6c 2e 41 42 53 43 49 45 | /POLLABLE/fi 58 54 45 53 54 5f 32 30 31 31 30 39 32 36 5f 30 33 35 35 33 37 2e 34 31 32 36 34 35 34 5f 36 35 | le1 6c 31 68 33 30 30 36 61 69 66 34 73 36 74 30 30 30 30 74 39 31 38 00 00 00 7a 2d 72 77 2d 72 2d | ...z-rw-r- 2d 2d 2d 2d 20 20 20 31 20 30 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 20 20 20 20 20 20 | ---- 1 0 0 31 36 33 20 53 65 70 20 32 36 20 30 38 3a 35 35 20 63 6f 6e 74 72 6c 2e 41 42 53 43 49 45 58 54 | 163 Sep 26 08:55 fi 45 53 54 5f 32 30 31 31 30 39 32 36 5f 30 33 35 35 33 37 2e 34 31 32 36 34 35 34 5f 36 35 6c 31 | le1 68 33 30 30 36 61 69 66 34 73 36 74 30 30 30 30 74 39 31 38 00 00 00 0d 00 00 00 00 00 00 00 a3 | ............ 00 00 81 a0 4e 80 3e 10 4e 80 3e 10 00 00 00 69 2f 43 54 45 5f 45 44 2f 41 44 54 30 30 33 37 37 | ....N.>.N.>....i 2f 41 42 53 43 49 45 58 54 45 53 54 2f 50 4f 4c 4c 41 42 4c 45 2f 63 6f 6e 74 72 6c 2e 41 42 53 | /POLLABLE/fil 43 49 45 58 54 45 53 54 5f 32 30 31 31 30 39 32 36 5f 30 33 35 35 33 34 2e 34 31 32 36 34 35 33 | e2 5f 36 35 6c 31 68 31 30 30 36 61 69 66 34 70 31 6c 30 30 30 32 72 6d 33 72 00 00 00 7a 2d 72 77 | ...z-rw 2d 72 2d 2d 2d 2d 2d 20 20 20 31 20 30 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20 20 20 20 | -r----- 1 0 0 20 20 20 31 36 33 20 53 65 70 20 32 36 20 30 38 3a 35 35 20 63 6f 6e 74 72 6c 2e 41 42 53 43 49 | 163 Sep 26 08:55 fi 45 58 54 45 53 54 5f 32 30 31 31 30 39 32 36 5f 30 33 35 35 33 34 2e 34 31 32 36 34 35 33 5f 36 | le2 35 6c 31 68 31 30 30 36 61 69 66 34 70 31 6c 30 30 30 32 72 6d 33 72 00 00 00 0d 00 00 00 00 00 | ......... 00 00 a3 00 00 81 a0 4e 80 3e 0d 4e 80 3e 0d | .......N.>.N.>. #2880 1317040677.00000 _queue_msg: queueing msg len: 31, code:12, id:10 ... [1] 00 00 00 1f 0c 00 00 00 0a 00 00 00 16 2f 41 44 54 30 30 33 37 37 2f 2e 2f 2e 2f 50 4f 4c 4c 41 | ............./POLLA 42 4c 45 | BLE #2880 1317040677.00000 _get_msg: waiting for message... [1] #2880 1317040677.00000 _get_msg: got it!, len:54, code:101, id:10, status: 1 65 00 00 00 0a 00 00 00 01 00 00 00 25 54 68 65 72 65 20 61 72 65 20 6e 6f 20 6d 6f 72 65 20 66 | e...........%There are no more f 69 6c 65 73 20 66 6f 72 20 74 68 69 73 20 75 73 65 72 00 00 00 00 | iles for this user.... #2880 1317040677.00000 _set_status: _set_status code: 1, str: There are no more files for this user #2880 1317040677.00000 _set_error: _set_err code: 29, str: Couldn't read directo ry '/POLLABLE': There are no more files for this user #2880 1317040677.00000 _queue_msg: queueing msg len: 31, code:4, id:11 ... [1] 00 00 00 1f 04 00 00 00 0b 00 00 00 16 2f 41 44 54 30 30 33 37 37 2f 2e 2f 2e 2f 50 4f 4c 4c 41 | ............./POLLA 42 4c 45 | BLE #2880 1317040677.00000 _get_msg: waiting for message... [1] #2880 1317040678.00000 _get_msg: got it!, len:40, code:101, id:11, status: 0 65 00 00 00 0b 00 00 00 00 00 00 00 17 54 68 65 20 6f 70 65 72 61 74 69 6f 6e 20 63 6f 6d 70 6c | e............The operation compl 65 74 65 64 00 00 00 00 | eted.... #2880 1317040678.00000 _close: closing file handle, return: 1, rid: 2f 41 44 54 30 30 33 37 37 2f 2e 2f 2e 2f 50 4f 4c 4c 41 42 4c 45 | /POLLABLE #2880 1317040678.00000 DESTROY: Net::SFTP::Foreign::DirHandle=GLOB(0x11f754c)->D ESTROY called (sftp: ) #2880 1317040678.00000 _rel2abs: '/POLLABLE/file1' --> '/000 _rel2abs: '/POLLABLE/file1' --> '/POLLABLE/file1 s6t0000t918' #2880 1317040678.00000 _queue_msg: queueing msg len: 114, code:17, id:12 ... [1] 00 00 00 72 11 00 00 00 0c 00 00 00 69 2f 43 54 45 5f 45 44 2f 41 44 54 30 30 33 37 37 2f 41 42 | ...r........i/PO 53 43 49 45 58 54 45 53 54 2f 50 4f 4c 4c 41 42 4c 45 2f 63 6f 6e 74 72 6c 2e 41 42 53 43 49 45 | LLABLE/fil 58 54 45 53 54 5f 32 30 31 31 30 39 32 36 5f 30 33 35 35 33 37 2e 34 31 32 36 34 35 34 5f 36 35 | e2 6c 31 68 33 30 30 36 61 69 66 34 73 36 74 30 30 30 30 74 39 31 38 | #2880 1317040678.00000 _get_msg: waiting for message... [1] #2880 1317040678.00000 _get_msg: got it!, len:21, code:105, id:12, status: - 69 00 00 00 0c 00 00 00 0c 00 00 81 80 4e 80 6f fd 4e 80 6f fd | i............N.o.N.o. #2880 1317040678.00000 _rel2abs: '/POLLABLE/file2' --> '/POLLABLE/file2' #2880 1317040678.00000 _queue_msg: queueing msg len: 122, code:3, id:13 ... [1] 00 00 00 7a 03 00 00 00 0d 00 00 00 69 2f 43 54 45 5f 45 44 2f 41 44 54 30 30 33 37 37 2f 41 42 | ...z........i/POL 53 43 49 45 58 54 45 53 54 2f 50 4f 4c 4c 41 42 4c 45 2f 63 6f 6e 74 72 6c 2e 41 42 53 43 49 45 | LABLE/fil 58 54 45 53 54 5f 32 30 31 31 30 39 32 36 5f 30 33 35 35 33 37 2e 34 31 32 36 34 35 34 5f 36 35 | e2 6c 31 68 33 30 30 36 61 69 66 34 73 36 74 30 30 30 30 74 39 31 38 00 00 00 01 00 00 00 00 | #2880 1317040678.00000 _get_msg: waiting for message... [1] #2880 1317040678.00000 _get_msg: got it!, len:33, code:102, id:13, status: - 66 00 00 00 0d 00 00 00 18 36 35 6c 31 68 33 30 30 36 61 69 66 34 73 36 74 30 30 30 30 74 39 31 | f........65l1h3006aif4s6t0000t91 38 | 8 #2880 1317040678.00000 open: new remote file '/POLLA BLE/file2' open, r id: 36 35 6c 31 68 33 30 30 36 61 69 66 34 73 36 74 30 30 30 30 74 39 31 38 | Net::SFTP::Foreign::get(C:/Perl/site/lib/Net/SFTP/Foreign.pm:1556): 1556: my $id = $sftp->_queue_new_msg(SSH2_FXP_READ, str=> $rfi d, 1557: int64 => $askoff, int32 = > $block_size); DB<2> n #2880 1317042033.00000 _queue_msg: queueing msg len: 45, code:5, id:14 ... [1] 00 00 00 2d 05 00 00 00 0e 00 00 00 18 36 35 6c 31 68 33 30 30 36 61 69 66 34 73 36 74 30 30 30 | ...-.........65l1h3006aif4s6t000 30 74 39 31 38 00 00 00 00 00 00 00 00 00 00 80 00 | 0t918............ Net::SFTP::Foreign::get(C:/Perl/site/lib/Net/SFTP/Foreign.pm:1558): 1558: push @msgid, $id; DB<2> Net::SFTP::Foreign::get(C:/Perl/site/lib/Net/SFTP/Foreign.pm:1559): 1559: push @askoff, $askoff; DB<2> Net::SFTP::Foreign::get(C:/Perl/site/lib/Net/SFTP/Foreign.pm:1560): 1560: $askoff += $block_size; DB<2> Net::SFTP::Foreign::get(C:/Perl/site/lib/Net/SFTP/Foreign.pm:1561): 1561: $n++; DB<2> Use of uninitialized value $size in numeric eq (==) at C:/Perl/site/lib/Net/SFTP /Foreign.pm line 1561. at C:/Perl/site/lib/Net/SFTP/Foreign.pm line 1561 Net::SFTP::Foreign::get('Net::SFTP::Foreign=HASH(0xfca464)', '/POLLABLE/ file2', 'C:\inprod\file1', 'resume', undef, 'numbered', undef, 'block_size', undef, ...) called at C:/Perl/site/lib/Net/SFTP/Foreign.pm line 2 693 Net::SFTP::Foreign::mget('Net::SFTP::Foreign=HASH(0xfca464)', '*', 'C:\i nprod') called at download-sftp-test.pl li ne 33 Use of uninitialized value $size in numeric gt (>) at C:/Perl/site/lib/Net/SFTP/ Foreign.pm line 1561. at C:/Perl/site/lib/Net/SFTP/Foreign.pm line 1561 Net::SFTP::Foreign::get('Net::SFTP::Foreign=HASH(0xfca464)', '/POLLABLE/ file2', 'C:\inprod\file2', 'resume', undef, 'numbered', undef, 'block_size', undef, ...) called at C:/Perl/site/lib/Net/SFTP/Foreign.pm line 2 693 Net::SFTP::Foreign::mget('Net::SFTP::Foreign=HASH(0xfca464)', '*', 'C:\i nprod') called at download-sftp-test.pl li ne 33 Net::SFTP::Foreign::get(C:/Perl/site/lib/Net/SFTP/Foreign.pm:1564): 1564: my $eid = shift @msgid; DB<2>
|