Zoneminder installation/start error

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Desastermaster
Posts: 5
Joined: Fri Mar 22, 2024 2:36 pm

Zoneminder installation/start error

Post by Desastermaster »

Ive got this error after trying to start zoneminder for the first time.

Code: Select all

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 5157.
htpc zmpkg.pl[31089]: 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.
htpc zmpkg.pl[31089]: 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.
 htpc zmpkg[31089]: ERR [Error reconnecting to db: errstr:Access denied for user 'zmuser'@'localhost' (using password: YES) error val:]
htpc zmpkg.pl[31089]: 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.
 htpc zmpkg[31089]: ERR [Error reconnecting to db: errstr:Access denied for user 'zmuser'@'localhost' (using password: YES) error val:]
htpc zmpkg.pl[31089]: Unable to connect to DB. ZM Cannot continue.
htpc zmpkg.pl[31089]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 150.
htpc zmpkg.pl[31089]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
htpc zmpkg.pl[31089]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
htpc zmpkg.pl[31089]: Compilation failed in require at /usr/bin/zmpkg.pl line 34.
htpc zmpkg.pl[31089]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 34.
htpc 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.
htpc 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'.
htpc systemd[1]: Failed to start 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 5157 and the job result is failed.
I hope someone has a solution.

I´m running Ubuntu 22
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Zoneminder installation/start error

Post by dougmccrary »

OK. What guide did you use to install what version of zm?
Desastermaster
Posts: 5
Joined: Fri Mar 22, 2024 2:36 pm

Re: Zoneminder installation/start error

Post by Desastermaster »

This one
https://zoneminder.readthedocs.io/en/la ... 2-04-jammy

First there was an error because Apache2 listens on port 80 but this port was already used. So I changed the port from 80 to 8089. Apache2 was able to start with this different port.

I followed just the instructions for Ubuntu 22.04
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Zoneminder installation/start error

Post by dougmccrary »

So - it's working now?
Desastermaster
Posts: 5
Joined: Fri Mar 22, 2024 2:36 pm

Re: Zoneminder installation/start error

Post by Desastermaster »

No it's not working. Trying to start zm ended up with the message you see in the first post.

Something's wrong with the database i guess.
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Zoneminder installation/start error

Post by dougmccrary »

I suggest you look down at the 18.04 instructions to see if you missed anything. The Jammy instructions are not really complete.
You probably don't need to start over, just redo/do anything you may have missed. It is all critical for a successful install.
Desastermaster
Posts: 5
Joined: Fri Mar 22, 2024 2:36 pm

Re: Zoneminder installation/start error

Post by Desastermaster »

I haven't set up any MySQL Database. This is also not a part of the installation tutorial for Ubuntu 22.
dougmccrary
Posts: 1215
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Zoneminder installation/start error

Post by dougmccrary »

Yes, that's the LAMP. (Linux Apache Mysql/Mariadb Php)
You only need to install them; the ZM install will configure it all for a basic usable system, in most cases.
Desastermaster
Posts: 5
Joined: Fri Mar 22, 2024 2:36 pm

Re: Zoneminder installation/start error

Post by Desastermaster »

Could this a problem with my running mariadb instance? I'm using mariadb and PHP.8.2 for my Nextcloud and don't want to kill my running config.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Zoneminder installation/start error

Post by bbunge »

Instructions that work :https://wiki.zoneminder.com/Ubuntu_Serv ... der_1.36.x

Note: it may be best to wipe Ubuntu and start over. Recommend use Mariadb instead of MySQL
Post Reply