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

Script hung up after a while #5

Open
soenkekueper opened this issue May 22, 2021 · 0 comments
Open

Script hung up after a while #5

soenkekueper opened this issue May 22, 2021 · 0 comments

Comments

@soenkekueper
Copy link

Hey,

the script is working on my openhabian raspberry pi in an docker container without any trouble.

But from time to time, when it was running a longer time (which i unfortunately can't determine exactly) the connection to ecovacs api and MQTT hangs up and it doesn't do anything.

The only thing i can figure out from the logs is that there is some problem to connect to the ecovacs api with status code 502.
This error occours up to six times a day:

12021-05-18 19:02:41,375: deebotozmo.ecovacsiotmq WARNING: 1621364561.257185| Error calling API https://portal-ww.ecouser.net/api/iot/devmanager.do?mid=XXXXXc&td=q&u=XXXXX&cv=1.67.3&t=a&av=1.3.1 StatusCode 502

And once i've this error in the logs

2021-05-19 01:39:04,283: deebotozmo.ecovacsiotmq ERROR: EcoVacsMQTT - error connecting with MQTT Return 5
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3452, in _thread_main
    self.loop_forever(retry_first_connection=True)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1779, in loop_forever
    rc = self.loop(timeout, max_packets)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1181, in loop
    rc = self.loop_read(max_packets)
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 1572, in loop_read
    rc = self._packet_read()
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 2310, in _packet_read
    rc = self._packet_handle()
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 2942, in _packet_handle
    return self._handle_connack()
  File "/usr/local/lib/python3.8/site-packages/paho/mqtt/client.py", line 3029, in _handle_connack
    self.on_connect(
  File "/usr/local/lib/python3.8/site-packages/deebotozmo/ecovacsiotmq.py", line 93, in on_connect
    raise RuntimeError("EcoVacsMQTT - error connecting with MQTT Return {}".format(rc))
RuntimeError: EcoVacsMQTT - error connecting with MQTT Return 5

After restarting the docker container everything is working well again.

Does anybody else have recognized this problem or any solution on it?

Greets

Sönke

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