Questions tagged [broken-pipe]

Broken pipe is a general term for when a process is unable to output to a socket or pipe due to no process reading from the other end of the pipe.

Broken pipe is a condition in programming where a process is unable to direct output to either a pipe or socket due to the connection being closed by a peer.

Every library function that returns this error code also generates a SIGPIPE signal; this signal terminates the program if not handled or blocked.

More info in the libc documentation

238 questions
2
votes
0 answers

How to resolve broken pipe issue in Hive streaming with Python?

I am facing Broken pipe issue in Hive while streaming larger number of rows (33000) into python from a single table. Same script works fine till 7656 number of rows. 0: jdbc:hive2://xxx.xx.xxx.xxxx:10000> insert overwrite table…
user3150024
  • 139
  • 3
  • 14
2
votes
1 answer

Getting error "cat: write error: Broken pipe" only when running bash script non-interactively

I wrote a bash script where I define a variable like this: var=$(cat $file_path | head -n $var2 | tail -n 1 | cut -f1) Where $file_path simply contains the path to a file and $var2 is an int, e.g., 1 or 2. The variable is therefore assigned the…
arielle
  • 915
  • 1
  • 12
  • 29
2
votes
1 answer

How can I set Socket write timout in java?

I have a problem with handling socket in java. I am running a TCP server with multiple client connections. For performance reason, I used a simple thread pool to handle packets. Please see code below public enum LazyWorkCenter { …
BinaryProbe
  • 273
  • 4
  • 12
2
votes
1 answer

Check for Broken Pipe only when IOException is thrown

When writing to an OutputStream it will throw a IOException exception if the remote machine down, or has disconnected. Now, I want to call a specific method when only (and only) the pipe is broken. The problem is that IOException does not have a…
Emad Omar
  • 729
  • 9
  • 23
2
votes
1 answer

Broken pipe error in rails with memcached

I keep running into this error MemCacheError (Broken pipe): Broken pipe on my Rails app and I can't figure out why. When I access memcached via Rails.cache in my controller, the first 1 or 2 read/writes always seems to throw the broken pipe error.…
AdamB
  • 3,101
  • 4
  • 34
  • 44
2
votes
1 answer

login authentication using ajax call to flask server(Broken pipe)

I am trying to authenticate users in a web application using ajax call to Python server(Flask), which in turn calls the main server.I am able to pass the credentials to the Flask server and do the authentication.But after the authentication,it…
user2284140
  • 197
  • 1
  • 4
  • 18
2
votes
1 answer

Broken Pipe Error on python script with squid

I am running a simple python script to log the accessed url using squid url_rewriter_program. However every time it runs, rewriter crashes with broken pipe error at sys.stdout.flush(). Please suggest a specific solution. python code is: import…
Ashish Saini
  • 117
  • 6
2
votes
2 answers

Broken Pipe in RabbitMQ ConnectionFactory.newConnection()

Rarely, when under more load than usual my RabbitMQ application starts returning SocketException: Broken pipe (and basically doesn't process any further messages). The system is using the RPC pattern, with workers listening on a few predefined…
John M
  • 1,469
  • 17
  • 41
2
votes
0 answers

Windows: What happens to data in a pipe when writer process exits?

The setup: process A creates process B and correctly attaches stdin, stdout, stderr to anonymous pipes between the processes. process B generates a small amount of data over stdout, then terminates. process A was busy and didn't get a chance to…
2
votes
2 answers

Django collectstatic not working with django-pipeline and yui-compressor

I've installed django-pipeline on my Django 1.4.1 application under a virtualenv but when I run python manage.py collectstatic, I get: Traceback (most recent call last): File "./manage.py", line 11, in execute_manager(settings) File…
yliharma
  • 83
  • 1
  • 9
2
votes
1 answer

Django: Random function call causes pipe break

I have "document_delete" in my view, which calls "is_draft owner": This is the "is_draft_owner": def is_draft_owner(id = None, user = None): if id and user: return user.pk is Draft.objects.get(id = id).user_id else: return…
sinθ
  • 11,093
  • 25
  • 85
  • 121
2
votes
2 answers

Calling git from PHP: Broken pipe error

I have the following PHP script: #!/usr/bin/php
D. Evans
  • 3,242
  • 22
  • 23
1
vote
2 answers

Error encountered when setup Github on Mac "Write failed: Broken pipe"

I have been facing this annoying error when trying to setup Github on Mac, OS version is Lion. Basically, I followed the steps as mentioned at this URL: http://help.github.com/mac-set-up-git/ I always stuck at the step of executing this command "ssh…
Son
  • 11
  • 2
  • 4
1
vote
2 answers

LOG4J conflicts JBOSS&Java program

I've got a java server launched from a jar that uses log4j (RollingFile and Console appender). Alone: no problem it works. I've got a JBoss server using log4j (default install). Everything is ok when it runs alone. When I start my Java server first…
Michael Laffargue
  • 10,116
  • 6
  • 42
  • 76
1
vote
2 answers

Why does initializing a file pointer inside a try block cause a broken pipe?

I have a bash script which I'm reading the results from in my program. Ptr is a simple popen() wrapper. bool getResult(const char* path){ Ptr f(path); char buf[1024]; while (fgets(buf, sizeof(buf), f) == 0) { if(errno == EINTR) …
fredley
  • 32,953
  • 42
  • 145
  • 236