wildfoundry / specialprojects-public

The Unlicense
2 stars 4 forks source link

I have this error when i try to run sudo python server.py TermPassword #1

Open Alefunshow opened 5 years ago

Alefunshow commented 5 years ago

Traceback (most recent call last): File "server.py", line 102, in <module> app.run(host=HOST, port=PORT) File "/usr/lib/python2.7/dist-packages/flask/app.py", line 841, in run run_simple(host, port, self, **options) File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 708, in run_simple inner() File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 670, in inner fd=fd) File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 564, in make_server passthrough_errors, ssl_context, fd=fd) File "/usr/lib/python2.7/dist-packages/werkzeug/serving.py", line 476, in __init__ HTTPServer.__init__(self, (host, int(port)), handler) File "/usr/lib/python2.7/SocketServer.py", line 417, in __init__ self.server_bind() File "/usr/lib/python2.7/BaseHTTPServer.py", line 108, in server_bind SocketServer.TCPServer.server_bind(self) File "/usr/lib/python2.7/SocketServer.py", line 431, in server_bind self.socket.bind(self.server_address) File "/usr/lib/python2.7/socket.py", line 228, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 98] Address already in use

swap2ag commented 2 years ago

You probably have some other server already running. For me, nginx server was running as I had used the Dataplicity. To shut down the nginx server, use- sudo systemctl stop nginx