Install fails on starting thje Zoneminder service on Ubuntu 24.04

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
johnaaronrose
Posts: 54
Joined: Tue Feb 27, 2018 9:27 am

Install fails on starting thje Zoneminder service on Ubuntu 24.04

Post 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.
John
johnaaronrose
Posts: 54
Joined: Tue Feb 27, 2018 9:27 am

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

Post 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?
John
User avatar
Andyrh
Posts: 293
Joined: Sat Oct 28, 2017 3:55 am

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

Post 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.
Andy
o||||o

Ubuntu 22.04
ZM 1.36.33
E5-1650-v4 Xeon
16 GB RAM
6 cameras -> 54 FPS modect
johnaaronrose
Posts: 54
Joined: Tue Feb 27, 2018 9:27 am

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

Post 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.
John
johnaaronrose
Posts: 54
Joined: Tue Feb 27, 2018 9:27 am

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

Post 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
John
User avatar
iconnor
Posts: 3269
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

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

Post by iconnor »

Is the db setup?

Try running sudo zmpkg.pl start from the command line and see what else it says
johnaaronrose
Posts: 54
Joined: Tue Feb 27, 2018 9:27 am

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

Post 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.
John
Post Reply