OpenVoiceOS / ovos-gui

ovos-core metapackage for gui daemon
Apache License 2.0
1 stars 2 forks source link

"OSError: [Errno 98] Address already in use" when restarted too fast #24

Closed goldyfruit closed 11 months ago

goldyfruit commented 1 year ago
2023-08-01 14:56:18.677 - gui - ovos_gui.namespace:_get_active_gui_extension:111 - INFO - Got extension from config: generic
Exception in thread Thread-2 (_initialize_http_server):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ovos/.venv/lib/python3.11/site-packages/ovos_gui/gui_file_server.py", line 45, in _initialize_http_server
    http_server = socketserver.TCPServer(("", port), handler)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/socketserver.py", line 456, in __init__
    self.server_bind()
  File "/usr/lib/python3.11/socketserver.py", line 472, in server_bind
    self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
[I 230801 14:56:19 web:2344] 101 GET /gui (127.0.0.1) 0.40ms
2023-08-01 14:56:19.352 - gui - ovos_gui.bus:open:117 - INFO - New Connection opened!