Zoneminder-Master v-1.35.18 on Ubuntu Server 20.04 Install Failed with ERRORS

Previous development branch now released as 1.36
Locked
linuxnutt
Posts: 37
Joined: Fri Aug 12, 2016 6:06 am

Zoneminder-Master v-1.35.18 on Ubuntu Server 20.04 Install Failed with ERRORS

Post by linuxnutt »

Hello,
Just tried to install Zoneminder-Master v-1.35.18 on Ubuntu Server 20.04 on a Rasberry Pi 4B 8GB Ram but the install ended with errors:
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1)

I followed, https://bkjaya.wordpress.com/2020/11/16 ... cal-fossa/

I guess this is what I get for adventure.. Trying to build a MultiServer Install first install remote ZoneMinder Server using the above went swimmingly fine with no problems.. built my confidence so the second install Raspberry Pi 4B Storage and DataBase server "apt install zoneminder" failed. Below I've included the output of the install, and syslog at the time of install.

ZoneMinder Install:
https://pastebin.com/hWQpZj40
ZoneMInder Install Syslog:
https://pastebin.com/12DuPrhA

Any help here is appreciated
Thanks
dougmccrary
Posts: 1210
Joined: Sat Aug 31, 2019 7:35 am
Location: San Diego

Re: Zoneminder-Master v-1.35.18 on Ubuntu Server 20.04 Install Failed with ERRORS

Post by dougmccrary »

Looks like you need to do the mysql password bit again - drop the zm database, make password, then recreate it with zm_create.sql.
I had the same problem.

Good luck.
User avatar
bkjaya1952
Posts: 282
Joined: Sat Aug 25, 2018 3:24 pm
Location: Sri Lanka

Re: Zoneminder-Master v-1.35.18 on Ubuntu Server 20.04 Install Failed with ERRORS

Post by bkjaya1952 »

Please try

mysql -e "drop database zm;"

mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql

mysql -e "ALTER USER 'zmuser'@localhost IDENTIFIED BY 'zmpass';"

mysql -e "GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'localhost' WITH GRANT OPTION;"

mysql -e "FLUSH PRIVILEGES ;"
User avatar
iconnor
Posts: 2900
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Zoneminder-Master v-1.35.18 on Ubuntu Server 20.04 Install Failed with ERRORS

Post by iconnor »

The issue here is that it rejected our default password because it is too simple.

You are going to have to create the user yourself and update /etc/zm/zm.conf with the username/password.
linuxnutt
Posts: 37
Joined: Fri Aug 12, 2016 6:06 am

[Solved] Zoneminder-Master v-1.35.18 on Ubuntu Server 20.04 Install Failed with ERRORS

Post by linuxnutt »

Thank you all for the feedback.
My issue was two fold;
1) For what ever reason I haven't figured out. I was not able to get a clean install of ZoneMinder 1.35.18. I tried twice and was able to get the same error on the 2nd install as I got on the first.
Errors were encountered while processing:
zoneminder
E: Sub-process /usr/bin/dpkg returned an error code (1).

Thus after producing the same error twice I decided to install zoneminder stable 1.34.23. It was a success!

2) While Creating the zmuser and password "zmpass"I kept getting, "ERROR 1819 (HY000): Your password does not satisfy the current policy requirements".
My install of lamp-server using "sudo tasksel install lamp-server" it apparently loaded "Validate Password" module. When mysql is loaded there is a "Validate Password" module loaned at the time of setting up mysql and if enabled it will enforce validate password rules. The default password "zmpass" for "zmuser" are in fact to simple. While reading multi-server install I recalled, Ref, https://zoneminder.readthedocs.io/en/st ... erver.html, #7;"If you have chosen to change the ZoneMinder database account credentials to something other than zmuser/zmpass, you must now update zm.conf on each ZoneMinder Server. Change ZM_DB_USER and ZM_DB_PASS to the values you created in the previous step." This coupled with developer "iconnor" comments I knew I was on the right trail. So editing "ZM_DB_USER" and "ZM_DB_PASS" in /etc/zm/zm.conf with a password that meets the MEDIUM password validation rules I was able to create the zmuser.

Anyway, I did complete zoneminder install on Raspberry Pi 4B. Now I just need to complete the rest of the Mult Server install, so still time for more fun.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Zoneminder-Master v-1.35.18 on Ubuntu Server 20.04 Install Failed with ERRORS

Post by bbunge »

You may be better off using Mariadb vs. MySQL.
See: https://wiki.zoneminder.com/Ubuntu_Serv ... der_1.34.x
Yo can use "add-apt-repository ppa:iconnor/master" in place of "add-apt-repository ppa:iconnor/zoneminder-1.34"
Locked