Socket error(32): broken pipe

Hello,

My BrewPi is up and running and seems to be working very well overall however I am getting one re-occuring issue that is very strange. About once or twice per day I will get the error that I have pasted below. When this happens the web interface says “Cannot receive LCD text from python script”. Occasionally it will flash back to showing temperature data for a while but the “Idle for…” time counter is frozen and then it flashes back to the python script error. I have been able to get it going again by stopping and restarting the script and then refreshing the page (I have to do this several times before it starts working again). This is an annoyance because if I haven’t checked on the web interface in a few hours I get a dead spot in my graph (sample pasted below). Has anyone had this issue and been able to resolve it?

As a disclaimer I am very new to BrewPi and Linux so please be descriptive and patient with me. I really appreciate any help that anyone can give.

ERROR LOG TEXT:
Apr 08 2015 21:52:43 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 484, in
conn.send(json.dumps(cs))
error: [Errno 32] Broken pipe
Apr 08 2015 21:52:43 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 477, in
conn.send(json.dumps(cc))
error: [Errno 32] Broken pipe
Apr 08 2015 21:52:43 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 469, in
conn.send(json.dumps(lcdText))
error: [Errno 32] Broken pipe
Apr 08 2015 21:52:43 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 484, in
conn.send(json.dumps(cs))
error: [Errno 32] Broken pipe
Apr 08 2015 21:52:43 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 486, in
conn.send(json.dumps(cv))
error: [Errno 32] Broken pipe
Apr 08 2015 21:52:43 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 683, in
conn.send(response_str)
error: [Errno 32] Broken pipe
Apr 08 2015 21:53:45 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 484, in
conn.send(json.dumps(cs))
error: [Errno 32] Broken pipe
Apr 08 2015 21:53:45 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 484, in
conn.send(json.dumps(cs))
error: [Errno 32] Broken pipe
Apr 08 2015 21:53:45 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 477, in
conn.send(json.dumps(cc))
error: [Errno 32] Broken pipe
Apr 08 2015 21:53:45 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 469, in
conn.send(json.dumps(lcdText))
error: [Errno 32] Broken pipe
Apr 08 2015 21:53:45 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 486, in
conn.send(json.dumps(cv))
error: [Errno 32] Broken pipe
Apr 08 2015 21:53:45 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 683, in
conn.send(response_str)
error: [Errno 32] Broken pipe
Apr 08 2015 21:54:16 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 469, in
conn.send(json.dumps(lcdText))
error: [Errno 32] Broken pipe
Apr 08 2015 21:54:16 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 469, in
conn.send(json.dumps(lcdText))
error: [Errno 32] Broken pipe
Apr 08 2015 21:54:47 Socket error(32): Broken pipe
Traceback (most recent call last):
File “/home/brewpi/brewpi.py”, line 469, in
conn.send(json.dumps(lcdText))
error: [Errno 32] Broken pipe
Apr 08 2015 21:54:47 stopScript message received on socket. Stopping script and writing dontrunfile to prevent automatic restart
Apr 08 2015 21:55:05 Notification: Script started for beer ‘009_DeadRingerIPA’
Apr 08 2015 21:55:17 Found BrewPi v0.2.4, running commit 2a6f7f05 build 40, running on a Arduino Uno with a revC shield on port /dev/ttyACM

Are you using Safari?

Thanks Elco.

I’m using chrome on my phone and desktop.

Not sure if more background information would be helpful but I think I also have a knockoff Arduino as we discussed in this topic: Cannot upload Hex Code to my Arduino [Solved]

Broken Pipe errors are errors about the socket between script and web ui. I doubt it is Arduino related. Perhaps an underpowered power supply or thin USB cable is causing WiFi to be unreliable?

Thanks Elco.

Sorry it has taken so long to respond to your suggestions I have been too busy to troubleshoot lately.

The USB cord running between the Pi and Arduino was forced to make a tight turn to fit inside my project box. I replaced the cord and rerouted it in a better fashion and the problem has gone away completely. Thanks again for the advice!