Domoticz on Synology NAS stopped working

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Chris12
Posts: 238
Joined: Tuesday 18 August 2020 8:41
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: NL
Contact:

Domoticz on Synology NAS stopped working

Post by Chris12 »

Hi,

My domoticz has stopped working since a couple of days. I noticed that when my dashticz screen was keeping in the refresh screen.
By checking the domoticz website, that was unavailable too. In my synology I can see that the packages has stopped running.
When restarting, the package stopped right away.

The package I'm currently running for domoticz is the Jadahl version 2020.2.12731-8 (last/latest one I believe).

I think the domoticz package has stopped working after my synology has updated some other packages last week.
Not sure which ones are updated, but I remember it was python 3.8 (also running python 2.7 and 3.7 as a package), MariaDB and MyPHPadmin.
I allready removed python 3.8 to see if domoticz will start again, but unfortunatelly not.

How can I troubleshoot this issue? I have got root access to my NAS, so I can do "CLI stuff" to investigate.
But I'm not sure where to find the logfile of domoticz to actually see some more info what is causing this issue.

My DSM version (Synology OS) is 6.2.4-25556, so not on the DSM7 release yet.

I want to re-install the domoticz package if needed, but then I first have to find out where to find the domoticz database and dzvents script files for keeping all my settings and devices. Unfortunatelly the domoticz webpage is not working otherwise I could have done a backup there.

Maybe switching to a docker installed domoticz I can do as well directly, but then I want to have first of all the scripts and backup/database file.

Who can help me out, or point me towards the right direction?
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
Chris12
Posts: 238
Joined: Tuesday 18 August 2020 8:41
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: NL
Contact:

Re: Domoticz on Synology NAS stopped working

Post by Chris12 »

