Hi,
My Domoticz suffers a daily crash between 23:00 and 24:00
For the moment I just want to know the crash time.
I followed the wiki
- edit /etc/init.d/domoticz.sh
- Uncommented DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log"
- sudo systemctl daemon-reload
- sudo service domoticz stop
- sudo service domoticz start
- sudo tail -f /var/log/domoticz.log
As mentioned in the wiki the log file will grow fast.
The wiki explains that one can set log levels.
Question: which levels could you suggest to use to start with
DAEMON_ARGS="$DAEMON_ARGS -debuglevel normal, status, error, hardware,received,webserver,eventsystem,python,thread_id" # these loglevels will make it to the logfile
For now I have sset it to:
DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log"
DAEMON_ARGS="$DAEMON_ARGS -loglevel status,error, debug"
Domoticz daily crash
Moderators: leecollings, remb0
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
-
- Posts: 612
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Domoticz daily crash
Bugs bug me.
- waltervl
- Posts: 5843
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Domoticz daily crash
There should be a domoticz_crash.log file that shows exactly what happened and when....
Also noted in the https://wiki.domoticz.com/Troubleshooting
And if you just store the domoticz.log (without using the extra debug logging), it is also shown when it stopped (or at least made the last entry to the log).
If you use monit to restart domoticz the domoticz.log will be overwritten.
Also noted in the https://wiki.domoticz.com/Troubleshooting
And if you just store the domoticz.log (without using the extra debug logging), it is also shown when it stopped (or at least made the last entry to the log).
If you use monit to restart domoticz the domoticz.log will be overwritten.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- gizmocuz
- Posts: 2536
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Domoticz daily crash
Are there any cron jobs on your system that has anything to do with Domoticz?
Did you enable automatic database backup? If yes, turn this off and see if that solves the issue
Do you use any scripts that creates sensors and updates them? Could it be a faulty sValue for a device?
And what is your Domoticz version?
Did you enable automatic database backup? If yes, turn this off and see if that solves the issue
Do you use any scripts that creates sensors and updates them? Could it be a faulty sValue for a device?
And what is your Domoticz version?
Quality outlives Quantity!
-
- Posts: 612
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Re: Domoticz daily crash
- cronjobs every 5 minutes nmap -> file, file is being read by domoticz for presence detection
- autobackup activated - does it harm? If so how come?
- 27 active textsensors are updated in most cases every minute
- Domoticz 2025-1 on RPI 3+ on bookworm
Is there a way to check which scripts are executed at a given time?
- autobackup activated - does it harm? If so how come?
- 27 active textsensors are updated in most cases every minute
- Domoticz 2025-1 on RPI 3+ on bookworm
Is there a way to check which scripts are executed at a given time?
Bugs bug me.
- waltervl
- Posts: 5843
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Domoticz daily crash
At 24:00 exactly a major database backup and database cleanup is performed. This could lead to issues when there is a database issue or you have not enough disk storage or power source failure The RPi is very sensitive for low voltage which could happen on high CPU load due to database maintenance and you have a bad power source.
But first determine what and when goes wrong.
Is there a domoticz_crash.log file?
Did you enable the Domoticz log to file system? What does it say when after it stopped?
But first determine what and when goes wrong.
Is there a domoticz_crash.log file?
Did you enable the Domoticz log to file system? What does it say when after it stopped?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 612
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Re: Domoticz daily crash
Here we go
As long as I haven't found to cause I'm using cron 1 0 * * * sudo service domoticz restart
Code: Select all
2025-06-06 00:05:06.170 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtim>
2025-06-06 00:05:09.654 Error: Stack frame for all threads:
2025-06-06 00:05:09.655 Error: > gdb: warning: Couldn't determine a path for the index cache directory.
2025-06-06 00:05:09.655 Error: > [New LWP 232666]
2025-06-06 00:05:09.655 Error: > [New LWP 232667]
2025-06-06 00:05:09.655 Error: > [New LWP 232668]
2025-06-06 00:05:09.655 Error: > [New LWP 232669]
2025-06-06 00:05:09.655 Error: > [New LWP 232670]
2025-06-06 00:05:09.655 Error: > [New LWP 232671]
Bugs bug me.
- waltervl
- Posts: 5843
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Domoticz daily crash
00:05 for seems late for a eventsystem restart.
So it seems you daily backup or database cleanup fails or is slow. Any mention of that in the log file (starting from 00:00:xx)?
There also should be a domoticz_crash.log file.
File system has enough disk space?
What is the file size of your domoticz.db file?
So it seems you daily backup or database cleanup fails or is slow. Any mention of that in the log file (starting from 00:00:xx)?
There also should be a domoticz_crash.log file.
File system has enough disk space?
What is the file size of your domoticz.db file?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- gizmocuz
- Posts: 2536
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Domoticz daily crash
Why are you updating 27 text sensors? And you only update them (i hope) when the actual text is changing?!?!
Anyway, disable the cron jobs (for sure the domoticz restart, that is insane and does not solve any problem!)
Disable the automatic backup
Next let Domoticz run overnight... see if that keeps running .... --> Fine --> continue
Not Fine-> you probably have a faulty sValue somewhere caused by scripts
When Fine...
How big is your Domoticz database? It should not be big, else you have serious issues probably caused by your 27 text sensors
Either enable the cron or the automatic backup (one of the two), let domoticz run overnight and see if it keeps running
Then you know what the issue is
Anyway, disable the cron jobs (for sure the domoticz restart, that is insane and does not solve any problem!)
Disable the automatic backup
Next let Domoticz run overnight... see if that keeps running .... --> Fine --> continue
Not Fine-> you probably have a faulty sValue somewhere caused by scripts
When Fine...
How big is your Domoticz database? It should not be big, else you have serious issues probably caused by your 27 text sensors
Either enable the cron or the automatic backup (one of the two), let domoticz run overnight and see if it keeps running
Then you know what the issue is
Quality outlives Quantity!
Who is online
Users browsing this forum: No registered users and 1 guest