Fresh install on ubuntu 22.04 - ZM not starting

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
danmitch1
Posts: 11
Joined: Sat May 25, 2024 8:54 pm

Fresh install on ubuntu 22.04 - ZM not starting

Post by danmitch1 »

Hello,

Ive been playing with zoneminder for a while now, thanks for creating it.
Im not an expert in linux.
Ive installed zoneminder using the read the docs directions many times, but now, it no longer works.

Im running into a problem with a fresh install today on ubuntu server 22.04.
After adding the repo with this cmd sudo add-apt-repository ppa:iconnor/zoneminder-1.36
im getting

Err:6 https://ppa.launchpadcontent.net/iconno ... .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/iconno ... .36/ubuntu noble Release' does not have a Release file.

Then if I try to start zm after installing it, it wont start giving error:
systemctl status zoneminder.service
× 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 Sat 2024-05-25 20:41:40 UTC; 18min ago
Docs: http://zoneminder.readthedocs.org/en/latest/
Process: 22469 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255/EXCEPTION)
CPU: 81ms

May 25 20:41:40 ubuntu-zm-tiny zmpkg[22469]: ERR [Error reconnecting to db: errstr:Access denied for user 'www-data'@'localhost' (using password: NO) error val:]
May 25 20:41:40 ubuntu-zm-tiny zmpkg.pl[22469]: Unable to connect to DB. ZM Cannot continue.
May 25 20:41:40 ubuntu-zm-tiny zmpkg.pl[22469]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 150.
May 25 20:41:40 ubuntu-zm-tiny zmpkg.pl[22469]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
May 25 20:41:40 ubuntu-zm-tiny zmpkg.pl[22469]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
May 25 20:41:40 ubuntu-zm-tiny zmpkg.pl[22469]: Compilation failed in require at /usr/bin/zmpkg.pl line 34.
May 25 20:41:40 ubuntu-zm-tiny zmpkg.pl[22469]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.
May 25 20:41:40 ubuntu-zm-tiny systemd[1]: zoneminder.service: Control process exited, code=exited, status=255/EXCEPTION
May 25 20:41:40 ubuntu-zm-tiny systemd[1]: zoneminder.service: Failed with result 'exit-code'.
May 25 20:41:40 ubuntu-zm-tiny systemd[1]: Failed to start zoneminder.service - ZoneMinder CCTV recording and surveillance system.


Any help would be greatly appreciated!
dougmccrary
Posts: 1271
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Fresh install on ubuntu 22.04 - ZM not starting

Post by dougmccrary »

yeah, you're right. I suggest you just use jammy instead, for now.
danmitch1
Posts: 11
Joined: Sat May 25, 2024 8:54 pm

Re: Fresh install on ubuntu 22.04 - ZM not starting

Post by danmitch1 »

I thought ubuntu 22.04 is considered Jammy? This is what im using currently, following this guide https://zoneminder.readthedocs.io/en/la ... buntu.html

So looking closer at my issue, seems there are 2.

When adding the repository using add-apt-repository ppa:iconnor/zoneminder-1.36
im getting (logged in as root)

Err:6 https://ppa.launchpadcontent.net/iconno ... .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/iconno ... .36/ubuntu noble Release' does not have a Release file.

That has never happened before.

Then when starting after ignoring the above I get the error
Error reconnecting to db: errstr:Access denied for user 'www-data'@'localhost' (using password: NO) error val:]

So this seems I just need to make sure the www-data user is configure in mysql with correct password or something to that effect, but ive never had this issue on a fresh install before following the same guide.

Something seems to have changed in the last couple of weeks?

Thanks again!
dougmccrary
Posts: 1271
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Fresh install on ubuntu 22.04 - ZM not starting

Post by dougmccrary »

OK. I said jammy bc you were pulling noble. My bad.
So it seems something is wrong with your 22.04 install. It's thinking it's noble, but if it is, there is no noble package. So you can't ignore the error.
There is a jammy package, which is what it should be asking for.
danmitch1
Posts: 11
Joined: Sat May 25, 2024 8:54 pm

Re: Fresh install on ubuntu 22.04 - ZM not starting

Post by danmitch1 »

That makes sense, i refreshed my iso of ubuntu server, somehow i ended up with the wrong version i guess.

Ill try downloading the jammy version and see how it goes!

Thanks for the tip!
User avatar
iconnor
Posts: 2949
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Fresh install on ubuntu 22.04 - ZM not starting

Post by iconnor »

Use ppa:iconnor/zoneminder-proposed for nobie packages of 1.36
danmitch1
Posts: 11
Joined: Sat May 25, 2024 8:54 pm

Re: Fresh install on ubuntu 22.04 - ZM not starting

Post by danmitch1 »

Adding the above repo seemed successful but when trying to install zm, the dependencies are having a fit:

root@ubuntu-zm-tiny:~# 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: apache2 (>= 2.4.6-4~) but it is not going to be installed or
nginx but it is not going to be installed or
httpd
Recommends: libapache2-mod-php or
php-fpm
Recommends: default-mysql-server but it is not going to be installed or
mariadb-server but it is not going to be installed or
virtual-mysql-server
Recommends: zoneminder-doc (>= 1.36.34~20240522.42-noble1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.


Gonna try downloading and installing the jammy one from here https://releases.ubuntu.com/jammy
Ill report back!
danmitch1
Posts: 11
Joined: Sat May 25, 2024 8:54 pm

Re: Fresh install on ubuntu 22.04 - ZM not starting

Post by danmitch1 »

Installed the jammy ubuntu and now all is as expected, thanks for the tips!
dougmccrary
Posts: 1271
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Fresh install on ubuntu 22.04 - ZM not starting

Post by dougmccrary »

Yay! :D
Post Reply