write failed: Broken pipe


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users write failed: Broken pipe
# 1  
Old 11-19-2011
write failed: Broken pipe

The "write failed: Broken pipe" message is reported by the file sending PC which run my writed network device driver while 500MB or 900MB is sended!

What does the message mean? Does this mean there is a bug in my driver?


li,kunlun

Last edited by liklstar; 11-19-2011 at 03:38 AM..
# 2  
Old 11-19-2011
As a guess: yes. It means something closed one of the TCP sockets before the send operation was complete.
# 3  
Old 11-19-2011
As your guess, Is the "close" operation on the same PC sending file or on the other PC which recieves the sended file?
# 4  
Old 11-19-2011
If there's two-way communication happening, it could be either. Is one end doing all the writing? Which one died?
# 5  
Old 11-19-2011
Hi:

One file sending PC, one file recieving PC, connected by ether net which is used for test. The sending PC use "scp" command to send the data file to the recieving PC and no other sending or recieving occured concurrently. After it send 500MB or 960MB, the error occured on the sending machine : "write failed: Broken pipe"!

li,kunlun

---------- Post updated at 10:02 PM ---------- Previous update was at 09:50 PM ----------

By the way, my writed net device driver is running on the sending PC only!
# 6  
Old 11-21-2011
It doesn't necessarily mean a bad device driver. It could also mean a glitch in the network. But if your two servers are connected by loopback that seems unlikely.
# 7  
Old 11-22-2011
Did you try the verbose mode (scp -v)?
You could also try sending the file using netcat (nc), with verbose mode, on some different port, to see if it goes through, or gives some hint:
On the receiving machine:
Code:
nc -v -l 12345 > recvd.file #will listen on port 12345

Then on sending machine:
Code:
 nc -v <hostIP> 12345  < fileToSend

Although the syntax depends on your version of OS and nc.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

SFTP error between UNIX to iSeries (Write Failed Broken Pipe)

Hi, I am iseries resource and having Issue in one of the sFTP failures between one of my job (Unix --> iSeries). The response to sending machine (Unix) is "Write Failed Broken Pipe". Appreciate any help Available on why this Issue happens, how can we replicate the same, what fixes can... (1 Reply)
Discussion started by: hamelchauhan
1 Replies

2. Shell Programming and Scripting

How to avoid ssh :Write failed: Broken pipe?

Hello, I am trying to run some code on Matlab over ssh . The code takes around 5-6 hours to complete. so after giving the command to run it , I locked my machine and then went off to sleep at night, only to discover in the morning that I get this message : ...Code running, partial results... (1 Reply)
Discussion started by: ajayram
1 Replies

3. UNIX for Dummies Questions & Answers

broken pipe

I know what causes 'broken pipe' errors, but I can't understand why I can get it (only occasionally) with my example: ps -ef | grep "\./ans$" | grep -v grep Basically I'm searching the ps output looking for the process I'm interested in and excluding the process that is grepping for the... (2 Replies)
Discussion started by: fhew
2 Replies

4. Shell Programming and Scripting

Replace pipe with Broken Pipe

Hi All , Is there any way to replace the pipe ( | ) with the broken pipe (0xA6) in unix (1 Reply)
Discussion started by: saj
1 Replies

5. UNIX for Dummies Questions & Answers

echo: write error: Broken pipe ??

I want to try the unix pipe, the command is like this: echo new | find . the standard output of the echo should be "new", then I guess find command will use this output as input to find the file named "new". But the output is all the file names in my current dir, the last line is "echo: write... (5 Replies)
Discussion started by: andrewust
5 Replies

6. Shell Programming and Scripting

broken pipe

hi i am trying to upload a file using ftp protocol, i am facing some problem while uploading "Failedtoupload:SFTREGUP1:FTP_ASCII_MAILBOX21.39.10.856305000:Broken pipe" Can someone explain why it is coming , and the solution . (0 Replies)
Discussion started by: Satyak
0 Replies

7. UNIX and Linux Applications

pipe broken

hi i have a server, and i have a web site and i installed apache in the /usr/local/apache/logs i have a file and i have this problem (32)Broken pipe: core_output_filter: writing data to the network plz help me how i can resolve this plz it's urgent th (1 Reply)
Discussion started by: abir2
1 Replies

8. Linux

pipe broken

hi i have a server, and i have a web site and i installed apache in the /usr/local/apache/logs i have a file and i have this problem (32)Broken pipe: core_output_filter: writing data to the network plz help me how i can resolve this plz it's urgent th (2 Replies)
Discussion started by: abir2
2 Replies

9. UNIX for Advanced & Expert Users

Broken Pipe

Hi I tried to open the man page of sh and piped to `pg`. Normally while reading a file page by page using `pg`, if we wanna quit at the middle of file, we give "q" near the colon mode. Ex1: $cat file1 | pg hi how r u : (page1) now press "return key", it will go to next page yes i ... (1 Reply)
Discussion started by: ramkrix
1 Replies

10. Programming

.cc fopen failed - Broken Pipe

hello.. i make some code with C in freebsd 5.4 and compile it in solaris somehow i succeed compile the program. but when i run it, i got error message "Broken Pipe" i looked out the syntax that that caused this, fp = fopen("file.tmp","r"); does anyone know why, and how to solve this... (3 Replies)
Discussion started by: kuampang
3 Replies
Login or Register to Ask a Question