Page 1 of 1

Install fails on starting thje Zoneminder service on Ubuntu 24.04

Posted: Mon Nov 25, 2024 3:15 pm
by johnaaronrose
I followed the instruction at https://zoneminder.readthedocs.io/en/st ... index.html

All Ok until 'sudo systemctl start zoneminder' when an error displays saying that "'control process exited with error code".

'journalctl -xeu zoneminder.service' shows:

Code: Select all

john@Desktop:~$ journalctl -xeu zoneminder.service
Nov 25 15:10:11 Desktop zmpkg.pl[582987]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.
Nov 25 15:10:11 Desktop systemd[1]: zoneminder.service: Control process exited, code=exited, status=255/EXCEPTION
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ An ExecStart= process belonging to unit zoneminder.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 255.
Nov 25 15:10:11 Desktop systemd[1]: zoneminder.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ The unit zoneminder.service has entered the 'failed' state with result 'exit-code'.
Nov 25 15:10:11 Desktop systemd[1]: Failed to start zoneminder.service - ZoneMinder CCTV recording and surveillance system.
░░ Subject: A start job for unit zoneminder.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ A start job for unit zoneminder.service has finished with a failure.
░░ 
░░ The job identifier is 31774 and the job result is failed.

Re: Install fails on starting thje Zoneminder service on Ubuntu 24.04

Posted: Mon Nov 25, 2024 4:34 pm
by johnaaronrose
Just had a thought. I'm trying to install ZM on my Ubuntu Desktop computer. I'm running nginx on my Raspberry Pi for my website etc) Server computer, At the moment my Router directs port 80 traffic to my Server computer. If this is the cause, how can I make ZM & Apache2 be direced to another port? If so, which port is recommended?

Re: Install fails on starting thje Zoneminder service on Ubuntu 24.04

Posted: Mon Nov 25, 2024 4:56 pm
by Andyrh
You can use iptables to redirect an incoming port to port 80 or a web search will find many results on how to adjust Apache to use a different port.

Any unused port is good. Port 8080 is popular for 2nd web sites.

Re: Install fails on starting thje Zoneminder service on Ubuntu 24.04

Posted: Mon Nov 25, 2024 5:13 pm
by johnaaronrose
I know how to use iptables for redirection. I also know how to Port Forward on my router.
My question was whether Port usage was causing ZM service not to start as detailed in my first post. If so, then my GUESS is that Apache2 would need to use a different port than 80. Also, how to make ZM service use that different port.

Re: Install fails on starting thje Zoneminder service on Ubuntu 24.04

Posted: Tue Nov 26, 2024 9:21 am
by johnaaronrose
Just done all of the required stuff for port 8080 i.e. Router now Port Forwards 8080 to 80 on my Desktop and iptables now allows port 80 in on TCP.
Router does not show any errors.But still same problem on restarting zoneminder service:

Code: Select all

john@Desktop:~$ journalctl -xeu zoneminder.service
Nov 26 09:11:27 Desktop zmpkg.pl[702509]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.
Nov 26 09:11:27 Desktop systemd[1]: zoneminder.service: Control process exited, code=exited, status=255/EXCEPTION

Re: Install fails on starting thje Zoneminder service on Ubuntu 24.04

Posted: Tue Nov 26, 2024 6:55 pm
by iconnor
Is the db setup?

Try running sudo zmpkg.pl start from the command line and see what else it says

Re: Install fails on starting thje Zoneminder service on Ubuntu 24.04

Posted: Tue Nov 26, 2024 7:39 pm
by johnaaronrose
It just gives the same as with starting the xoneminder service:
john@Desktop:~$ sudo zmpkg.pl start
26/11/24 19:37:50.564964 zmpkg[323957].INF [main:318] [Sanity checking States table...]
26/11/24 19:37:50.573496 zmpkg[323957].INF [main:95] [Command: start]
26/11/24 19:37:50.716054 zmsystemctl[323963].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 -xeu zoneminder.service" for details.