[solved] Newbie needs help to install zoneminder

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
oldboy
Posts: 3
Joined: Sat Apr 03, 2021 10:29 pm

[solved] Newbie needs help to install zoneminder

Post by oldboy »

I am on debian buster with mariadb, apache2, php, etc installed and have an actual working db for my photos. I am trying to install zoneminder. I followed the debian zoneminder guide with the zmrepo and followed all the steps and zoneminder was installed. But when I do localhost/zm, it gives me

Code: Select all

Unable to connect to ZM db.SQLSTATE[HY000] [1045] Access denied for user 'zmuser'@'localhost' (using password: YES)

Then I looked at the status

Code: Select all

sudo systemctl status zoneminder
it gave me

Code: Select all

zoneminder.service - ZoneMinder CCTV recording and surveillance system
   Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Thu 2021-04-08 16:33:12 EDT; 8s ago
  Process: 8292 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255/EXCEPTION)
Do I have to create a zoneminder database? I thought the zmrepo would have included it?
What is my next step? Thanks.
Last edited by oldboy on Fri Apr 09, 2021 8:49 pm, edited 1 time in total.
oldboy
Posts: 3
Joined: Sat Apr 03, 2021 10:29 pm

Re: Newbie needs help to install zoneminder

Post by oldboy »

I did some more

Code: Select all

sudo systemctl start zoneminder
Job for zoneminder.service failed because the control process exited with error code.
See "systemctl status zoneminder.service" and "journalctl -xe" for details.

Code: Select all

sudo journalctl -xe
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- An ExecStart= process belonging to unit zoneminder.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 255.
Apr 08 16:52:30 debian2 systemd[1]: zoneminder.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The unit zoneminder.service has entered the 'failed' state with result 'exit-code'.
Apr 08 16:52:30 debian2 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: https://www.debian.org/support
-- 
-- A start job for unit zoneminder.service has finished with a failure.
-- 
-- The job identifier is 23674 and the job result is failed.
Apr 08 16:52:36 debian2 sudo[9235]:     shum : TTY=pts/0 ; PWD=/home/shum ; USER=root ; COMMAND=/usr/bin/
Apr 08 16:52:36 debian2 sudo[9235]: pam_unix(sudo:session): session opened for user root by (uid=0)
lines 3065-3087/3087 (END)
oldboy
Posts: 3
Joined: Sat Apr 03, 2021 10:29 pm

Re: Newbie needs help to install zoneminder

Post by oldboy »

OK. found out my database is corrupt. Fixed it using

Code: Select all

# mysql_upgrade --force -u root -p
# service mysqld restart
Post Reply