ZoneMinder not starting on Linux Mint 20.3

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
Minty
Posts: 2
Joined: Tue Mar 01, 2022 10:28 am

ZoneMinder not starting on Linux Mint 20.3

Post by Minty »

Hello everyone,

I have an Asus laptop runnibng Linux Mint Cinnamon 20.3, recently upgraded and updated without any issues. I wanted to use it for monitoring feed from my camera so I tried to install Zone Minder. I have followed these instructions:

https://zoneminder.readthedocs.io/en/st ... -04-bionic

The first issue I had was at the command:

sudo mysql -uroot -p -e "grant lock tables,alter,drop,select,insert,update,delete,create,index,alter routine,create routine, trigger,execute on zm.* to 'zmuser'@localhost identified by 'zmpass';"

Where my computer responded with:

ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'identified by 'zmpass'' at line 1

However, I had ZoneMinder installed earlier on another computer with an older distro and it worked fine without that step so I didn't think much of it. The real problem showed up once ZoneMinder was installed and I had tried to run it with the command>

sudo systemctl start zoneminder

The response is:

Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.

Here is the systemctl status zoneminder.service output:

● zoneminder.service - ZoneMinder CCTV recording and surveillance system
Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Wed 2022-03-0209:48:03 CET; 6s ago
Process: 4762 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255/EXCEPTION)
lines 1-4/4 (END)

Here is the "journalctl -xe output:

Mar 02 09:50:03 WhiteMint zmpkg.pl[5615]: BEGIN failed--compilation aborted at >
Mar 02 09:50:03 WhiteMint systemd[1]: zoneminder.service: Control process exite>
-- 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.
Mar 02 09:50:03 WhiteMint systemd[1]: zoneminder.service: Failed with result 'e>
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit zoneminder.service has entered the 'failed' state with result 'exit>
Mar 02 09:50:03 WhiteMint systemd[1]: Failed to start ZoneMinder CCTV recording>
-- 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 7592 and the job result is failed.
lines 3200-3222/3222 (END)
Mar 02 09:50:03 WhiteMint zmpkg.pl[5615]: BEGIN failed--compilation aborted at>
Mar 02 09:50:03 WhiteMint systemd[1]: zoneminder.service: Control process exit>
-- 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.
Mar 02 09:50:03 WhiteMint systemd[1]: zoneminder.service: Failed with result '>
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit zoneminder.service has entered the 'failed' state with result 'exi>
Mar 02 09:50:03 WhiteMint systemd[1]: Failed to start ZoneMinder CCTV recordin>
-- 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 7592 and the job result is failed.

This is pretty urgent for me so I'd appreciate any help. Please note that I am very new to ZoneMinder, systemctl and these kinds of packages and processes and I am still learning. If there is something I didn't include I'd be happy to correct myself.

Thanks in advance!
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: ZoneMinder not starting on Linux Mint 20.3

Post by Magic919 »

None of that seems to contain any actual error. Maybe you clipped off part of it.
-
Minty
Posts: 2
Joined: Tue Mar 01, 2022 10:28 am

Re: ZoneMinder not starting on Linux Mint 20.3

Post by Minty »

Magic919 wrote: Thu Mar 03, 2022 12:06 pm None of that seems to contain any actual error. Maybe you clipped off part of it.
I'm not sure I understand. I don't know what the actual error is. Is there something else I should be providing? My Zone Minder fails to start and that's all I get from it:

" Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details. "

I copied the full output of "systemctl status zoneminder.service" and of "journalctl -xe".
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: ZoneMinder not starting on Linux Mint 20.3

Post by Magic919 »

Ok. Both of the errors look like they are clipped off.

Check your MySQL database is running. Actually run zmupdate.pl as a good test. See what comes out.

Have a look on the ZM web interface Logs section too.
-
Post Reply