systemd[1]: zoneminder.service: Control process exited, code=exited, status=1/FAILURE

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
fontiano
Posts: 68
Joined: Wed Dec 25, 2019 10:29 am

systemd[1]: zoneminder.service: Control process exited, code=exited, status=1/FAILURE

Post by fontiano »

Hi,

fresh installation of ZM on Debian buster 10 (clean) following this (nginx):

https://wiki.zoneminder.com/Debian_10_B ... om_ZM_Repo


The system is working but the service status is not good:

root@zm-test:/home# systemctl start zoneminder
Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.
root@zm-test:/home# systemctl status zoneminder.service
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/zoneminder.service.d
└─override.conf
Active: activating (auto-restart) (Result: exit-code) since Wed 2021-03-24 10:33:23 CET; 8s ago
Process: 3598 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=1/FAILURE)
root@zm-test:/home# journalctl -xe
mar 24 10:33:23 zm-test systemd[1]: zoneminder.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit zoneminder.service has entered the 'failed' state with result 'exit-code'.
mar 24 10:33:23 zm-test systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
-- Subject: L'unità zoneminder.service è fallita
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unità zoneminder.service è fallita.
--
-- Il risultato è failed.
mar 24 10:33:24 zm-test zmc_m1[2975]: INF [zmc_m1] [Capanna-Test: images:8900 - Capturing at 16.67 fps, capturing bandwidth 280279bytes/sec]
mar 24 10:33:25 zm-test zma_m1[2985]: INF [zma_m1] [Capanna-Test: 8900 - Analysing at 16.67 fps]
mar 24 10:33:31 zm-test zmc_m1[2975]: INF [zmc_m1] [Capanna-Test: images:9000 - Capturing at 14.29 fps, capturing bandwidth 237898bytes/sec]
mar 24 10:33:32 zm-test zma_m1[2985]: INF [zma_m1] [Capanna-Test: 9000 - Analysing at 14.29 fps]
mar 24 10:33:33 zm-test systemd[1]: zoneminder.service: Service RestartSec=10s expired, scheduling restart.
mar 24 10:33:33 zm-test systemd[1]: zoneminder.service: Scheduled restart job, restart counter is at 181.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Automatic restarting of the unit zoneminder.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
mar 24 10:33:33 zm-test systemd[1]: Stopped ZoneMinder CCTV recording and surveillance system.
-- Subject: L'unità zoneminder.service termina la fase di spegnimento
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unità zoneminder.service ha terminato la fase di spegnimento.
mar 24 10:33:33 zm-test systemd[1]: Starting ZoneMinder CCTV recording and surveillance system...
-- Subject: L'unità zoneminder.service inizia la fase di avvio
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unità zoneminder.service ha iniziato la fase di avvio.
mar 24 10:33:33 zm-test zmpkg[3609]: INF [Sanity checking States table...]
mar 24 10:33:33 zm-test zmpkg[3609]: INF [Command: start]
mar 24 10:33:33 zm-test systemd[1]: zoneminder.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit zoneminder.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
mar 24 10:33:33 zm-test systemd[1]: zoneminder.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit zoneminder.service has entered the 'failed' state with result 'exit-code'.
mar 24 10:33:33 zm-test systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
-- Subject: L'unità zoneminder.service è fallita
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unità zoneminder.service è fallita.
--
-- Il risultato è failed.
Production: zm 1.34.26 - Debian 11 | Test: zm 1.36.33 - Debian 12
fontiano
Posts: 68
Joined: Wed Dec 25, 2019 10:29 am

Re: systemd[1]: zoneminder.service: Control process exited, code=exited, status=1/FAILURE

Post by fontiano »

Enabled DEBUG log:

root@zm-test:/var/log/zm# /usr/bin/zmpkg.pl stop
24/03/2021 19:27:56.336875 zmpkg[31338].INF [main:310] [Sanity checking States table...]
24/03/2021 19:27:56.337360 zmpkg[31338].INF [main:95] [Command: stop]
24/03/2021 19:27:56.406738 zmsystemctl[31344].INF [main:71] [Redirecting command through systemctl]

root@zm-test:/var/log/zm# /usr/bin/zmpkg.pl start
24/03/2021 19:28:04.044685 zmpkg[31350].INF [main:310] [Sanity checking States table...]
24/03/2021 19:28:04.045281 zmpkg[31350].INF [main:95] [Command: start]
24/03/2021 19:28:04.113512 zmsystemctl[31356].INF [main:71] [Redirecting command through systemctl]
Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.

