Attached HW: LogiLink Virtual 7.1 USB sound card , GPIO-connected generic 433.92 MHz transmitter
Domoticz Version: 2021.1 (previously 2.492 / 4.10717 / problems occurred after updating)
---
TL/DR: Domoticz runs fine after a reboot and using dummy switches (to trigger shell scripts) works fine. When using one of these dummy switches to trigger a shell script that runs detached (in this case streaming online radio (mp3 audio) using mplayer), Domoticz is no longer reachable after a couple of minutes. The music will keep on playing (without stuttering), but the only way to get Domoticz running again is by stopping the radio with:
Code: Select all
sudo killall mplayer
--> Any idea where to look?
---
Extra info: For years now, Domoticz has been running at my parents' place as an interface for switching on their lights and to control an internet radio. I visited them recently and updated Domoticz and the OS. It seemed all was well until they started using the "radio" - which in itself is just a dummy switch with events behind it which trigger scripts (see below). Switching on the lights using dummy virtual switches (triggering simple shell scripts to send 433.92 MHz signals) does not cause any problems with Domoticz. It only happens when I run the mplayer scripts. Unfortunately, my 6-year younger self didn't really care for documenting the steps taken in setting stuff up, making it a little tricky to find out which files I need to look into.
---
Example event script, toggled by a virtual button, which causes the problem:
Code: Select all
commandArray = {}
if (devicechanged['Radio'] == 'Off') then
os.execute ("killall mplayer")
end
if (devicechanged['Radio'] == 'FIP Rock') then
os.execute ("killall mplayer")
os.execute ("mplayer -noconsolecontrols https://icecast.radiofrance.fr/fiprock-hifi.aac?id=radiofrance &> /dev/null")
end
Post reboot, running 4 instances of sudo systemctl status domoticz
Fresh reboot, triggering radio script with dummy switch
Code: Select all
pi@paulpi3B:~ $ sudo systemctl status domoticz
● domoticz.service
Loaded: loaded (/etc/systemd/system/domoticz.service; enabled; vendor preset: enabled)
Active: activating (start) since Sat 2021-10-30 16:02:51 CEST; 4min 45s ago
Cntrl PID: 834 (domoticz)
Tasks: 17 (limit: 2088)
CGroup: /system.slice/domoticz.service
├─834 /home/pi/domoticz/domoticz start #removed .sh from all of these
└─880 mplayer -noconsolecontrols https://icecast.radiofrance.fr/fiprock-hifi.aac?id=radiofrance
Oct 30 16:07:31 paulpi3B domoticz[834]: 2021-10-30 16:07:31.453 Radio: Light/Switch (Radio)
Oct 30 16:07:31 paulpi3B domoticz[834]: mplayer: no process found
Oct 30 16:07:33 paulpi3B domoticz[834]: 2021-10-30 16:07:33.343 Status: User: Admin (IP: 192.168.1.81) initiated a switch command (1/Radio/Set Level)
Oct 30 16:07:33 paulpi3B domoticz[834]: 2021-10-30 16:07:33.362 Radio: Light/Switch (Radio)
Oct 30 16:07:33 paulpi3B domoticz[834]: mplayer: no process found
Oct 30 16:07:34 paulpi3B domoticz[834]: Cannot find HOME directory.
Oct 30 16:07:34 paulpi3B domoticz[834]: MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team
Oct 30 16:07:34 paulpi3B domoticz[834]: Terminal type `unknown' is not defined.
Oct 30 16:07:34 paulpi3B domoticz[834]: Playing https://icecast.radiofrance.fr/fiprock-hifi.aac?id=radiofrance.
Oct 30 16:07:34 paulpi3B domoticz[834]: libavformat version 58.20.100 (external)
Code: Select all
pi@paulpi3B:~ $ sudo systemctl status domoticz
● domoticz.service
Loaded: loaded (/etc/systemd/system/domoticz.service; enabled; vendor preset: enabled)
Active: activating (start) since Sat 2021-10-30 16:02:51 CEST; 4min 59s ago
Cntrl PID: 834 (domoticz)
Tasks: 17 (limit: 2088)
CGroup: /system.slice/domoticz.service
├─834 /home/pi/domoticz/domoticz start #removed .sh from all of these
└─880 mplayer -noconsolecontrols https://icecast.radiofrance.fr/fiprock-hifi.aac?id=radiofrance
Oct 30 16:07:42 paulpi3B domoticz[834]: Cannot seek backward in linear streams!
Oct 30 16:07:43 paulpi3B domoticz[834]: 2021-10-30 16:07:43.068 Status: User: Admin (IP: 192.168.1.81) initiated a switch command (4/Ugly lamp/On)
Oct 30 16:07:43 paulpi3B domoticz[834]: 2021-10-30 16:07:43.073 Error: SQLHelper: Error script not found '/home/pi/WiringPi/examples/lights/./kaku'
Oct 30 16:07:43 paulpi3B domoticz[834]: 2021-10-30 16:07:43.076 Radio: Lighting 1 (Ugly lamp)
Oct 30 16:07:43 paulpi3B domoticz[834]: Cannot seek backward in linear streams!
Oct 30 16:07:43 paulpi3B domoticz[834]: Cannot seek backward in linear streams!
Oct 30 16:07:44 paulpi3B domoticz[834]: 2021-10-30 16:07:44.330 Status: User: Admin (IP: 192.168.1.81) initiated a switch command (4/Ugly lamp/Off)
Oct 30 16:07:44 paulpi3B domoticz[834]: 2021-10-30 16:07:44.336 Radio: Lighting 1 (Ugly lamp)
Oct 30 16:07:46 paulpi3B domoticz[834]: Cannot seek backward in linear streams!
Oct 30 16:07:46 paulpi3B domoticz[834]: Cannot seek backward in linear streams!
Code: Select all
pi@paulpi3B:~ $ sudo systemctl status domoticz
● domoticz.service
Loaded: loaded (/etc/systemd/system/domoticz.service; enabled; vendor preset: enabled)
Active: activating (start) since Sat 2021-10-30 16:08:20 CEST; 3s ago
Cntrl PID: 971 (domoticz)
Tasks: 10 (limit: 2088)
CGroup: /system.slice/domoticz.service
├─880 mplayer -noconsolecontrols https://icecast.radiofrance.fr/fiprock-hifi.aac?id=radiofrance
├─971 /home/pi/domoticz/domoticz start #removed .sh from all of these
├─976 /home/pi/domoticz/domoticz start #removed .sh from all of these
├─977 /home/pi/domoticz/domoticz start #removed .sh from all of these
├─978 /home/pi/domoticz/domoticz start #removed .sh from all of these
└─979 gdb --batch -n -ex info threads -ex thread apply all bt -ex echo Main thread: -ex bt -ex detach /home/pi/domoticz/domoticz 971
Oct 30 16:08:20 paulpi3B domoticz[971]: 2021-10-30 16:08:20.927 Error: [web:443] missing SSL certificate chain file ./server_cert.pem!
Oct 30 16:08:20 paulpi3B domoticz[971]: 2021-10-30 16:08:20.927 Error: [web:443] missing SSL certificate file ./server_cert.pem!
Oct 30 16:08:20 paulpi3B domoticz[971]: 2021-10-30 16:08:20.927 Error: [web:443] missing SSL private key file ./server_cert.pem!
Oct 30 16:08:20 paulpi3B domoticz[971]: 2021-10-30 16:08:20.927 Error: [web:443] missing SSL DH parameters file ./server_cert.pem!
Oct 30 16:08:20 paulpi3B domoticz[971]: 2021-10-30 16:08:20.928 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Address already in use
Oct 30 16:08:20 paulpi3B domoticz[971]: 2021-10-30 16:08:20.928 Error: WebServer(SSL) check privileges for opening ports below 1024
Oct 30 16:08:20 paulpi3B domoticz[971]: 2021-10-30 16:08:20.928 Error: No servers are configured. Hence mydomoticz will not be started either (if configured)
Oct 30 16:08:20 paulpi3B domoticz[971]: terminate called without an active exception
Oct 30 16:08:20 paulpi3B domoticz[971]: 2021-10-30 16:08:20.929 Error: Domoticz(pid:971, tid:971('domoticz')) received fatal signal 6 (Aborted)
Oct 30 16:08:20 paulpi3B domoticz[971]: 2021-10-30 16:08:20.929 Error: siginfo address=0x3cb, address=0xffffffff
Code: Select all
pi@paulpi3B:~ $ sudo systemctl status domoticz
● domoticz.service
Loaded: loaded (/etc/systemd/system/domoticz.service; enabled; vendor preset: enabled)
Active: activating (start) since Sat 2021-10-30 16:09:21 CEST; 32s ago
Cntrl PID: 2160 (domoticz)
Tasks: 16 (limit: 2088)
CGroup: /system.slice/domoticz.service
└─2160 /home/pi/domoticz/domoticz start #removed .sh from all of these
Oct 30 16:09:21 paulpi3B domoticz[2160]: 2021-10-30 16:09:21.423 Error: WebServer(SSL) check privileges for opening ports below 1024
Oct 30 16:09:21 paulpi3B domoticz[2160]: 2021-10-30 16:09:21.425 Starting shared server on: :::6144
Oct 30 16:09:21 paulpi3B domoticz[2160]: 2021-10-30 16:09:21.425 Status: TCPServer: shared server started...
Oct 30 16:09:21 paulpi3B domoticz[2160]: 2021-10-30 16:09:21.426 Status: RxQueue: queue worker started...
Oct 30 16:09:23 paulpi3B domoticz[2160]: 2021-10-30 16:09:23.427 Status: NotificationSystem: thread started...
Oct 30 16:09:23 paulpi3B domoticz[2160]: 2021-10-30 16:09:23.427 Status: EventSystem: reset all events...
Oct 30 16:09:23 paulpi3B domoticz[2160]: 2021-10-30 16:09:23.428 Status: EventSystem: reset all device statuses...
Oct 30 16:09:23 paulpi3B domoticz[2160]: 2021-10-30 16:09:23.541 Status: Python EventSystem: Initalizing event module.
Oct 30 16:09:23 paulpi3B domoticz[2160]: 2021-10-30 16:09:23.542 Status: EventSystem: Started
Oct 30 16:09:23 paulpi3B domoticz[2160]: 2021-10-30 16:09:23.542 Status: EventSystem: Queue thread started...