Page 1 of 1

Zoneminder 1.30 issue ubuntu 16.04

Posted: Fri Jan 06, 2017 11:39 pm
by sb3rla
Hi all, after a new installation follwing this guide https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way

i try to start zonemider but here are the problem

Code: Select all

sb3rla@sb3rla-NT-A2400-NT-A3500:~$ sudo service zoneminder status
● zoneminder.service - ZoneMinder CCTV recording and surveillance system
   Loaded: loaded (/lib/systemd/system/zoneminder.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since ven 2017-01-06 23:15:30 CET; 1h 8min ago
  Process: 1512 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255)

gen 06 23:15:30 sb3rla-NT-A2400-NT-A3500 zmpkg.pl[1512]: Can't connect to db at /usr/share/perl5/ZoneMinder/Config.pm line 119.
gen 06 23:15:30 sb3rla-NT-A2400-NT-A3500 zmpkg.pl[1512]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder/Config.pm line 119.
gen 06 23:15:30 sb3rla-NT-A2400-NT-A3500 zmpkg.pl[1512]: Compilation failed in require at /usr/share/perl5/ZoneMinder.pm line 33.
gen 06 23:15:30 sb3rla-NT-A2400-NT-A3500 zmpkg.pl[1512]: BEGIN failed--compilation aborted at /usr/share/perl5/ZoneMinder.pm line 33.
gen 06 23:15:30 sb3rla-NT-A2400-NT-A3500 zmpkg.pl[1512]: Compilation failed in require at /usr/bin/zmpkg.pl line 48.
gen 06 23:15:30 sb3rla-NT-A2400-NT-A3500 zmpkg.pl[1512]: BEGIN failed--compilation aborted at /usr/bin/zmpkg.pl line 48.
gen 06 23:15:30 sb3rla-NT-A2400-NT-A3500 systemd[1]: zoneminder.service: Control process exited, code=exited status=255
gen 06 23:15:30 sb3rla-NT-A2400-NT-A3500 systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
gen 06 23:15:30 sb3rla-NT-A2400-NT-A3500 systemd[1]: zoneminder.service: Unit entered failed state.
gen 06 23:15:30 sb3rla-NT-A2400-NT-A3500 systemd[1]: zoneminder.service: Failed with result 'exit-code'.
sb3rla@sb3rla-NT-A2400-NT-A3500:~$ 
line 119 of config.pm is blank... it's normal?


this is line 33 of zoneminder.pm

Code: Select all

use ZoneMinder::Config qw(:all);

and this is line 48 of zmpkg.pl

Code: Select all

use ZoneMinder;
what is the problem? thank all in advance !!

Re: Zoneminder 1.30 issue ubuntu 16.04

Posted: Sat Jan 07, 2017 1:43 am
by bbunge
I would go back over the instructions to see if you missed something. You may want to start with a fresh Ubuntu install. Do Not use a VM or try to install in a container. Don't look at a step and think you don't need it. I have run that install on average once a week since 16.04 came out and have never had an install fail or refuse to run. Oh, do not use the PPA master as sometimes that does not work well...

Re: Zoneminder 1.30 issue ubuntu 16.04

Posted: Sat Jan 07, 2017 1:56 am
by jfmasson
Hi had the same issue yesterday. After 2 retry on fresh install on Ubuntu i found the cause. With the PPA iconnor, it seem to install ZM 1.29 and not 1.30. I successful to finish installation with the 1.29 installation guide with assign right and create DB in MYSQL. But at the end, i have the ZM 1.29 and not 1.30. I am here in my understanding, if it can help someone?

Re: Zoneminder 1.30 issue ubuntu 16.04

Posted: Sat Jan 07, 2017 2:39 am
by iconnor
It looks like there is an issue with your mysql credentials.

Re: Zoneminder 1.30 issue ubuntu 16.04

Posted: Sat Jan 07, 2017 3:08 am
by jfmasson
Why the version installed of ZoneMinder is 1.29 after corrected mysql issue? I will retry this week-end with Centos and retry with Ubuntu.

Re: Zoneminder 1.30 issue ubuntu 16.04

Posted: Sat Jan 07, 2017 7:07 pm
by jfmasson
Ok. I resolve the my problem. Thanks iconnor, it's a mysql credentials problem. My mistake was putting a root password. This morning i was't give root password for mysql when installing Ubuntu and it's working with Zoneminder 1.30.

Thanks

Re: Zoneminder 1.30 issue ubuntu 16.04

Posted: Mon Jan 09, 2017 6:18 pm
by sb3rla
how can i remove root mysql password? have to reinstall? Can i reinstall only mysql or have to start a fresh installaztion?

ty guys