broken-pipe

error: [Errno 32] Broken pipe

烂漫一生 提交于 2019-11-28 10:56:26
I am working on a Django project. All went well till I created an Ajax request to send values from the html page to the backend (views.py). When I send the data using Ajax, I am able to view the values being passed to views.py, and it even reaches the render_to_response method and displays my page, but throws the broken pipe error in the terminal. I don't see any kind of disruption to the program, but I wanted to know if there is a way to prevent this error from occurring. I checked the other responses. But no luck so far. When I try to hit submit again on the refreshed page, I get this

Airflow Logs BrokenPipeException

社会主义新天地 提交于 2019-11-28 07:17:35
问题 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 working perfectly fine for three months now but sporadically about once a week I get a Broken Pipe Exception when Airflow is attempting to log something. *** Log file isn't local. *** Fetching here: http://ip-1-2-3-4:8793/log/foobar/task_1/2018-07

Django + WebKit = Broken pipe

喜夏-厌秋 提交于 2019-11-27 20:28:26
I'm running the Django 1.2 development server and I get these Broken Pipe error messages whenever I load a page from it with Chrome or Safari. My co-worker is getting the error as well when he loads a page from his dev server. We don't have these errors when using Opera or Firefox. Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/core/servers/basehttp.py", line 281, in run self.finish_response() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/django/core/servers/basehttp.py", line

error: [Errno 32] Broken pipe

╄→尐↘猪︶ㄣ 提交于 2019-11-27 03:55:01
问题 I am working on a Django project. All went well till I created an Ajax request to send values from the html page to the backend (views.py). When I send the data using Ajax, I am able to view the values being passed to views.py, and it even reaches the render_to_response method and displays my page, but throws the broken pipe error in the terminal. I don't see any kind of disruption to the program, but I wanted to know if there is a way to prevent this error from occurring. I checked the other

Django Broken pipe in Debug mode

被刻印的时光 ゝ 提交于 2019-11-27 00:17:47
I have django 1.3 on the remote server behind Nginx. If I run django with apache + mod_wsgi, I can watch errors in apache log files. It's ok but I'd like to have in console. If I run django own development server, I get errors with stacktrace in console only when DEBUG = False. In DEBUG mode console outputs Exception happened during processing of request from (..., ...) Traceback (most recent call last): File "/usr/local/python/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock self.process_request(request, client_address) File "/usr/local/python/lib/python2.7/SocketServer.py

What causes the Broken Pipe Error?

冷暖自知 提交于 2019-11-26 15:59:00
I know that broken pipe error is thrown when the socket on the peer side is closed. But, in my test I have noted that an immediate 'send' call on this side when the peer side is closed doesn't always lead to a broken pipe error. E.g.: After closing the socket on peer side (I have tried clean closing by calling close and also abnormal closing by killing the peer), if I try to send 40 bytes, then I don't get a broken pipe, but, if I try to send 40000 bytes then it immediately gives broken pipe error. What exactly causes broken pipe and can it's behavior be predicted? It can take time for the

How to handle a broken pipe (SIGPIPE) in python?

孤者浪人 提交于 2019-11-26 15:52:27
I've written a simple multi-threaded game server in python that creates a new thread for each client connection. I'm finding that every now and then, the server will crash because of a broken-pipe/SIGPIPE error. I'm pretty sure it is happening when the program tries to send a response back to a client that is no longer present. What is a good way to deal with this? My preferred resolution would simply close the server-side connection to the client and move on, rather than exit the entire program. PS: This question/answer deals with the problem in a generic way; how specifically should I solve

How to handle a broken pipe (SIGPIPE) in python?

[亡魂溺海] 提交于 2019-11-26 04:11:51
问题 I\'ve written a simple multi-threaded game server in python that creates a new thread for each client connection. I\'m finding that every now and then, the server will crash because of a broken-pipe/SIGPIPE error. I\'m pretty sure it is happening when the program tries to send a response back to a client that is no longer present. What is a good way to deal with this? My preferred resolution would simply close the server-side connection to the client and move on, rather than exit the entire

How to prevent SIGPIPEs (or handle them properly)

爱⌒轻易说出口 提交于 2019-11-25 23:20:34
问题 I have a small server program that accepts connections on a TCP or local UNIX socket, reads a simple command and, depending on the command, sends a reply. The problem is that the client may have no interest in the answer sometimes and exits early, so writing to that socket will cause a SIGPIPE and make my server crash. What\'s the best practice to prevent the crash here? Is there a way to check if the other side of the line is still reading? (select() doesn\'t seem to work here as it always