Ubuntu 16.04 Release with Zoneminder 1.29.0

Forum for questions and support relating to the 1.29.x releases only.
Pedulla
Posts: 133
Joined: Thu Nov 27, 2014 11:16 am
Location: Portland, Or

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by Pedulla » Tue May 03, 2016 1:19 am

bbunge wrote: If you run Zoneminder long enough with lots of events, you will have to tune the MySQL, or Mariadb, settings.

bb
Can someone please quantify "lots" of events?

1,000; 10,000; 100,000...

Pedulla
Posts: 133
Joined: Thu Nov 27, 2014 11:16 am
Location: Portland, Or

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by Pedulla » Tue May 03, 2016 2:56 am

Bam!

Nailed it first time through with the Mariadb install.
Nice work!

SteveGilvarry
Posts: 418
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by SteveGilvarry » Tue May 03, 2016 6:48 am

@sigge And if all installed as per bbunge, then as per MJN, enable php in apache, using MJN's command, or maybe this

sudo a2enmod php7.0
Production Zoneminder 1.32.3
Random Selection of Cameras (Dahua and Hikvision)
More Dev VM's than I care to count.

Sigge
Posts: 89
Joined: Mon May 02, 2016 8:14 am

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by Sigge » Tue May 03, 2016 11:25 am

I "purged" all the packages including mysql. Just kept apache2. Then reinstalled them all.

Now it works!

Just have to make my camera work.....

User avatar
caseyj
Posts: 22
Joined: Thu Dec 24, 2015 4:21 am
Location: Thailand

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by caseyj » Tue May 03, 2016 12:23 pm

Can someone do this
with Ubuntu 16.04 Server Release ? :oops: :oops:

bbunge
Posts: 2335
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by bbunge » Tue May 03, 2016 4:22 pm

caseyj wrote:Can someone do this
with Ubuntu 16.04 Server Release ? :oops: :oops:
Wait for it. Am still working on upgrade procedures, which work sometimes, fighting for a warranty claim on my Maytag heat pump, and other "life" issues.

bb

User avatar
caseyj
Posts: 22
Joined: Thu Dec 24, 2015 4:21 am
Location: Thailand

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by caseyj » Wed May 04, 2016 4:55 am

Wait for it
Sure. Thanks so much for your effort !

Zsolt
Posts: 12
Joined: Sun Mar 08, 2015 1:56 pm

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by Zsolt » Mon May 23, 2016 9:05 pm

Hi guys,
I'm stuck here:

Code: Select all

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

Code: Select all

ERROR 1819 (HY000) at line 562: Your password does not satisfy the current policy requirements
although my settings are:

Code: Select all

mysql> SHOW VARIABLES LIKE 'validate_password%';
+--------------------------------------+-------+
| Variable_name                        | Value |
+--------------------------------------+-------+
| validate_password_dictionary_file    |       |
| validate_password_length             | 8     |
| validate_password_mixed_case_count   | 1     |
| validate_password_number_count       | 1     |
| validate_password_policy             | LOW   |
| validate_password_special_char_count | 1     |
+--------------------------------------+-------+
6 rows in set (0.03 sec)
any help is appreciated.

bbunge
Posts: 2335
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by bbunge » Mon May 23, 2016 11:56 pm

Do not use sudo

Zsolt
Posts: 12
Joined: Sun Mar 08, 2015 1:56 pm

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by Zsolt » Tue May 24, 2016 8:53 am

same result

Code: Select all

kamera@dvr:~$ mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
Enter password:
ERROR 1819 (HY000) at line 562: Your password does not satisfy the current policy requirements

User avatar
MJN
Posts: 236
Joined: Wed Jan 17, 2007 10:29 am
Location: Wiltshire, UK
Contact:

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by MJN » Tue May 24, 2016 9:04 am

You could always change the password ('zmpass') to something that satisfies the minimum requirements listed. You will have to make sure it is reflected in /etc/zm.conf too.

Zsolt
Posts: 12
Joined: Sun Mar 08, 2015 1:56 pm

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by Zsolt » Tue May 24, 2016 9:32 am

The message above is related to zmuser or root?
I think it's root. The root password contains upper case, lover case, numbers and special characters.

bbunge
Posts: 2335
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by bbunge » Tue May 24, 2016 11:36 am

Use the password you set up with mysql or mariadb

User avatar
MJN
Posts: 236
Joined: Wed Jan 17, 2007 10:29 am
Location: Wiltshire, UK
Contact:

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by MJN » Tue May 24, 2016 1:39 pm

Apologies I didn't spot that it was the MySQL root user. Disregard my suggestion! (or simplify the root password if acceptable from a security perspective).

Zsolt
Posts: 12
Joined: Sun Mar 08, 2015 1:56 pm

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Post by Zsolt » Tue May 24, 2016 5:07 pm

Nothing helped. Wiped everything and started from scratch.

Followed this tutorial -> https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way but now apache2 won't start.

Code: Select all

service apache2 reload
returns

Code: Select all

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

Code: Select all

systemctl status apache2.service

Code: Select all

root@dvr:/home/kamera# systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: active (running) (Result: exit-code) since Tue 2016-05-24 19:43:11 EEST; 22min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 567 ExecReload=/etc/init.d/apache2 reload (code=exited, status=1/FAILURE)
   CGroup: /system.slice/apache2.service
           ├─27441 /usr/sbin/apache2 -k start
           ├─27444 /usr/sbin/apache2 -k start
           ├─27445 /usr/sbin/apache2 -k start
           └─27446 /usr/sbin/apache2 -k start

May 24 20:05:02 dvr apache2[567]:  * Reloading Apache httpd web server apache2
May 24 20:05:02 dvr apache2[567]:  *
May 24 20:05:02 dvr apache2[567]:  * The apache2 configtest failed. Not doing anything.
May 24 20:05:02 dvr apache2[567]: Output of config test was:
May 24 20:05:02 dvr apache2[567]: AH00526: Syntax error on line 11 of /etc/apache2/conf-enabled/zoneminder.conf:
May 24 20:05:02 dvr apache2[567]: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
May 24 20:05:02 dvr apache2[567]: Action 'configtest' failed.
May 24 20:05:02 dvr apache2[567]: The Apache error log may have more information.
May 24 20:05:02 dvr systemd[1]: apache2.service: Control process exited, code=exited status=1
May 24 20:05:02 dvr systemd[1]: Reload failed for LSB: Apache2 web server.
my zoneminder.conf

Code: Select all

root@dvr:/home/kamera# cat /etc/apache2/conf-enabled/zoneminder.conf
# Remember to enable cgi mod (i.e. "a2enmod cgi").
ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    AllowOverride All
    Require all granted
</Directory>

Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
  php_flag register_globals off
  Options Indexes FollowSymLinks
  <IfModule mod_dir.c>
    DirectoryIndex index.php
  </IfModule>
</Directory>

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests