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
0
votes
1 answer

Facing Broken Pipe error when trying to run the next(iter(train_data_loader)). I'm running the code in local jupyter notebook

I'm facing BrokenPipeError when I'm trying to run sentiment analysis with hugging face. It's returning [Error No] 32 Broken Pipe. Is there any way to rewrite the next(iter(train_data_loader)) code? Link with total code…
Nithin Reddy
  • 580
  • 2
  • 8
  • 18
0
votes
0 answers

I'm facing BrokenPipeError when I'm trying to run sentiment analysis with hugging face

I'm facing BrokenPipeError when I'm trying to run sentiment analysis with hugging face. It's returning [Error No] 32 Broken Pipe. Link with total code 'https://colab.research.google.com/drive/1wBXKa-gkbSPPk-o7XdwixcGk7gSHRMas?usp=sharing' The code…
0
votes
1 answer

Google Cloud functions + SQL Broken Pipe error

I have various Google Cloud functions which are writing and reading to a Cloud SQL database (MySQL). The processes work however when the functions happen to run at the same time I am getting a Broken pipe error. I am using SQLAlchemy with Python,…
0
votes
1 answer

Python/Flask Unittest, suppress Broken Pipe Error 32

When running unittests I often get error: [Errno 32] Broken pipe. It seems to be a harmless error that happens during testing, but I haven't been able to prevent or otherwise suppress it. Some things that I have tried include changing SIGPIPE…
thekthuser
  • 706
  • 1
  • 12
  • 28
0
votes
1 answer

Sqoop Import Job failed while extracting data from psql

I am running a sqoop job on google cloud to import data from psql database after applying joins on 3 tables. However, sqoop job is getting failed with the below mentioned error, though it imports the data from the table within 15min but gets failed…
0
votes
1 answer

How can i solve Broken Pipe Problem MQTT Client

When i'm trying to publish some messages to a broker i got the following error: Exception in thread Thread-4: Traceback (most recent call last): File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File…
RiyadhG
  • 1
  • 2
0
votes
1 answer

Shell TAR files from list or using pipe

I was trying to pipe a TAR after listing a bunch of files. First I tried to list my files according to their date. Like this: ll /home/dan/test/dir*/file* | grep 2014 -rw-r--r-- 1 root root 0 Jan 2 2014 /home/dan/test/dir1/file1_2014_1 -rw-r--r--…
markfree
  • 21
  • 1
  • 6
0
votes
1 answer

How to increase heap memory of elasticsearch in Centos 7?

When we run elasticsearch in server then we face Broken pipe issue in elasticsearch. "org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe"
Birendra Rawat
  • 1,307
  • 1
  • 8
  • 8
0
votes
0 answers

Named Pipes in C loss of information

I'm using named pipes in C to transfer struct from one program to the other. When I just execute the programs as they are, I realized that on the reading side I'm not reading everything that I'm supposed to read. It seems that either reading or…
gisil
  • 71
  • 1
  • 4
0
votes
1 answer

android: java.net.SocketException: Broken pipe LG

I'm developing an application for Android 2.2 and LG Black devices. When I run the application on my LG device I get the following SocketException, which is never happen on other devices! Broken pipe java.net.SocketException: Broken pipe at…
user743860
  • 1
  • 1
  • 1
0
votes
1 answer

Matlab Server with python client on raspberry pi BrokenPipeError: [Errno 32] Broken pipe

I am trying to gather data from sensors connected to a raspberry pi and send them over to my laptop for some processing. I have written a very basic matlab server (for on my laptop) t = tcpip('127.0.0.1', 42069, 'NetworkRole',…
Sami Wood
  • 305
  • 3
  • 10
0
votes
0 answers

Multiprocessing queue closing breaks run with BrokenPipe: Errno 32

Cannot realize why this simple code putting 1,2,3 into queue give me as many such errors (repeat it here as well https://repl.it/@coalesce/Where-s-Waldo) File "/usr/local/lib/python3.7/multiprocessing/connection.py", line 368, in _send n =…
Dima Fomin
  • 1,228
  • 1
  • 16
  • 27
0
votes
0 answers

Infinite BrokenPipeError's when interrupting a custom multiprocessing pool

I like the default python multiprocessing.Pool, but it's still a pain that it isn't easy to show the current progress being made during the pool's execution. In leui of that, I attempted to create my own, custom multiprocess pool mapper, and it…
Maurdekye
  • 3,597
  • 5
  • 26
  • 43
0
votes
1 answer

How to prevent BrokenPipeErrors after receiving a SIGINT while using process shared objects in Python?

This Python program: import concurrent.futures import multiprocessing import time class A: def __init__(self): self.event = multiprocessing.Manager().Event() def start(self): try: while True: if…
Géry Ogam
  • 6,336
  • 4
  • 38
  • 67
0
votes
0 answers

Unable to send post request into a DJANGO API

I currentrly try to send a file through a post requests inside a DJANGO api. The sending is a failure it seems to be a lib problem but none of my actions worked. I tried to update all my lib. The connection is aborted. Actually i'm lost and I don't…
alexjav83
  • 11
  • 3