On various Hardware and OS systems: pi / windows / routers / nas, etc
Moderator: leecollings
ressof
Posts: 66 Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:
Post
by ressof » Thursday 26 June 2025 10:59
When stopping domoticz (latest beta) with "sudo systemctl stop domoticz" on Ubuntu 24.04 it wont shutdown normally and times out with this log.
Python version 3.12.3
Code: Select all
Jun 26 10:52:16 domoticz systemd[1]: Stopping domoticz.service - domoticz_service...
Jun 26 10:53:46 domoticz systemd[1]: domoticz.service: State 'stop-sigterm' timed out. Killing.
Jun 26 10:53:46 domoticz systemd[1]: domoticz.service: Killing process 1055 (domoticz) with signal SIGKILL.
Jun 26 10:53:46 domoticz systemd[1]: domoticz.service: Failed to kill control group /system.slice/domoticz.service, ignoring: Invalid argument
Jun 26 10:53:46 domoticz systemd[1]: domoticz.service: Main process exited, code=killed, status=9/KILL
Jun 26 10:53:46 domoticz systemd[1]: domoticz.service: Failed with result 'timeout'.
Jun 26 10:53:46 domoticz systemd[1]: Stopped domoticz.service - domoticz_service.
When I start domoticz manually with ./domoticz and then press ctrl+C to stop it I get this error again and again
Code: Select all
2025-06-26 11:07:50.335 Error: EventSystem thread seems to have ended unexpectedly (last update 62.000000 seconds ago)
2025-06-26 11:07:50.335 Error: Scheduler thread seems to have ended unexpectedly (last update 62.000000 seconds ago)
2025-06-26 11:08:04.338 Error: EventSystem thread seems to have ended unexpectedly (last update 76.000000 seconds ago)
2025-06-26 11:08:04.338 Error: Scheduler thread seems to have ended unexpectedly (last update 76.000000 seconds ago)
How to fix this?
ressof
Posts: 66 Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:
Post
by ressof » Monday 04 August 2025 13:08
Anyone else have this problem?
gizmocuz
Posts: 2613 Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:
Post
by gizmocuz » Tuesday 05 August 2025 16:13
No.
Maybe it is a plugin/hardware you are using.
First disable the event system + python and all your hardware
next exit Domoticz, start it again, and see if you can stop it
Quality outlives Quantity!
waltervl
Posts: 6028 Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:
Post
by waltervl » Tuesday 05 August 2025 17:42
No issues here when stopping latest beta:
Spoiler: show 2025-08-05 17:38:23.797 Status: Closing application!...
2025-08-05 17:38:23.797 Status: Stopping worker...
2025-08-05 17:38:23.823 Status: RxQueue: queue worker stopped...
2025-08-05 17:38:23.824 Status: Stopping all hardware...
2025-08-05 17:38:23.826 Status: Udoo Bolt Sensors: Hardware Monitor: Stopped...
2025-08-05 17:38:23.827 Status: Buienradar: Worker stopped...
2025-08-05 17:38:23.828 Status: PP smart-TRV: Stop directive received.
2025-08-05 17:38:24.088 Status: PP smart-TRV: Exiting work loop.
2025-08-05 17:38:24.128 Status: PP smart-TRV: Stopping threads.
2025-08-05 17:38:24.128 Status: PP smart-TRV: Stopped.
2025-08-05 17:38:24.129 Status: Enever: Worker stopped...
2025-08-05 17:38:24.129 Status: PP Omnik3: Stop directive received.
2025-08-05 17:38:24.130 PP Omnik3: Plugin stopped
2025-08-05 17:38:25.005 Status: PP Omnik3: Exiting work loop.
2025-08-05 17:38:25.030 Status: PP Omnik3: Stopping threads.
2025-08-05 17:38:25.030 Status: PP Omnik3: Stopped.
2025-08-05 17:38:25.030 Status: ping: Worker stopped...
2025-08-05 17:38:25.040 Status: MQTTmapper: Stop directive received.
2025-08-05 17:38:25.041 MQTTmapper: MqttClient::onDisconnect Disconnected from 127.0.0.1:1883
2025-08-05 17:38:25.041 MQTTmapper: MqttClient::Close
2025-08-05 17:38:25.041 MQTTmapper: onMQTTDisconnected
2025-08-05 17:38:25.064 Status: MQTTmapper: Exiting work loop.
2025-08-05 17:38:25.141 Status: MQTTmapper: Stopping threads.
2025-08-05 17:38:25.141 Status: MQTTmapper: Stopped.
2025-08-05 17:38:25.642 Status: WebServer(HTTP) stopped
2025-08-05 17:38:25.646 Status: TCPServer: shared server handle_stop completed after 0 milliseconds
2025-08-05 17:38:25.647 Status: TCPServer: shared server stopped
2025-08-05 17:38:25.647 Status: Scheduler stopped...
2025-08-05 17:38:25.648 Status: EventSystem: Queue thread stopped...
2025-08-05 17:38:25.648 Status: EventSystem: Stopped...
2025-08-05 17:38:25.678 Status: EventSystem - Python stopped...
2025-08-05 17:38:25.679 Status: NotificationSystem: thread stopped...
2025-08-05 17:38:25.683 Status: PluginSystem: Exited work loop.
2025-08-05 17:38:25.713 Status: PluginSystem: Stopped.
2025-08-05 17:38:25.748 mDNS: Closed 2 sockets
2025-08-05 17:38:25.749 Status: mDNS: Service stopped
2025-08-05 17:38:25.749 Status: Mainworker Stopped...
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
ressof
Posts: 66 Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:
Post
by ressof » Friday 08 August 2025 8:53
I think it has something to do with libpython package.
I'm running Ubuntu 24.04.3 LTS and have installed libpython3.12t64 package.
When I start Domoticz I don't get any error message but when i disable and enable eventsystem i domoticz settings I get this message
Code: Select all
Status: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
ressof
Posts: 66 Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:
Post
by ressof » Monday 11 August 2025 9:46
I tried to do a fresh install on Ubuntu 24.04 but I get a error that I'm missing libssl1.1
I used this script to make a fresh install
Code: Select all
sudo bash -c "$(curl -sSfL https://install.domoticz.com)"
When using the above install method does it install the Domoticz version that support libssl version 1 or 3? Then maybe update the install script?
If it install libssl1 version of Domoticz with above command. Is there a way to install the libssl3 version from fresh?
waltervl
Posts: 6028 Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:
Post
by waltervl » Monday 11 August 2025 9:57
2025.1 stable uses libssl1. See note on wiki
https://wiki.domoticz.com/Linux
Note: Domoticz 2024.x and 2025.1 is still using libssl1.1 which give issues on newer OS's eg Ubuntu 22 and newer as it is is deprecated over libssl3. So for newer OS's you first need to install libssl1.1. See forum topic for instructions:
viewtopic.php?t=43111
2025.1 Beta uses libssl3 and should be installable (but not with the default install script).
Alternative is to use a docker container.
https://wiki.domoticz.com/Docker
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
ressof
Posts: 66 Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:
Post
by ressof » Monday 11 August 2025 10:18
Thank you. It worked to install libssl manually to get Domoticz to install. But when upgrading to latest beta I still get
Code: Select all
Status: EventSystem - Python: Failed dynamic library load, install the latest libpython3.x library that is available for your platform.
But I have libpython3.12t64 installed. Should I install a different version of libssl3?
waltervl
Posts: 6028 Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:
Post
by waltervl » Monday 11 August 2025 10:39
Follow the instructions of
https://wiki.domoticz.com/Using_Python_ ... _Raspbian)
So probably (when ubuntu 24.04 is using python 12, please check) use:
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
ressof
Posts: 66 Joined: Thursday 20 April 2017 7:20
Target OS: Linux
Domoticz version: Latest
Contact:
Post
by ressof » Monday 11 August 2025 10:45
When I use your command I get this
Code: Select all
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libpython3.12t64' instead of 'libpython3.12'
libpython3.12t64 is already the newest version (3.12.3-1ubuntu0.7).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
But I solved it by installing python3-dev
But I still get the errors when stopping domoticz
Code: Select all
Error: EventSystem thread seems to have ended unexpectedly (last update 63.000000 seconds ago)
Error: Scheduler thread seems to have ended unexpectedly (last update 63.000000 seconds ago)
even with a fresh install on ubuntu.
Im running ubuntu on a ESXi VM
waltervl
Posts: 6028 Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:
Post
by waltervl » Monday 11 August 2025 16:32
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Users browsing this forum: No registered users and 1 guest