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.
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?
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.
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:
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
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.