ERROR Could not bind to (u'0.0.0.0', 8000)
when i run command ajenti-panel i get :
ERROR Could not bind to (u'0.0.0.0', 8000)
at the end i tried numerous suggestion from forums but no dice. please help any sugestions
Answer
sudo netstat -tlnp | grep 8000
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTENBtw, for those who are looking, I'm on CentOS 7 minimum install. To get netstat to work:
$ sudo yum install net-toolsDid I miss anything? I'm using the latest version as of today (1.2.22.3). I'd hate to start another topic. I'd be making a mess for helpseekers. Apache seems to be running so I should be close.
Much appreciated in advance!
$ sudo netstat -p | grep 8000 $ netstat -p | grep 8000None of them replied anything. I previously tried
$ nmap -sT -O localhost 8000/tcp open http-altIs that of any help?
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 18538/python
Starting server on (u'0.0.0.0', 8000) SSL enabled: /etc/ajenti/ajenti.pem Starting new HTTP connection (1): meta.ajenti.orgI'm sure I've got ways to go, but at least this one is good (still "This webpage is not available". However, you pushed me the right direction. Thanks! If more issues appears, I'll make sure to put it in the right topic.
firewall-cmd —permanent —zone=public —add-port=8000/tcp
firewall-cmd —reload
firewall-cmd --permanent --zone=public --add-port=8000/tcp firewall-cmd --reloadThis should be it. Not that last post. My apologies.
Please help, the same problem:
I have the same host - ISPconfig
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gevent/greenlet.py", line 534, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/gevent/baseserver.py", line 25, in _handle_and_close_when_done
return handle(*args_tuple)
File "/usr/lib/python2.7/dist-packages/gevent/server.py", line 127, in wrap_socket_and_handle
return self.handle(ssl_socket, address)
File "/usr/lib/python2.7/dist-packages/socketio/server.py", line 124, in handle
handler.handle()
File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 443, in handle
result = self.handle_one_request()
File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 658, in handle_one_request
self.handle_one_response()
File "/usr/lib/pymodules/python2.7/ajenti/http.py", line 25, in handle_one_response
return SocketIOHandler.handle_one_response(self)
File "/usr/lib/python2.7/dist-packages/socketio/handler.py", line 122, in handle_one_response
return self._do_handshake(handshake_tokens.groupdict())
File "/usr/lib/python2.7/dist-packages/socketio/handler.py", line 64, in _do_handshake
self.write_smart(data)
File "/usr/lib/python2.7/dist-packages/socketio/handler.py", line 88, in write_smart
self.write_plain_result(data)
File "/usr/lib/python2.7/dist-packages/socketio/handler.py", line 78, in write_plain_result
("Content-Type", "text/plain"),
File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 778, in start_response
raise UnicodeError("The value must be a native string", header, value)
UnicodeError: ('The value must be a native string', 'Access-Control-Max-Age', 3600)
failed with UnicodeError
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/gevent/greenlet.py", line 534, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/lib/python2.7/dist-packages/gevent/baseserver.py", line 25, in _handle_and_close_when_done
return handle(*args_tuple)
File "/usr/lib/python2.7/dist-packages/gevent/server.py", line 127, in wrap_socket_and_handle
return self.handle(ssl_socket, address)
File "/usr/lib/python2.7/dist-packages/socketio/server.py", line 124, in handle
handler.handle()
File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 443, in handle
result = self.handle_one_request()
File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 658, in handle_one_request
self.handle_one_response()
File "/usr/lib/pymodules/python2.7/ajenti/http.py", line 25, in handle_one_response
return SocketIOHandler.handle_one_response(self)
File "/usr/lib/python2.7/dist-packages/socketio/handler.py", line 122, in handle_one_response
return self._do_handshake(handshake_tokens.groupdict())
File "/usr/lib/python2.7/dist-packages/socketio/handler.py", line 64, in _do_handshake
self.write_smart(data)
File "/usr/lib/python2.7/dist-packages/socketio/handler.py", line 88, in write_smart
self.write_plain_result(data)
File "/usr/lib/python2.7/dist-packages/socketio/handler.py", line 78, in write_plain_result
("Content-Type", "text/plain"),
File "/usr/lib/python2.7/dist-packages/gevent/pywsgi.py", line 778, in start_response
raise UnicodeError("The value must be a native string", header, value)
UnicodeError: ('The value must be a native string', 'Access-Control-Max-Age', 3600)
failed with UnicodeError
Debian 9/10 you need install:
apt-get install python-pip && pip install gevent==1.1b4 && service ajenti restart && reboot
Customer support service by UserEcho
sudo netstat -tlnp | grep 8000