Some more info I have collected using winscp. I located the logfile of domoticz (and found the domoticz.db database and script files as well as the daily/hourly backups.

I found out that my domoticz stopped working on 2021-04-02 20:57:24.342, after that all my devices gives errors like ".....thread seems to have ended unexpectedly"

When examing the logfile after a start of the domoticz package I can see the following:

Code: Select all

2021-04-06 09:31:42.406  Status: Domoticz V2020.2 (build 12731) (c)2012-2020 GizMoCuz
2021-04-06 09:31:42.406  Status: Build Hash: 7933f659d-modified, Date: 2020-12-06 10:22:02
2021-04-06 09:31:42.406  Status: Startup Path: /usr/local/domoticz/
2021-04-06 09:31:42.559  Sunrise: 07:03:00 SunSet: 20:23:00
2021-04-06 09:31:42.559  Day length: 13:20:00 Sun at south: 13:43:00
2021-04-06 09:31:42.559  Civil twilight start: 06:28:00 Civil twilight end: 20:57:00
2021-04-06 09:31:42.559  Nautical twilight start: 05:45:00 Nautical twilight end: 21:40:00
2021-04-06 09:31:42.559  Astronomical twilight start: 04:59:00 Astronomical twilight end: 22:26:00
2021-04-06 09:31:42.927  Status: PluginSystem: Started, Python version '3.8.6'.
2021-04-06 09:31:42.931  Active notification Subsystems: email (1/13)
2021-04-06 09:31:42.947  Error: WebServer(HTTP) startup failed on address 0.0.0.0 with port: 8084: bind: Address already in use
2021-04-06 09:31:42.947  Error: WebServer(HTTP) check if no other application is using port: 8084
2021-04-06 09:31:42.956  Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 8443: bind: Address already in use
2021-04-06 09:31:42.956  Error: WebServer(SSL) check if no other application is using port: 8443
2021-04-06 09:31:42.956  Error: No servers are configured. Hence mydomoticz will not be started either (if configured)
2021-04-06 09:31:42.956  Error: Domoticz(pid:10312, tid:10312('domoticz')) received fatal signal 6 (Aborted)
2021-04-06 09:31:42.956  Error: siginfo address=0x2848, address=0x7f14355be907
2021-04-06 09:31:42.961  Error: Failed to start gdb, will use backtrace() for printing stack frame

2021-04-06 09:31:42.963  Error: #0  /usr/local/domoticz/bin/domoticz() [0x6d6890]
2021-04-06 09:31:42.963  Error: #1  /usr/local/domoticz/bin/domoticz : signal_handler(int, siginfo_t*, void*) + 0x27d [0x6d732d]
2021-04-06 09:31:42.963  Error: #2  /lib/libpthread.so.0 :  + 0x101c0 [0x7f14369261c0]
2021-04-06 09:31:42.963  Error: #3  /lib/libc.so.6 : gsignal + 0x37 [0x7f14355be907]
2021-04-06 09:31:42.963  Error: #4  /lib/libc.so.6 : abort + 0x16a [0x7f14355bfcda]
2021-04-06 09:31:42.963  Error: #5  /usr/local/domoticz/bin/domoticz : __gnu_cxx::__verbose_terminate_handler() + 0xbf [0xc5fd2d]
2021-04-06 09:31:42.963  Error: #6  /usr/local/domoticz/bin/domoticz : __cxxabiv1::__terminate(void (*)()) + 0x3 [0xc2ae30]
2021-04-06 09:31:42.963  Error: #7  /usr/local/domoticz/bin/domoticz : __cxxabiv1::__unexpected(void (*)()) + 0 [0xc2ae66]
2021-04-06 09:31:42.963  Error: #8  /usr/local/domoticz/bin/domoticz : main + 0x8ba [0x5ed31a]
2021-04-06 09:31:42.963  Error: #9  /lib/libc.so.6 : __libc_start_main + 0xf0 [0x7f14355ab030]
2021-04-06 09:31:42.963  Error: #10 /usr/local/domoticz/bin/domoticz() [0x61c042]
on the forum here I found some cli commands:

Code: Select all

root@DS415:~# find /usr/local/etc/services.d -type f -exec grep -il '8084' {                                                } \;
root@DS415:~# sudo servicetool --runtime-port-conflict-check --tcp --all-used-ports |grep 8084
IsConflict: true        Port: 8084      Pid: 26144      State: TCP_LISTEN       Protocol: tcp   ProgramCommand: /usr/bin/sudo
IsConflict: true        Port: 8084      Pid: 26143      State: TCP_LISTEN       Protocol: tcp   ProgramCommand: /usr/bin/bash
IsConflict: true        Port: 8084      Pid: 26144      State: TCP_CLOSE_WAIT   Protocol: tcp   ProgramCommand: /usr/bin/sudo
IsConflict: true        Port: 8084      Pid: 26143      State: TCP_CLOSE_WAIT   Protocol: tcp   ProgramCommand: /usr/bin/bash
root@CVR-DS415:~#

So it seems that the ports 8084 are claimed by another programm or something?
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
Chris12
Posts: 238
Joined: Tuesday 18 August 2020 8:41
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: NL
Contact:

Re: Domoticz on Synology NAS stopped working

Post by Chris12 »

Now that I have all data/settings, I tried to reinstall the domoticz package (first uninstalled) using domoticz_avoton-6.2_2020.2.12731-8.spk downloaded form jadahl website.

The installation goes fine, I let all setings for the ports default (8443/8084)
But after the installation domoticz still does not want to run.
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
Chris12
Posts: 238
Joined: Tuesday 18 August 2020 8:41
Target OS: NAS (Synology & others)
Domoticz version: 2021.1
Location: NL
Contact:

Re: Domoticz on Synology NAS stopped working

Post by Chris12 »

Problem solved! By uninstall domoticz package, after that rebooted my NAS, and re-installed the domoticz package using another port (8484 instead of 8084). After that domoticz worked fine. So next I uninstalled domoticz again, and re-installed is using the default ports. Domoticz now runs fine!

Restored my database file, manually installed some plugins and scripts. Everything seems to be OK right now.
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest