OSError: [Errno 98] Address already in use

549 views
Skip to first unread message

Kurt Rath

unread,
Apr 11, 2018, 6:07:17 PM4/11/18
to WebIOPi
What am I doing wrong?

CODE :

2018-04-11 22:02:28 - WebIOPi - INFO - Starting WebIOPi/0.7.1/Python3.5
2018-04-11 22:02:28 - WebIOPi - INFO - GPIO - Native mapped to REST API /GPIO
2018-04-11 22:02:28 - WebIOPi - WARNING - Access unprotected
2018-04-11 22:02:28 - WebIOPi - ERROR - [Errno 98] Address already in use
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/WebIOPi-0.7.1-py3.5-linux-armv7l.egg/webiopi/protocols/http.py", line 45, in __init__
    BaseHTTPServer.HTTPServer.__init__(self, ("", port), HTTPHandler)
  File "/usr/lib/python3.5/socketserver.py", line 440, in __init__
    self.server_bind()
  File "/usr/lib/python3.5/http/server.py", line 138, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/lib/python3.5/socketserver.py", line 454, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/WebIOPi-0.7.1-py3.5-linux-armv7l.egg/webiopi/__main__.py", line 75, in <module>
    main(sys.argv)
  File "/usr/local/lib/python3.5/dist-packages/WebIOPi-0.7.1-py3.5-linux-armv7l.egg/webiopi/__main__.py", line 69, in main
    server = Server(port=port, configfile=configfile, scriptfile=scriptfile)
  File "/usr/local/lib/python3.5/dist-packages/WebIOPi-0.7.1-py3.5-linux-armv7l.egg/webiopi/server/__init__.py", line 123, in __init__
    self.http_server = http.HTTPServer(self.host, http_port, self.restHandler, context, docroot, index, auth, realm)
  File "/usr/local/lib/python3.5/dist-packages/WebIOPi-0.7.1-py3.5-linux-armv7l.egg/webiopi/protocols/http.py", line 48, in __init__
    BaseHTTPServer.HTTPServer.__init__(self, ("", port), HTTPHandler)
  File "/usr/lib/python3.5/socketserver.py", line 440, in __init__
    self.server_bind()
  File "/usr/lib/python3.5/http/server.py", line 138, in server_bind
    socketserver.TCPServer.server_bind(self)
  File "/usr/lib/python3.5/socketserver.py", line 454, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use



I disabled the Ipv6

Tried :     sudo update-rc.d webiopi remove sudo reboot

             sudo /etc/init.d/webiopi start

Re-installed

I can't get it working. 

Any ideas? 


Thank you in advance!



Rich_lyd

unread,
Apr 14, 2018, 2:43:10 AM4/14/18
to WebIOPi
Hi it's saying you got webiopi running in the background already...just reboot pi...
Reply all
Reply to author
Forward
0 new messages