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
1.36 install fails on multiple platforms
Re: 1.36 install fails on multiple platforms
..... sorted out the 'scan' on the console
Re: 1.36 install fails on multiple platforms
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
https://zoneminder.readthedocs.io/en/st ... index.html
Re: 1.36 install fails on multiple platforms
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.
Re: 1.36 install fails on multiple platforms
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
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
Re: 1.36 install fails on multiple platforms
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 ***
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
Re: 1.36 install fails on multiple platforms
Ubuntu instructions: https://wiki.zoneminder.com/Ubuntu_Serv ... der_1.36.x
Debian Instructions:https://wiki.zoneminder.com/Debian_12_B ... and_1.37.x
Debian Instructions:https://wiki.zoneminder.com/Debian_12_B ... and_1.37.x