Closed stu1811 closed 8 months ago
Use http://192.168.42.201 or https://192.168.42.201
It's used for determining if ws or wss is used in order to connect to the web socket.
I updated the config file per your suggestion to host: http://192.168.42.201
Edit: My unraid password uses special character. I tried putting quotes around the field but it didn't help.
Edit2: I looked at the code and found the error. ssl: false
should be ssl: False
in your config example.
2024-03-28 11:09:41,540 [INFO] [Tower] Connecting to mqtt server...
2024-03-28 11:09:41,543 [INFO] [Tower] Successfully connected to mqtt server
2024-03-28 11:09:41,544 [INFO] [Tower] Connecting to unraid...
2024-03-28 11:09:41,795 [ERROR] [Tower] Failed to connect to unraid due to a timeout or connection issue...
2024-03-28 11:10:11,797 [INFO] [Tower] Connecting to unraid...
2024-03-28 11:10:12,000 [ERROR] [Tower] Failed to connect to unraid due to a timeout or connection issue...
Traceback (most recent call last):
File "/app/main.py", line 286, in <module>
loop.run_forever()
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 601, in run_forever
self._run_once()
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1869, in _run_once
event_list = self._selector.select(timeout)
File "/usr/local/lib/python3.9/selectors.py", line 469, in select
fd_event_list = self._selector.poll(timeout, max_ev)
File "/app/utils.py", line 29, in handle_sigterm
raise KeyboardInterrupt()
KeyboardInterrupt
2024-03-28 11:11:23,571 [INFO] [Tower] Connecting to mqtt server...
2024-03-28 11:11:23,578 [INFO] [Tower] Successfully connected to mqtt server
2024-03-28 11:11:23,578 [INFO] [Tower] Connecting to unraid...
2024-03-28 11:11:23,633 [ERROR] [Tower] Failed to connect to unraid due to a timeout or connection issue...
I updated the config file per your suggestion to
host: http://192.168.42.201
Edit: My unraid password uses special character. I tried putting quotes around the field but it didn't help.
Edit2: I looked at the code and found the error.
ssl: false
should bessl: False
in your config example.2024-03-28 11:09:41,540 [INFO] [Tower] Connecting to mqtt server... 2024-03-28 11:09:41,543 [INFO] [Tower] Successfully connected to mqtt server 2024-03-28 11:09:41,544 [INFO] [Tower] Connecting to unraid... 2024-03-28 11:09:41,795 [ERROR] [Tower] Failed to connect to unraid due to a timeout or connection issue... 2024-03-28 11:10:11,797 [INFO] [Tower] Connecting to unraid... 2024-03-28 11:10:12,000 [ERROR] [Tower] Failed to connect to unraid due to a timeout or connection issue... Traceback (most recent call last): File "/app/main.py", line 286, in <module> loop.run_forever() File "/usr/local/lib/python3.9/asyncio/base_events.py", line 601, in run_forever self._run_once() File "/usr/local/lib/python3.9/asyncio/base_events.py", line 1869, in _run_once event_list = self._selector.select(timeout) File "/usr/local/lib/python3.9/selectors.py", line 469, in select fd_event_list = self._selector.poll(timeout, max_ev) File "/app/utils.py", line 29, in handle_sigterm raise KeyboardInterrupt() KeyboardInterrupt 2024-03-28 11:11:23,571 [INFO] [Tower] Connecting to mqtt server... 2024-03-28 11:11:23,578 [INFO] [Tower] Successfully connected to mqtt server 2024-03-28 11:11:23,578 [INFO] [Tower] Connecting to unraid... 2024-03-28 11:11:23,633 [ERROR] [Tower] Failed to connect to unraid due to a timeout or connection issue...
Same issue even after implementing all the things suggested to you Has something changed?
Here is a snippet from the docker logs. I'm running unraid 6.12.6.
Sanitized config file