Open splifter opened 4 years ago
I'm having the same problem in a raspberrypi machine:
Exception in thread Thread-62324:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/home/pi/.local/venvs/xdcc-dl/lib/python3.7/site-packages/sentry_sdk/integrations/threading.py", line 69, in run
reraise(*_capture_exception())
File "/home/pi/.local/venvs/xdcc-dl/lib/python3.7/site-packages/sentry_sdk/_compat.py", line 57, in reraise
raise value
File "/home/pi/.local/venvs/xdcc-dl/lib/python3.7/site-packages/sentry_sdk/integrations/threading.py", line 67, in run
return old_run_func(self, *a, **kw)
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/home/pi/.local/venvs/xdcc-dl/lib/python3.7/site-packages/xdcc_dl/xdcc/XDCCClient.py", line 527, in acker
self.xdcc_connection.socket.send(payload)
AttributeError: 'NoneType' object has no attribute 'send'
Exception in thread Thread-62273:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/home/pi/.local/venvs/xdcc-dl/lib/python3.7/site-packages/sentry_sdk/integrations/threading.py", line 69, in run
reraise(*_capture_exception())
File "/home/pi/.local/venvs/xdcc-dl/lib/python3.7/site-packages/sentry_sdk/_compat.py", line 57, in reraise
raise value
File "/home/pi/.local/venvs/xdcc-dl/lib/python3.7/site-packages/sentry_sdk/integrations/threading.py", line 67, in run
return old_run_func(self, *a, **kw)
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/home/pi/.local/venvs/xdcc-dl/lib/python3.7/site-packages/xdcc_dl/xdcc/XDCCClient.py", line 527, in acker
self.xdcc_connection.socket.send(payload)
AttributeError: 'NoneType' object has no attribute 'send'
@splifter You can try an ugly workaround to always re-run the download automatically when the exception happens (to me this problem doesn't happen every 30s, it's random, so in my case it's worth it):
while [ "$ok" != true ]; do xdcc-dl "XDCC-DL-COMMAND" 2>&1 | tee /tmp/xdcc-dl.log; \
if ! grep -q AttributeError /tmp/xdcc-dl.log; then ok=true; fi; done
This calls the command again until AttributeError
is not found anymore in the logs.
I've no idea how to provide more info than the message itself. This happens after 30sec after receiving a package. By the amount of messages flying through the cli, it seems this happens to each thread: