Ubuntu Install Issues

Forum for questions and support relating to the 1.29.x releases only.
Locked
LineNoise
Posts: 4
Joined: Fri Jul 08, 2016 9:51 pm

Ubuntu Install Issues

Post by LineNoise »

Hello, I'm trying to get ZoneMinder working on Ubuntu Server 16.04. I followed this guide: https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way


When I try and start Zoneminder I get the following log entries:

Code: Select all

root@eyeinthesky:/home/linenoise# systemctl status zoneminder.service
● 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 Fri 2016-07-08 16:46:31 CDT; 16h ago
  Process: 3523 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255)

Jul 08 16:46:21 eyeinthesky sudo[3537]:     root : TTY=unknown ; PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/usr/bin/zmdc.pl startup
Jul 08 16:46:21 eyeinthesky sudo[3537]: pam_unix(sudo:session): session opened for user www-data by (uid=0)
Jul 08 16:46:21 eyeinthesky zmpkg.pl[3523]: Use of uninitialized value $Config{"ZM_PATH_SOCKS"} in concatenation (.) or string at /usr/bin/zmdc.pl line 72.
Jul 08 16:46:21 eyeinthesky zmpkg.pl[3523]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/ZoneMinder/Logger.pm line 155.
Jul 08 16:46:21 eyeinthesky zmpkg.pl[3523]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/ZoneMinder/Logger.pm line 205.
Jul 08 16:46:31 eyeinthesky sudo[3537]: pam_unix(sudo:session): session closed for user www-data
Jul 08 16:46:31 eyeinthesky systemd[1]: zoneminder.service: Control process exited, code=exited status=255
Jul 08 16:46:31 eyeinthesky systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
Jul 08 16:46:31 eyeinthesky systemd[1]: zoneminder.service: Unit entered failed state.
Jul 08 16:46:31 eyeinthesky systemd[1]: zoneminder.service: Failed with result 'exit-code'.
I really haven't tried anything but some light googling to try and resolve this, but didn't turn up with anything substantial. Thanks for any help or suggestions.
mocho
Posts: 3
Joined: Sat Jul 09, 2016 4:19 am

Re: Ubuntu Install Issues

Post by mocho »

See this
http://zoneminder.readthedocs.io/en/sta ... rom-source

Look specialy at step 10 with paths and confirm that your are correct.
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Ubuntu Install Issues

Post by bbunge »

mocho wrote:See this
http://zoneminder.readthedocs.io/en/sta ... rom-source

Look specialy at step 10 with paths and confirm that your are correct.
These are old procedures for Ubuntu 14X. You were on the right WIKI page for a new install. Just make sure you follow the instructions as they are written and Zoneminder will work. I recommend you start with a fresh install of Ubuntu server.

bb
LineNoise
Posts: 4
Joined: Fri Jul 08, 2016 9:51 pm

Re: Ubuntu Install Issues

Post by LineNoise »

I did have to make those changes. Thank you for the link. Unfortunately, I'm getting the same results.

Code: Select all

root@eyeinthesky:/home/linenoise# systemctl status zoneminder.service
● 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 Sat 2016-07-09 23:49:50 CDT; 40s ago
  Process: 18229 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255)

Jul 09 23:49:40 eyeinthesky sudo[18244]:     root : TTY=unknown ; PWD=/usr/share/zoneminder/www ; USER=www-data ; COMMAND=/usr/bin/zmdc.pl startu
Jul 09 23:49:40 eyeinthesky sudo[18244]: pam_unix(sudo:session): session opened for user www-data by (uid=0)
Jul 09 23:49:40 eyeinthesky zmpkg.pl[18229]: Use of uninitialized value $Config{"ZM_PATH_SOCKS"} in concatenation (.) or string at /usr/bin/zmdc.
Jul 09 23:49:40 eyeinthesky zmpkg.pl[18229]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/ZoneMinder/Logger.pm l
Jul 09 23:49:40 eyeinthesky zmpkg.pl[18229]: Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/ZoneMinder/Logger.pm l
Jul 09 23:49:50 eyeinthesky sudo[18244]: pam_unix(sudo:session): session closed for user www-data
Jul 09 23:49:50 eyeinthesky systemd[1]: zoneminder.service: Control process exited, code=exited status=255
Jul 09 23:49:50 eyeinthesky systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
Jul 09 23:49:50 eyeinthesky systemd[1]: zoneminder.service: Unit entered failed state.
Jul 09 23:49:50 eyeinthesky systemd[1]: zoneminder.service: Failed with result 'exit-code'.
LineNoise
Posts: 4
Joined: Fri Jul 08, 2016 9:51 pm

Re: Ubuntu Install Issues

Post by LineNoise »

bbunge wrote:
mocho wrote:See this
http://zoneminder.readthedocs.io/en/sta ... rom-source

Look specialy at step 10 with paths and confirm that your are correct.
These are old procedures for Ubuntu 14X. You were on the right WIKI page for a new install. Just make sure you follow the instructions as they are written and Zoneminder will work. I recommend you start with a fresh install of Ubuntu server.

bb

Thank you, I did start from scratch. I just nuked the VM and am starting again.
LineNoise
Posts: 4
Joined: Fri Jul 08, 2016 9:51 pm

Re: Ubuntu Install Issues

Post by LineNoise »

I did not properly change AllowOverride for /var/www. I did it for the first one "/" which you would think would have accomplished the same thing, just completely insecure. Maybe an apache failsafe? It started fine this time. Thank you.
Locked