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
11
votes
4 answers

How to avoid a Broken Pipe error when printing a large amount of formatted data?

I am trying to print a list of tuples formatted in my stdout. For this, I use the str.format method. Everything works fine, but when I pipe the output to see the first lines using the head command a IOError occurs. Here is my code: # creating the…
Thanasis Petsas
  • 4,378
  • 5
  • 31
  • 57
10
votes
1 answer

Airflow Logs BrokenPipeException

I'm using a clustered Airflow environment where I have four AWS ec2-instances for the servers. ec2-instances Server 1: Webserver, Scheduler, Redis Queue, PostgreSQL Database Server 2: Webserver Server 3: Worker Server 4: Worker My setup has been…
Kyle Bridenstine
  • 6,055
  • 11
  • 62
  • 100
9
votes
1 answer

bash error in sort "sort: write failed: standard output: Broken pipe"

When I run this script I recieve an error message with: "sort: write failed: standard output: Broken pipe" If someone can help me it would be awesome, I am going crazy with this error the input file is a list of files that all contain DNA sequences…
Dani
  • 91
  • 1
  • 1
  • 6
9
votes
1 answer

Django collecstatic boto broken pipe on large file upload

I am trying to upload the static files to my S3 bucket with collectstatic but i'm getting a broken pipe error with a 700k javascript file, this is the error Copying…
Luis Cruz
  • 159
  • 1
  • 11
8
votes
3 answers

Writing to a socket and handling broken pipes

I have some code in PHP that connects to a socket. I've been getting a broken pipe intermittently while writing to it. The problems seems to go away if write to the pipe again. I'm wondering what's required (the safest way) to recover from it. I'm…
Ruan Mendes
  • 90,375
  • 31
  • 153
  • 217
8
votes
2 answers

git push fails - fatal: the remote end hung up unexpectedly

I created a git repo locally. When I try to push to github, I get: Warning: Permanently added the RSA host key for IP address '140.82.112.4' to the list of known hosts. Enumerating objects: 47, done. Counting objects: 100% (47/47), done. Delta…
crwils
  • 631
  • 1
  • 7
  • 11
8
votes
1 answer

Gunicorn--how to kill a worker if the client closes their connection?

I've got a flask app running under gunicorn which handles client requests via REST api with an extremely CPU-intensive backend; some requests take minutes to respond to. But that creates its own problem. If I, say, run a little script to make a…
vputz
  • 163
  • 8
8
votes
0 answers

Spring websocket heartbeat Broken pipe IOException

I'm using spring-boot-starter-websocket with Spring Boot 1.5.3.RELEASE. I get tons of logs when sockjs is trying to perform a heartbeat task. Somehow the connection is lost in the way. This article says its closed (according to JIRA), but I'm still…
8
votes
3 answers

Ruby on Rails Errno::EPIPE Broken pipe

I know there is a lot of people posting this online but I haven't been able to find a solution. I receive Errno::EPIPE after my website hasn't been accessed for > 6-8 hours. I read about it maybe having to do with the ruby-mysql driver, but havent…
BU_Number20
  • 171
  • 1
  • 5
8
votes
2 answers

PDO::__construct(): send of 108 bytes failed with errno=32 Broken pipe

When I log into my command line mysql I can no longer access any PHP application that requires a database connection. This happens every time. The steps to cause the issue on my localhost: Command line: mysql -u root (no password for…
chadpeppers
  • 2,057
  • 1
  • 20
  • 27
7
votes
1 answer

Simple word count rust program outputs valid stdout but panicks when piped to head program with specific content

I have this trace in rust : thread 'main' panicked at 'failed printing to stdout: Broken pipe (os error 32)', library/std/src/io/stdio.rs:993:9 stack backtrace: 0: 0x559ffa959dc0 -…
utopman
  • 581
  • 4
  • 13
7
votes
2 answers

error: [Errno 32] Broken pipe django

Sometimes when i look at my terminal, i am seeing the below error, can anyone please let me know y it is displaying and how to avoid it ? Exception happened during processing of request from ('127.0.0.1', 39444) Traceback (most recent call last): …
Shiva Krishna Bavandla
  • 25,548
  • 75
  • 193
  • 313
6
votes
2 answers

org.mortbay.jetty.EofException gets thrown when writing to response

I am using jetty 6.1.23 within eclipse RAP (Rich Ajax Platform 1.3.2) and Java version 1.5. I am sending a PNG image to the browser. These are pieces of code that are causing trouble: server…
Vladimir
  • 61
  • 1
  • 1
  • 2
6
votes
2 answers

Python and FIFOs

I was trying to understand FIFOs using Python under linux and I found a strange behavior i don't understand. The following is fifoserver.py import sys import time def readline(f): s = f.readline() while s == "": time.sleep(0.0001) …
6502
  • 112,025
  • 15
  • 165
  • 265
6
votes
0 answers

Handling broken pipe exception in @ControllerAdvice does not work as well

Good day. I know "broken pipe" is not an critical exception and it is mean client did not wait response from server. And i know there is many similar question but i can not find answer on s.o. I want to keep my logs clear so i found solution. And i…
DamienMiheev
  • 998
  • 8
  • 31
1
2
3
15 16