I am using deconz in a Debian VM (Debian 11).
Now recently I updated deconz and everything else to latest version (2.31.2).
It currently works well after a VM restart.
But if I want to stop it via sudo systemctl stop deconz
the command takes a very long time. During that time, systemctl status deconz shows: Active: deactivating (stop-sigterm) since … (30–50s)
CPU usage stays very low (around 2–5%), so the process does not seem busy.
After ~30 seconds, the service fails with a timeout: Active: failed (Result: timeout)
The journalctl then shows:
systemd[1]: Stopping deCONZ: ZigBee gateway -- REST API...
systemd[1]: deconz.service: State 'stop-sigterm' timed out. Killing.
systemd[1]: deconz.service: Killing process XXXX (deCONZ) with signal SIGKILL.
systemd[1]: deconz.service: Main process exited, code=killed, status=9/KILL
systemd[1]: deconz.service: Failed with result 'timeout'.
Interesting. So I am not alone.
Did you consider, adding some lines to the service telling it to use your kill method for shutdown? That was AIs suggestion for me, but it certainly is a workaround for a bug that only the devs can fix, right?
Yes, the problem is direclty in the deconz application for me, the application hang at close, but it something recent, and probably already corrected.
The version 2.31.2 have (critic for me) some issues, already patched, but for the moment I m waiting the 2.31.3 to make test.
I don’t restart deconz often, for the moment I type the shell commands myself, I don’t use workaround yet.
Oh ok, so you can confirm that this is indeed a bug in deconz? Was it noted in GitHub or how do you know? Because then I’d also leave it as is. I also restart it very rarely - and if I need to, I can still quickly restart my whole VM. I just wanted to know if I have a messed up config.
But if you have a GitHub issue or something, I could follow that to see, when an update for me is due to fix this.
ha no ^^, I have just see the issue too, I have say it on dev channel on discord, I had no reaction.
For me better to wait for next version first to see if the issue is still here, there is already some patchs planned.
Strange we are only 2 with this issue (or few users try to restart deconz), it’s nice you have started something, to have more return, and dev reads the forum too.