1.36 install fails on multiple platforms

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
kiwibear
Posts: 3
Joined: Fri Aug 23, 2024 1:36 am

1.36 install fails on multiple platforms

Post by kiwibear »

I have a problem. Can't get ZM to install.
I have tried on 3 machines (1) running Ubuntu-Mate 22.04 (2) new install ubuntu 22.04 (3) Raspberry Pi 4 'Bookworm'.
I have tried the install instructions from various sites - all produce the same result:
After:
sudo systemctl enable zoneminder
sudo systemctl start zoneminder
I get:
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 can't find either "systemctl status zoneminder.service" or "journalctl -xeu zoneminder.service" with a file search nor even just "zoneminder.service".

While i accept I may be missing the obvious .... well I am missing it & stuck.

I can get ZM running in docker, but all is not well
with; dlandon/zoneminder:latest (1.86 GB) container I can't open the interface error: The connection to the server was reset while the page was loading.
with: zoneminderhq/zoneminder:latest (884.99 MB).... all works, but console doesn't seem to be latest as it does not have the 'scan for camera' feature. Of course I can work around this so I am not entirely lost.

Cheers
kiwibear
kiwibear
Posts: 3
Joined: Fri Aug 23, 2024 1:36 am

Re: 1.36 install fails on multiple platforms

Post by kiwibear »

..... sorted out the 'scan' on the console :)
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: 1.36 install fails on multiple platforms

Post by iconnor »

you likely have to create the database. The debian packages (and hence ubuntu as well) want you to do everything manually.

https://zoneminder.readthedocs.io/en/st ... index.html
mikb
Posts: 661
Joined: Mon Mar 25, 2013 12:34 pm

Re: 1.36 install fails on multiple platforms

Post by mikb »

kiwibear wrote: Fri Aug 23, 2024 2:07 am
See "systemctl status zoneminder.service" and "journalctl -xeu zoneminder.service" for details.

I can't find either "systemctl status zoneminder.service" or "journalctl -xeu zoneminder.service" with a file search nor even just "zoneminder.service".
The things you put in quotes are not files -- so a file search will miss them. They are suggested commands and options to run at the command prompt. Maybe the error message should say "RUN .... for details" :)

systemctl and journalctl are commands. Everything after that is options to those commands.
kiwibear
Posts: 3
Joined: Fri Aug 23, 2024 1:36 am

Re: 1.36 install fails on multiple platforms

Post by kiwibear »

Thanks guys :)
I did a LAMP install and confirmed mysql running with 'systemctl status apache2 mysql --no-pager -l' & I did read the docs and followed the install instructions on https://linux.how2shout.com/how-to-inst ... 20-04-lts/ & zoneminder.readthedocs.io/en/stable/installationguide/ubuntu.html#ubuntu-22-04-jammy among others ....

mikb - big help thanks. Yes it was obvious! & right in front of me. The problem appears to be the password
ERR [Error reconnecting to db: errstr:Access denied for user 'zmuser'@'localhost' (using password: YES) error val:]
I am sure I didn't miss a step in the various installs I tried (only the Raspi install had a password step)

Anywho - where to now? will try to sort out the password problem
https://askubuntu.com/questions/1493828 ... -user-zmus
looks useful
Cheers
kiwibear
mikb
Posts: 661
Joined: Mon Mar 25, 2013 12:34 pm

Re: 1.36 install fails on multiple platforms

Post by mikb »

kiwibear wrote: Sat Aug 24, 2024 3:43 am (only the Raspi install had a password step)
OK, that would be a login/system password for accessing your "pi" account/the machine as a whole.

There are passwords for accessing the ZoneMinder interface (otherwise anyone with network access to your machine may get in there and view cameras/enable-disable them/wipe events etc.) but also ...

There is a separate password for the MySQL _database_ that ZoneMinder uses. It's been a long time since installing ZM so my notes are probably out of date, but there were two places this came up on my installation.

1) When manually setting up and securing MySQL, the overall database system. At this point I'd never used/configured MySQL on the machine so I had a blank canvas!

Code: Select all

Initialise: mysql_install_db --user=mysql
Enable at reboot: chmod 755 /etc/rc.d/rc.mysqld
Manually start server: /etc/rc.d/rc.mysqld start
Secure it: /usr/bin/mysql_secure_installation
*** Supply a new root password for MySQL *** 
So that's where the password was *set*.

2) Then it was *used* here ... creating the specific database for ZM within MySQL, substituting PASSWORD for the actual password.

Code: Select all

mysql -uroot -pPASSWORD
        create database zm;
        exit;

mysql -uroot -pPASSWORD zm < db/zm_create.sql

mysql -uroot -pPASSWORD zm
        grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'ZM-PASSWORD';
        quit;

mysqladmin  -uroot -pPASSWORD reload

So somewhere around there you either haven't installed MySQL, haven't secured it and created the MySQL 'zm' user, or haven't created/adjusted the permissions for that user to be able to do stuff. Check through your install instructions for anything that looks like the above and see if you skipped something.
bbunge
Posts: 2951
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: 1.36 install fails on multiple platforms

Post by bbunge »

Post Reply