Skip to content

LNXLink crashes after a while #240

@TheChilliPL

Description

@TheChilliPL

What type of installation are you running?

Desktop

Which Linux OS are you using?

EndeavourOS, rolling, x86_64 Linux 6.19.11-arch1-1

Which version of LNXLink has the issue?

2026.2.0

Describe the problem

LNXLink works for like 2 minutes and then crashes

Apr 18 13:42:38 chilli-pc lnxlink[29095]: Exception in thread Thread-5 (_thread_main): Apr 18 13:42:38 chilli-pc lnxlink[29095]: Traceback (most recent call last): Apr 18 13:42:38 chilli-pc lnxlink[29095]: File "/usr/lib/python3.14/threading.py", line 1082, in _bootstrap_inner Apr 18 13:42:38 chilli-pc lnxlink[29095]: self._context.run(self.run) Apr 18 13:42:38 chilli-pc lnxlink[29095]: ~~~~~~~~~~~~~~~~~^^^^^^^^^^ Apr 18 13:42:38 chilli-pc lnxlink[29095]: File "/usr/lib/python3.14/threading.py", line 1024, in run Apr 18 13:42:38 chilli-pc lnxlink[29095]: self._target(*self._args, **self._kwargs) Apr 18 13:42:38 chilli-pc lnxlink[29095]: ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 18 13:42:38 chilli-pc lnxlink[29095]: File "/usr/lib/python3.14/site-packages/paho/mqtt/client.py", line 3591, in _thread_main Apr 18 13:42:38 chilli-pc lnxlink[29095]: self.loop_forever(retry_first_connection=True) Apr 18 13:42:38 chilli-pc lnxlink[29095]: ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 18 13:42:38 chilli-pc lnxlink[29095]: File "/usr/lib/python3.14/site-packages/paho/mqtt/client.py", line 1756, in loop_forever Apr 18 13:42:38 chilli-pc lnxlink[29095]: rc = self._loop(timeout) Apr 18 13:42:38 chilli-pc lnxlink[29095]: File "/usr/lib/python3.14/site-packages/paho/mqtt/client.py", line 1164, in _loop Apr 18 13:42:38 chilli-pc lnxlink[29095]: rc = self.loop_read() Apr 18 13:42:38 chilli-pc lnxlink[29095]: File "/usr/lib/python3.14/site-packages/paho/mqtt/client.py", line 1556, in loop_read Apr 18 13:42:38 chilli-pc lnxlink[29095]: rc = self._packet_read() Apr 18 13:40:01 chilli-pc systemd[1517]: lnxlink.service: Scheduled restart job, restart counter is at 4. Apr 18 13:42:38 chilli-pc lnxlink[29095]: File "/usr/lib/python3.14/site-packages/paho/mqtt/client.py", line 2439, in _packet_read Apr 18 13:42:38 chilli-pc lnxlink[29095]: rc = self._packet_handle() Apr 18 13:42:38 chilli-pc lnxlink[29095]: File "/usr/lib/python3.14/site-packages/paho/mqtt/client.py", line 3029, in _packet_handle Apr 18 13:42:38 chilli-pc lnxlink[29095]: return self._handle_pubackcomp("PUBACK") Apr 18 13:42:38 chilli-pc lnxlink[29095]: ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^ Apr 18 13:42:38 chilli-pc lnxlink[29095]: File "/usr/lib/python3.14/site-packages/paho/mqtt/client.py", line 3529, in _handle_pubackcomp Apr 18 13:42:38 chilli-pc lnxlink[29095]: rc = self._do_on_publish(mid) Apr 18 13:42:38 chilli-pc lnxlink[29095]: File "/usr/lib/python3.14/site-packages/paho/mqtt/client.py", line 3489, in _do_on_publish Apr 18 13:42:38 chilli-pc lnxlink[29095]: on_publish(self, self._userdata, mid) Apr 18 13:42:38 chilli-pc lnxlink[29095]: ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ Apr 18 13:42:38 chilli-pc lnxlink[29095]: TypeError: MQTT.on_publish() missing 2 required positional arguments: 'reason_code' and 'properties'

When crashing, brings everything visible in Home Assistant to unavailable.

Additional context

No response

Configuration

Default configuration (apart from MQTT address, username and password)

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions