Closed garygoodger closed 5 years ago
I have the same issue but with a other Plugin: Logitech Harmony. If it failes to connect it trys again and again many times. After this, the Pi is dead. Homebridge is runing here on a Pi 3
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe Your Problem: I'm experiencing an issue with docker homebridge crashing a raspberry pi requiring a hard reboot to bring it back to life. One of my homebridge plugins has a memory leak, so I moved over to docker in hope that when homebridge crashed, the container would restart itself. However, it's now worse as I lose all access to the pi as it requires a full hard reboot, whereas previously homebridge would crash, I'd just log in to the pi and start it up again.
I'm not sure if the error at the end of the log is the error thrown before the Pi crashes. However, it's clear to see TuyaAccessory is causing issues when connections get closed (bulb disconnects from the WiFi and spams the logs). I've tried posting on the tuya-lan repo to no avail.
Has anyone experienced this and could help? I'm unclear if the memory leak is something that can be resolved, or if there is a better way to handle this with docker so the container restarts if the logs start spamming with closed connections?
Logs:
Docker Start Command: docker-compose up -d
version: '2' services: homebridge: image: oznu/homebridge:latest restart: always network_mode: host volumes: