Page 1 of 1

Domoticz suddenly stops

Posted: Friday 30 April 2021 23:50
by peterbos
Hi,
I had some problems with Domoticz crashing on my Pi but the last months they seemed solved. Recently I had a modem update from Ziggo and since then Domoticz failed every couple of days. On the forum I found a post (can't find anymore) which advised me to start Domoticz by hand through ssh:

start ssh
cd domoticz
sudo service domoticz.sh stop
sudo ./domoticz -nowwwpwd

When I do so, Domoticz works fine... until I close ssh.

After restarting Domoticz through ssh again and starting Domoticz I changed the Local networks (no username/password) on the System tab to "127.0.0.*;192.168.1.*;::1". This seemed to do the trick and I could run Domoticz again without ssh. But today Domoticz stopped again and I can 't get it running unless I start it from ssh with nowwwpwd. Since I am a complete dummy on Linux I have no clue how to fix this. Any suggestions?

Peter

Re: Domoticz suddenly stops

Posted: Saturday 01 May 2021 0:11
by waltervl
What error message do you see when you do

start ssh
cd domoticz
sudo service domoticz.sh stop
sudo ./domoticz

Or starts domoticz without issues?
If Domoticz just runs fine you should be able to reboot your RPi and domoticz will start normally.
If it does not start something is wrong with your service

.

Re: Domoticz suddenly stops

Posted: Sunday 09 May 2021 19:49
by peterbos
Hi,

It starts without any error message as far as I can see. How can I dump the messages to a file so I can check them? When SSH is running, I can reach Domoticz. When I stop SSH, I get the message ERR_CONNECTION_REFUSED.

Peter

Re: Domoticz suddenly stops

Posted: Sunday 09 May 2021 19:59
by waltervl
To store the log file
Stop domoticz:

sudo /etc/init.d/domoticz.sh stop

or

sudo systemctl stop domoticz.service

Edit the /etc/init.d/domoticz.sh script file:

sudo nano /etc/init.d/domoticz.sh

and edit the domoticz deamon logging parameters DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.txt"
uncomment that line by removing the leading # character

Save the file and reboot your Pi.