Broken Pipe Error

A discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
Posts: 47
Joined: Fri Jan 07, 2011 10:02 am

Broken Pipe Error

Post by mwdazzo » Fri Dec 07, 2018 2:48 pm

I did see in the forum that there is another question about the message Write failed: EDC5140I Broken pipe. (errno2=0x76697242). We get the same error on an intermittent bases. When we get this error, zos is the client doing multiple gets on multiple files.

I’m wondering if key word ServerAliveInterval would help by adding it to /etc/ssh/ssh_config.

Thanks Matt

From the z/OS OpenSSH User's Guide zos 2.2

ServerAliveInterval - Sets a timeout interval in seconds after which if no data has been received from the server, ssh sends a message through the encrypted channel to request a response from the server. The default is 0, indicating that these messages are not sent to the server. Restriction: This option applies to protocol version 2 only.

tÝI¨: Opening dataset DD:DD01 for write
tÝI¨: Closing dataset //P.PWHSTD55.WHST52.FEDEXTRK - 139380 bytes received, 345
gsÝI¨: Transfer options: clientcp=IBM-1047,lrecl=404,mode=text,mount,recfm=fb,se
tÝI¨: Opening dataset DD:DD01 for write
Write failed: EDC5140I Broken pipe. (errno2=0x76697242)

Site Admin
Posts: 1890
Joined: Thu Jul 29, 2004 12:12 pm

Re: Broken Pipe Error

Post by dovetail » Thu Jan 03, 2019 3:46 pm

This error ("Write failed: EDC5140I Broken pipe. (errno2=0x76697242)"), refers to the pipe connection between Co:Z SFTP and the IBM ssh client process being lost. This would occur if the ssh child process terminated for some reason.

It seems unlikely that ServerAliveInterval would help, since this has to do with retries when nothing is happening on the connection, which is not the case in a Co:Z SFTP batch job.

If this is reproducible, then turn on "-vvv" debug tracing so that ssh prints a trace of what is happening. This might point to the reason why it is failing/terminating.

Post Reply