Limit on rfile variable length?

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
harryseldon
Posts: 13
Joined: Thu Apr 19, 2012 1:55 pm

Limit on rfile variable length?

Post by harryseldon »

I'm attempting to transfer a basic data set to a remote system. It works when I use a short name like company_test.txt. However, when I attempt to send a file with the customer-specified name, xxxxxx_xx_xxxxxxxxx_xxxx-xx-xx.control I get a read error and the file fails to transfer:

Code: Select all

debug2: channel 0: open confirm rwindow 0 rmax 32768                 
                                                                     
debug2: channel 0: rcvd adjust 131072                                
                                                                     
Ý42.506¨ debug2: Remote version: 3                                   
Ý42.508¨ debug3: Sent message fd 7 T:16 I:1                          
Ý42.513¨ debug3: SSH_FXP_REALPATH . -> /pathname                      
debug2: channel 0: read<=0 rfd 5 len 0                               
                                                                     
debug2: channel 0: read failed                                       
                                                                     
debug2: channel 0: close_read                                        
                                                                     
debug2: channel 0: input open -> drain                               
                                                                     
debug2: channel 0: ibuf empty                                        
                                                                     
debug2: channel 0: send eof                                          
                                                                     
debug2: channel 0: input drain -> closed                             
                                                                     
debug2: channel 0: rcvd eof                                          
                                                                     
debug2: channel 0: output open -> drain                              
                                                                     
debug2: channel 0: obuf empty                                        
                                                                     
debug2: channel 0: close_write                                       
                                                                     
debug2: channel 0: output drain -> closed                            
                                                                     
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
                                                                     
debug2: channel 0: rcvd close                                        

The only guess I have is that the remote filename is too long. Is there a limit on that length? I couldn't find anything in the Co:Z docs but wondering if this may be a limitation of my base ssh on MVS?
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Limit on rfile variable length?

Post by dovetail »

There seems to be a read error in ssh of some kind, but I can't tell what it refers to with this information.

Please describe the environment:
- which system is the client, and the server
- which version of Co:Z SFTP and IBM Ported Tools

Also, please gather the following information for us to look at:
- add the following to the beginning of your client shell script:

set -x
export COZ_LOG=F

Please send the job output to info@dovetail.com and we'll take a look.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Limit on rfile variable length?

Post by dovetail »

Looked at this offline, and it turned out that the problem was that the /tmp filesystem was full.

This was causing the Unix shell's "here document" to be lost.
Post Reply