Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no connection to juicebox => JPP stopps #117

Open
BeneWilh opened this issue Nov 19, 2024 · 0 comments
Open

no connection to juicebox => JPP stopps #117

BeneWilh opened this issue Nov 19, 2024 · 0 comments

Comments

@BeneWilh
Copy link

as soon as a juicebox is not via telnet available JPP stopps with error:

2024-11-19 08:53:43  ERROR     [__main__] A JuicePass Proxy task failed: OSError: [Errno 113] Connect call failed ('192.168.178.27', 2000)
Traceback (most recent call last):
  File "/home/juice/juicepassproxy/juicepassproxy.py", line 585, in main
    await asyncio.gather(
  File "/home/juice/juicepassproxy/juicebox_udpcupdater.py", line 42, in start
    await self._connect()
  File "/home/juice/juicepassproxy/juicebox_udpcupdater.py", line 67, in _connect
    await self._telnet.open()
  File "/home/juice/juicepassproxy/juicebox_telnet.py", line 60, in open
    self.reader, self.writer = await telnetlib3.open_connection(
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/juice/juicepassproxy/.venv/lib/python3.11/site-packages/telnetlib3/client.py", line 352, in open_connection
    transport, protocol = await asyncio.get_event_loop().create_connection(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 1085, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.11/asyncio/base_events.py", line 1069, in create_connection
    sock = await self._connect_sock(
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 973, in _connect_sock
    await self.sock_connect(sock, address)
  File "/usr/lib/python3.11/asyncio/selector_events.py", line 634, in sock_connect
    return await fut
           ^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/selector_events.py", line 674, in _sock_connect_cb
    raise OSError(err, f'Connect call failed {address}')
OSError: [Errno 113] Connect call failed ('192.168.178.27', 2000)
2024-11-19 08:53:45  DEBUG     [juicebox_mitm] Retrying UDP Server Startup. Attempt 2 of 3
2024-11-19 08:53:50  DEBUG     [juicebox_mitm] Starting JuiceboxMITM Loop
2024-11-19 08:53:51  DEBUG     [__main__] jpp_task_list: [<Task finished name='mqtt_handler' coro=<JuiceboxMQTTHandler.start() done, defined at /home/juice/juicepassproxy/juicebox_mqtthandler.py:455> result=None>, <Task pending name='mitm_handler' coro=<JuiceboxMITM.start() running at /home/juice/juicepassproxy/juicebox_mitm.py:62> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[gather.<locals>._done_callback() at /usr/lib/python3.11/asyncio/tasks.py:754]>, <Task finished name='udpc_updater' coro=<JuiceboxUDPCUpdater.start() done, defined at /home/juice/juicepassproxy/juicebox_udpcupdater.py:39> exception=OSError(113, "Connect call failed ('192.168.178.27', 2000)")>]
2024-11-19 08:53:56  ERROR     [__main__] JuicePass Proxy Exiting

maybe a timer (in case > 24hrs no cinnection => exit) and a status to mqtt would be nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant