Trouble installing ZoneMinder on Ubuntu

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Phantom
Posts: 3
Joined: Sun Jun 09, 2024 6:20 pm

Trouble installing ZoneMinder on Ubuntu

Post by Phantom »

Hello, when fully going through the steps of installing Zoneminder, I'm getting this error when trying to start it;

Code: Select all

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.
I tried this on a local pc running Ubuntu 24.04, suspecting incompatibility with this new version of Ubuntu, i tried on a Linode running 22.04 with the same result. I'm fairly novice and such, but i suspect part of the issue is that the repo you're told to add in all the tutorials i've found gives this output, mentioning '404' and it does not have a release file;

Code: Select all

Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Found existing deb entry in /etc/apt/sources.list.d/iconnor-ubuntu-zoneminder-1_36-noble.sources
Hit:1 http://mirrors.linode.com/ubuntu noble InRelease
Hit:2 http://mirrors.linode.com/ubuntu noble-updates InRelease
Hit:3 http://mirrors.linode.com/ubuntu noble-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:5 https://ppa.launchpadcontent.net/iconnor/zoneminder-1.36/ubuntu noble InRelease
Err:6 https://ppa.launchpadcontent.net/iconnor/zoneminder-1.36/ubuntu noble Release
  404  Not Found [IP: 2620:2d:4000:1::81 443]
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/iconnor/zoneminder-1.36/ubuntu noble Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
root@localhost:/home# sudo apt update && sudo apt upgrade
Hit:1 http://mirrors.linode.com/ubuntu noble InRelease
Hit:2 http://mirrors.linode.com/ubuntu noble-updates InRelease
Hit:3 http://mirrors.linode.com/ubuntu noble-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu noble-security InRelease
Ign:5 https://ppa.launchpadcontent.net/iconnor/zoneminder-1.36/ubuntu noble InRelease
Err:6 https://ppa.launchpadcontent.net/iconnor/zoneminder-1.36/ubuntu noble Release
  404  Not Found [IP: 2620:2d:4000:1::81 443]
Reading package lists... Done
E: The repository 'https://ppa.launchpadcontent.net/iconnor/zoneminder-1.36/ubuntu noble Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Here's the output of journalctl -xeu zoneminder.service

Code: Select all

Starting zoneminder.service - ZoneMinder CCTV recording and surveillance system...
░░ Subject: A start job for unit zoneminder.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit zoneminder.service has begun execution.
░░
░░ The job identifier is 2584.
Jun 09 18:25:58 localhost zmpkg.pl[15605]: DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Jun 09 18:25:58 localhost zmpkg.pl[15605]: DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Jun 09 18:25:58 localhost zmpkg[15605]: ERR [Error reconnecting to db: errstr:Access denied for user 'zmuser'@'localhost' (using password: YES) error val:]
Jun 09 18:25:58 localhost zmpkg.pl[15605]: DBI connect('database=zm;host=localhost','zmuser',...) failed: Access denied for user 'zmuser'@'localhost' (using password: YES) at /usr/share/perl5/ZoneMinder/Database.pm line 110.
Jun 09 18:25:58 localhost zmpkg[15605]: ERR [Error reconnecting to db: errstr:Access denied for user 'zmuser'@'localhost' (using password: YES) error val:]
Jun 09 18:25:58 localhost zmpkg.pl[15605]: Unable to connect to DB. ZM Cannot continue.
Jun 09 18:25:58 localhost zmpkg.pl[15605]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 150.
Jun 09 18:25:58 localhost zmpkg.pl[15605]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
Jun 09 18:25:58 localhost zmpkg.pl[15605]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Jun 09 18:25:58 localhost zmpkg.pl[15605]: Compilation failed in require at /usr/bin/zmpkg.pl line 34.
Jun 09 18:25:58 localhost zmpkg.pl[15605]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.
Jun 09 18:25:58 localhost 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.
Jun 09 18:25:58 localhost 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'.
Jun 09 18:25:58 localhost 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 2584 and the job result is failed.
and systemctl status zoneminder.service

Code: Select all

× zoneminder.service - ZoneMinder CCTV recording and surveillance system
     Loaded: loaded (/usr/lib/systemd/system/zoneminder.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Sun 2024-06-09 18:25:58 UTC; 8min ago
       Docs: http://zoneminder.readthedocs.org/en/latest/
    Process: 15605 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255/EXCEPTION)
        CPU: 96ms

Jun 09 18:25:58 localhost zmpkg[15605]: ERR [Error reconnecting to db: errstr:Access denied for user 'zmuser'@'localhost' (using password: YES) error val:]
Jun 09 18:25:58 localhost zmpkg.pl[15605]: Unable to connect to DB. ZM Cannot continue.
Jun 09 18:25:58 localhost zmpkg.pl[15605]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 150.
Jun 09 18:25:58 localhost zmpkg.pl[15605]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
Jun 09 18:25:58 localhost zmpkg.pl[15605]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
Jun 09 18:25:58 localhost zmpkg.pl[15605]: Compilation failed in require at /usr/bin/zmpkg.pl line 34.
Jun 09 18:25:58 localhost zmpkg.pl[15605]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.
Jun 09 18:25:58 localhost systemd[1]: zoneminder.service: Control process exited, code=exited, status=255/EXCEPTION
Jun 09 18:25:58 localhost systemd[1]: zoneminder.service: Failed with result 'exit-code'.
Jun 09 18:25:58 localhost systemd[1]: Failed to start zoneminder.service - ZoneMinder CCTV recording and surveillance system.
Again, as aformentioned, i'm novice. It's possible i'm doing something completely wrong. Thanks!

I've tried these tutorials,
https://www.how2shout.com/linux/how-to- ... 20-04-lts/
https://zoneminder.readthedocs.io/en/st ... 2-04-jammy
Phantom
Posts: 3
Joined: Sun Jun 09, 2024 6:20 pm

Re: Trouble installing ZoneMinder on Ubuntu

Post by Phantom »

After further investigating your forums, it appears Zone Minder is supported on 24.04 :D , which makes things easier for me to prevent needing to downgrade.

However, using the proposed repo, i get this when trying to install ZoneMinder.

Code: Select all

sudo apt install -y zoneminder
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 zoneminder : Depends: libswscale6 but it is not installable or
                       libswscale5 but it is not installable or
                       libswscale4 but it is not installable
              Depends: libjwt-gnutls0 but it is not installable or
                       libjwt0 but it is not installable
              Recommends: zoneminder-doc (>= 1.36.34~20240530.50-noble1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Should i try individually installing these dependencies? i'm assuming that's what they are, anyways.
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Trouble installing ZoneMinder on Ubuntu

Post by iconnor »

No hang on I need to update the dependencies list for noble I'll get it done today. Actually I just did it, new packages building.
Phantom
Posts: 3
Joined: Sun Jun 09, 2024 6:20 pm

Re: Trouble installing ZoneMinder on Ubuntu

Post by Phantom »

I'll give it a try later, thanks!
montreal73
Posts: 9
Joined: Fri Sep 16, 2022 7:57 pm

Re: Trouble installing ZoneMinder on Ubuntu

Post by montreal73 »

I followed the same path, using the Jammy step by step (https://zoneminder.readthedocs.io/en/st ... 2-04-jammy)

Next I added ppa:iconnor/zoneminder-proposed.

I get the this error messages:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
zoneminder : Depends: libswscale6 but it is not installable or
libswscale5 but it is not installable or
libswscale4 but it is not installable
E: Unable to correct problems, you have held broken packages.
TheBearAk
Posts: 5
Joined: Mon Jul 21, 2014 9:50 pm

Re: Trouble installing ZoneMinder on Ubuntu

Post by TheBearAk »

"Jun 09 18:25:58 localhost zmpkg[15605]: ERR [Error reconnecting to db: errstr:Access denied for user 'zmuser'@'localhost' (using password: YES) error val:]
Jun 09 18:25:58 localhost zmpkg.pl[15605]: Unable to connect to DB. ZM Cannot continue."

Kind of points to a DB authentication issue. Did you use MariaDB (mysql)?

Have you set up the database? Zoneminder install will not always do this for you.
rik
Posts: 24
Joined: Fri Jun 08, 2012 10:13 pm

Re: Trouble installing ZoneMinder on Ubuntu

Post by rik »

[similar post to zoneminder-chat slack channel. still don't know
which folks prefer?]

I'm trying to get ZM working with ubuntu 24.04 on a raspberry pi5.

@iconner, your June 10 post makes it seem like you were just then pushing out a new
version? I find [ZM 1.36.33 for
U24.04](https://launchpad.net/ubuntu/noble/+package/zoneminder) via
launchpad, and it seems like the version to get? (I can't find a date on it?)

and you talk about PAID ONLY PPA?! wtf?!
Post Reply