Page 1 of 1

Failed to launch Zoneminder

Posted: Sun Jul 05, 2020 7:31 pm
by Ronin
Hi everyone!

I'm sorry I'm new to playing with linux servers :)
I have VPS run on Ubuntu 18.04 + Nginx + MariaDB

I confess I didn't follow the sequence of that instruction https://wiki.zoneminder.com/Ubuntu_Serv ... der_1.34.x (I found it later than get zoneminder installed) However I was trying to made my confing complient with that (I did all those steps but in different order).

I'm getting the following error while launching Zoneminder

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 Sun 2020-07-05 22:05:18 MSK; 5s ago
  Process: 15628 ExecStart=/usr/bin/zmpkg.pl start (code=exited, status=255)

Jul 05 22:05:18 ip-172-31-39-57 systemd[1]: zoneminder.service: Control process exited, code=exited status=255
Jul 05 22:05:18 ip-172-31-39-57 systemd[1]: zoneminder.service: Failed with result 'exit-code'.
Jul 05 22:05:18 ip-172-31-39-57 systemd[1]: Failed to start ZoneMinder CCTV recording and surveillance system.
PHPInfo can be checked here http://18.220.60.227/info.php

Can anyone please help me with getting Zoneminder working?

Re: Failed to launch Zoneminder

Posted: Sun Jul 05, 2020 10:14 pm
by burger
Ronin wrote: Sun Jul 05, 2020 7:31 pm I'm sorry I'm new to playing with linux servers :)
I have VPS run on Ubuntu 18.04 + Nginx + MariaDB
In that case, rebuild the VPS, load ubuntu or debian, and use one of the wiki install guides, favoring apache over nginx. That is the easiest way for you to resolve this.

If you were inclined to get more details, you'd have to dig into the logs, and also check where/if the install failed (/var/lib/dpkg/info/zoneminder.preinst is the steps it uses to install).

You will want to do some firewalling, or at the very least activate auth after installing, if it's on a VPS and is WAN accessible. I'd recommend firewall rules.