running domoticz->Fatal Python error: drop_gil: GIL is not locked
Posted: Saturday 18 August 2018 13:17
I compiled domoticz on Arch linux (AUR package https://aur.archlinux.org/packages/domoticz/).
* Building is OK.
* When I start domoticz via: systemctl start domoticz it crashes with "Fatal Python error: drop_gil: GIL is not locked".
* I have searched but cannot find a solution.
All tips appreciated.
Service file:
--------------------
[Unit]
Description=Domoticz Daemon
After=network.target
[Service]
User=http
Group=http
PermissionsStartOnly=true
ExecStartPre=/usr/bin/install -d -m 0700 -o http -g http /var/run/domoticz
ExecStart=/opt/domoticz/domoticz -www 8090 -pidfile /var/run/domoticz/domoticz.pid
PIDFile=/var/run/domoticz/domoticz.pid
WorkingDirectory=/opt/domoticz
#RestartSec=5
#Restart=on-failure
[Install]
WantedBy=multi-user.target
---------------------------------
Log below:
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.517 Status: Domoticz V4.5876 (c)2012-2016 GizMoCuz
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.517 Status: Build Hash: b97777b, Date: 2016-11-09 12:33:42
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.517 Status: Startup Path: /opt/domoticz/
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.612 Status: PluginSystem: Started, Python version '3.7.0'.
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.620 Active notification Subsystems: gcm, http (2/13)
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.621 Status: WebServer(HTTP) started on address: :: with port 8090
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.637 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Permission denied
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.637 Error: WebServer(SSL) check privileges for opening ports below 1024
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.637 Status: Proxymanager started.
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.639 Starting shared server on: :::6144
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.639 Status: TCPServer: shared server started...
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.640 Status: RxQueue: queue worker started...
Aug 18 13:06:46 RPI3 domoticz[20602]: 2018-08-18 13:06:46.641 Status: EventSystem: reset all events...
Aug 18 13:06:46 RPI3 domoticz[20602]: 2018-08-18 13:06:46.642 Status: EventSystem: reset all device statuses...
Aug 18 13:06:46 RPI3 domoticz[20602]: Fatal Python error: drop_gil: GIL is not locked
Aug 18 13:06:46 RPI3 domoticz[20602]: Current thread 0x71cfd3e0 (most recent call first):
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 81 in _path_stat
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 87 in _path_is_mode_type
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 102 in _path_isdir
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 1447 in path_hook_for_FileFinder
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 1197 in _path_hooks
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 1221 in _path_importer_cache
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 1249 in _get_spec
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 1280 in find_spec
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap>", line 906 in _find_spec
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap>", line 963 in _find_and_load_unlocked
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap>", line 983 in _find_and_load
Aug 18 13:06:46 RPI3 systemd[1]: Started Process Core Dump (PID 20613/UID 0).
* Building is OK.
* When I start domoticz via: systemctl start domoticz it crashes with "Fatal Python error: drop_gil: GIL is not locked".
* I have searched but cannot find a solution.
All tips appreciated.
Service file:
--------------------
[Unit]
Description=Domoticz Daemon
After=network.target
[Service]
User=http
Group=http
PermissionsStartOnly=true
ExecStartPre=/usr/bin/install -d -m 0700 -o http -g http /var/run/domoticz
ExecStart=/opt/domoticz/domoticz -www 8090 -pidfile /var/run/domoticz/domoticz.pid
PIDFile=/var/run/domoticz/domoticz.pid
WorkingDirectory=/opt/domoticz
#RestartSec=5
#Restart=on-failure
[Install]
WantedBy=multi-user.target
---------------------------------
Log below:
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.517 Status: Domoticz V4.5876 (c)2012-2016 GizMoCuz
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.517 Status: Build Hash: b97777b, Date: 2016-11-09 12:33:42
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.517 Status: Startup Path: /opt/domoticz/
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.612 Status: PluginSystem: Started, Python version '3.7.0'.
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.620 Active notification Subsystems: gcm, http (2/13)
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.621 Status: WebServer(HTTP) started on address: :: with port 8090
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.637 Error: WebServer(SSL) startup failed on address 0.0.0.0 with port: 443: bind: Permission denied
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.637 Error: WebServer(SSL) check privileges for opening ports below 1024
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.637 Status: Proxymanager started.
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.639 Starting shared server on: :::6144
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.639 Status: TCPServer: shared server started...
Aug 18 13:06:44 RPI3 domoticz[20602]: 2018-08-18 13:06:44.640 Status: RxQueue: queue worker started...
Aug 18 13:06:46 RPI3 domoticz[20602]: 2018-08-18 13:06:46.641 Status: EventSystem: reset all events...
Aug 18 13:06:46 RPI3 domoticz[20602]: 2018-08-18 13:06:46.642 Status: EventSystem: reset all device statuses...
Aug 18 13:06:46 RPI3 domoticz[20602]: Fatal Python error: drop_gil: GIL is not locked
Aug 18 13:06:46 RPI3 domoticz[20602]: Current thread 0x71cfd3e0 (most recent call first):
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 81 in _path_stat
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 87 in _path_is_mode_type
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 102 in _path_isdir
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 1447 in path_hook_for_FileFinder
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 1197 in _path_hooks
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 1221 in _path_importer_cache
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 1249 in _get_spec
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap_external>", line 1280 in find_spec
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap>", line 906 in _find_spec
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap>", line 963 in _find_and_load_unlocked
Aug 18 13:06:46 RPI3 domoticz[20602]: File "<frozen importlib._bootstrap>", line 983 in _find_and_load
Aug 18 13:06:46 RPI3 systemd[1]: Started Process Core Dump (PID 20613/UID 0).