Hello community,
i am getting this error
<textarea cols="50" rows="10" name="code" readonly>Traceback (most recent call last):
File "/home/vini/frappe-bench/apps/frappe/frappe/middlewares.py", line 15, in __call__
return super(StaticDataMiddleware, self).__call__(environ, start_response)
File "/home/vini/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 766, in __call__
return self.app(environ, start_response)
File "/home/vini/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 766, in __call__
return self.app(environ, start_response)
File "/home/vini/frappe-bench/env/lib/python2.7/site-packages/werkzeug/local.py", line 228, in application
return ClosingIterator(app(environ, start_response), self.cleanup)
File "/home/vini/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wrappers.py", line 308, in application
resp = f(*args[:-2] + (request,))
File "/home/vini/frappe-bench/apps/frappe/frappe/app.py", line 88, in application
response = handle_exception(e)
File "/home/vini/frappe-bench/apps/frappe/frappe/app.py", line 146, in handle_exception
response = frappe.utils.response.report_error(http_status_code)
File "/home/vini/frappe-bench/apps/frappe/frappe/utils/response.py", line 29, in report_error
frappe.errprint(frappe.utils.get_traceback())
File "/home/vini/frappe-bench/apps/frappe/frappe/__init__.py", line 247, in errprint
print(msg.encode('utf-8'))
IOError: [Errno 32] Broken pipe</textarea>
i don’t get proper error message just show this error message everytime
if i restart server and follow same steps then showing proper message and after sometime same error message appear like above screen.
my server configuration
72GB RAM
2TB HD
Dell R710 Model
CentOs
It’s because of your internet connection was lost while bench start command or you didn’t resume your ssh session in terminal.
It’s ssh connection issue not with ERPNext
You can fix this issue using:
ssh
To Fix the current issue use:
sudo ps -aux | grep bench command in your terminal and kill all the listed process using process id
To kill the process use:
sudo kill -9 <int-process-id>
9 parameter for forcing to kill the process.
Thanks
Navdeep
2 Likes
navdeepghai:
command
This process is for bench start when we lost ssh connection but not for broken pipe it is still showing same message when connection lost
Yeah, Pipe ssh lost cause the python pipe broken. It’s happened with me many times.
You need to restart the server or kill the bench process and try again with bench start command.
To verify it’s really issue pipe broken follow the below steps:
execute bench start command again. If it’s end with port number <8000> or is already in used then I am sure it’s cause by ssh connection lost only.
Also try below command and verify the redis, nodejs, python port number:
sudo netstat -ntlp:
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1271/sshd
tcp 0 0 127.0.0.1:11000 0.0.0.0:* LISTEN 8628/redis-server 1
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 1439/nginx -g daemo
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 8632/python
tcp 0 0 127.0.0.1:12000 0.0.0.0:* LISTEN 8601/redis-server 1
tcp 0 0 127.0.0.1:13000 0.0.0.0:* LISTEN 8624/redis-server 1
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 5257/mysqld
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 1335/redis-server 1
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1439/nginx -g daemo
tcp6 0 0 :::22 :::* LISTEN 1271/sshd
tcp6 0 0 :::6787 :::* LISTEN 8712/node
tcp6 0 0 :::9000 :::* LISTEN 8616/node
Can you show me output of sudo netstat -ntlp and sudo ps -aux | grep bench commands?
yes i understand i already mention above but this is not practical solution. Non technical user not able to follow everytime this process.
I got those issue after installing Python 3. I don’t know what to do now nothing work anymore
adam26d
November 26, 2021, 5:49am
8
Based on the suggested issue on this thread. A reboot helped me.
USE this command
it’s remove the error
bench destroy-all-sessions