root@zm-test:/var/log/zm# tail -f /var/log/syslog
Mar 24 19:28:17 zm-test zmc_m1[2975]: INF [zmc_m1] [Event video offset is -1.382 sec (<0 means video starts early)]
Mar 24 19:28:18 zm-test zma_m1[4701]: INF [zma_m1] [Capanna-Test: 470574 - Gone into alert state]
Mar 24 19:28:18 zm-test zma_m1[4701]: INF [zma_m1] [Capanna-Test: 470575 - Gone back into alarm state]
Mar 24 19:28:20 zm-test zma_m1[4701]: INF [zma_m1] [Capanna-Test: 470597 - Gone into alert state]
Mar 24 19:28:20 zm-test zma_m1[4701]: INF [zma_m1] [Capanna-Test: 470600 - Analysing at 14.29 fps]
Mar 24 19:28:20 zm-test zma_m1[4701]: INF [zma_m1] [Capanna-Test: 470604 - Gone back into alarm state]
Mar 24 19:28:21 zm-test zma_m1[4701]: INF [zma_m1] [Capanna-Test: 470607 - Gone into alert state]
Mar 24 19:28:22 zm-test zmc_m1[2975]: INF [zmc_m1] [Capanna-Test: images:491700 - Capturing at 14.29 fps, capturing bandwidth 241790bytes/sec]
Mar 24 19:28:23 zm-test zma_m1[4701]: INF [zma_m1] [Capanna-Test: 470638 - Gone back into alarm state]
Mar 24 19:28:23 zm-test zma_m1[4701]: INF [zma_m1] [Capanna-Test: 470639 - Gone into alert state]
Mar 24 19:28:24 zm-test systemd[1]: zoneminder.service: Service RestartSec=10s expired, scheduling restart.
Mar 24 19:28:24 zm-test systemd[1]: zoneminder.service: Scheduled restart job, restart counter is at 3308.
Mar 24 19:28:24 zm-test systemd[1]: Stopped ZoneMinder CCTV recording and surveillance system.
Mar 24 19:28:24 zm-test systemd[1]: Starting ZoneMinder CCTV recording and surveillance system...
Mar 24 19:28:24 zm-test zmpkg[31379]: DBG [LogOpts: level=DBG/DBG, screen=OFF, database=DBG, logfile=DBG->/var/log/zm/zmpkg.log, syslog=DBG]
Mar 24 19:28:24 zm-test zmpkg[31379]: DBG [Command: start]
Mar 24 19:28:24 zm-test zmpkg[31379]: INF [Sanity checking States table...]
Mar 24 19:28:24 zm-test zmpkg[31379]: INF [Command: start]
Mar 24 19:28:24 zm-test zmpkg[31379]: DBG [Testing valid shell syntax]
Mar 24 19:28:24 zm-test zmpkg[31379]: DBG [Running as 'www-data', su commands not needed]
Mar 24 19:28:24 zm-test zmpkg[31379]: DBG [Command: /usr/bin/zmdc.pl check]
Mar 24 19:28:24 zm-test zmpkg[31379]: DBG [Output: running]
Mar 24 19:28:24 zm-test zmpkg[31379]: DBG [zmdc.pl check = running]
Mar 24 19:28:24 zm-test systemd[1]: zoneminder.service: Control process exited, code=exited, status=1/FAILURE
Mar 24 19:28:24 zm-test systemd[1]: zoneminder.service: Failed with result 'exit-code'.
Mar 24 19:28:24 zm-test systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
Mar 24 19:28:27 zm-test zma_m1[4701]: INF [zma_m1] [Capanna-Test: 470700 - Analysing at 14.29 fps]
Mar 24 19:28:29 zm-test zmc_m1[2975]: INF [zmc_m1] [Capanna-Test: images:491800 - Capturing at 14.29 fps, capturing bandwidth 261916bytes/sec]
Mar 24 19:28:33 zm-test zma_m1[4701]: INF [zma_m1] [Capanna-Test: 470800 - Analysing at 16.67 fps]
Mar 24 19:28:34 zm-test systemd[1]: zoneminder.service: Service RestartSec=10s expired, scheduling restart.
Mar 24 19:28:34 zm-test systemd[1]: zoneminder.service: Scheduled restart job, restart counter is at 3309.
Mar 24 19:28:34 zm-test systemd[1]: Stopped ZoneMinder CCTV recording and surveillance system.
Mar 24 19:28:34 zm-test systemd[1]: Starting ZoneMinder CCTV recording and surveillance system...
Mar 24 19:28:34 zm-test zmpkg[31388]: DBG [LogOpts: level=DBG/DBG, screen=OFF, database=DBG, logfile=DBG->/var/log/zm/zmpkg.log, syslog=DBG]
Mar 24 19:28:34 zm-test zmpkg[31388]: DBG [Command: start]
Mar 24 19:28:34 zm-test zmpkg[31388]: INF [Sanity checking States table...]
Mar 24 19:28:34 zm-test zmpkg[31388]: INF [Command: start]
Mar 24 19:28:34 zm-test zmpkg[31388]: DBG [Testing valid shell syntax]
Mar 24 19:28:34 zm-test zmpkg[31388]: DBG [Running as 'www-data', su commands not needed]
Mar 24 19:28:34 zm-test zmpkg[31388]: DBG [Command: /usr/bin/zmdc.pl check]
Mar 24 19:28:35 zm-test zmpkg[31388]: DBG [Output: running]
Mar 24 19:28:35 zm-test zmpkg[31388]: DBG [zmdc.pl check = running]
Mar 24 19:28:35 zm-test systemd[1]: zoneminder.service: Control process exited, code=exited, status=1/FAILURE
Mar 24 19:28:35 zm-test systemd[1]: zoneminder.service: Failed with result 'exit-code'.
Mar 24 19:28:35 zm-test systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
Mar 24 19:28:35 zm-test zmc_m1[2975]: INF [zmc_m1] [Capanna-Test: images:491900 - Capturing at 16.67 fps, capturing bandwidth 283235bytes/sec]
Production: zm 1.34.26 - Debian 11 | Test: zm 1.36.33 - Debian 12
fontiano
Posts: 68
Joined: Wed Dec 25, 2019 10:29 am

Re: systemd[1]: zoneminder.service: Control process exited, code=exited, status=1/FAILURE

Post by fontiano »

Problem is fixed .. but I don't know how.

Yesterday I powered on VM and the problem never occurred again.
Production: zm 1.34.26 - Debian 11 | Test: zm 1.36.33 - Debian 12
Post Reply