Code: Select all
Redirecting to /bin/systemctl status zoneminder.service
● zoneminder.service - ZoneMinder CCTV recording and security system
Loaded: loaded (/etc/systemd/system/zoneminder.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/zoneminder.service.d
└─zm-httpd.conf
Active: failed (Result: timeout) since Tue 2020-06-23 13:03:09 GMT; 45min ago
Process: 157869 ExecStart=/usr/bin/zmpkg.pl start (code=killed, signal=TERM)
Main PID: 2230 (code=exited, status=0/SUCCESS)
Jun 23 13:01:21 zm-web.local zmpkg[157869]: INF [Sanity checking States table...]
Jun 23 13:01:21 zm-web.local zmpkg[157869]: INF [Command: start]
Jun 23 13:02:09 zm-web.local zmdc[157890]: FAT [Can't connect: No such file or directory]
Jun 23 13:02:09 zm-web.local zmpkg[157869]: ERR [Unable to run "/usr/bin/zmdc.pl startup", output is "Starting server", status is 255]
Jun 23 13:02:09 zm-web.local zmpkg[157869]: INF [Multi-server configuration detected. Starting up services for server 7]
Jun 23 13:02:21 zm-web.local zmdc[157910]: INF [Server starting at 20/06/23 13:02:21]
Jun 23 13:02:22 zm-web.local zmdc[157910]: INF [Socket should be open at /var/lib/zoneminder/sock/zmdc7.sock]
Jun 23 13:02:30 zm-web.local systemd[1]: zoneminder.service: Start operation timed out. Terminating.
Jun 23 13:02:49 zm-web.local zmdc[157910]: INF ['zmfilter.pl --filter_id=4 --daemon' starting at 20/06/23 13:02:49, pid = 157942]
Jun 23 13:02:49 zm-web.local zmdc[157910]: INF [Server exiting at 20/06/23 13:02:49]
Jun 23 13:02:49 zm-web.local zmdc[157942]: INF ['zmfilter.pl --filter_id=4 --daemon' started at 20/06/23 13:02:49]
Jun 23 13:03:09 zm-web.local zmdc[157910]: INF ['zmfilter.pl --filter_id=4 --daemon' sending stop to pid 157942 at 20/06/23 13:03:09]
Jun 23 13:03:09 zm-web.local zmdc[157910]: INF ['zmfilter.pl --filter_id=4 --daemon' exited, signal 14]
Jun 23 13:03:09 zm-web.local zmdc[157910]: INF [Server shutdown at 20/06/23 13:03:09]
Jun 23 13:03:09 zm-web.local systemd[1]: zoneminder.service: Failed with result 'timeout'.
Jun 23 13:03:09 zm-web.local systemd[1]: Failed to start ZoneMinder CCTV recording and security system.
-- Subject: Unit zoneminder.service has failed
Code: Select all
[root@zm-web zoneminder]# grep SOCKS /etc/zm/conf.d/*
/etc/zm/conf.d/01-system-paths.conf:ZM_PATH_SOCKS=/var/lib/zoneminder/sock
[root@zm-web zoneminder]# ls -l /var/lib/zoneminder/ | grep sock
drwxr-xr-x 2 apache apache 4096 Jun 23 13:03 sock
Code: Select all
[root@zm-web zoneminder]# su -c "/usr/bin/zmdc.pl startup" apache
Starting server
Can't open pid file at /var/run/zoneminder/zm.pid
23/06/20 13:36:33.750173 zmdc[158208].FAT [main:195] [Can't connect: No such file or directory]
Code: Select all
[root@zm-web zoneminder]# ls -l /var/run/zoneminder
ls: cannot access '/var/run/zoneminder': No such file or directory
Code: Select all
[root@zm-web zoneminder]# mkdir /var/run/zoneminder && chown apache:apache /var/run/zoneminder && su -c "/usr/bin/zmdc.pl startup" apache
total 0
Starting server
23/06/20 13:38:41.665041 zmdc[158249].FAT [main:195] [Can't connect: No such file or directory]
Code: Select all
[root@zm-web zoneminder]# ls -l /var/run/zoneminder
total 4
-rw-r--r-- 1 apache apache 6 Jun 23 13:38 zm.pid
[root@zm-web zoneminder]# cat /var/run/zoneminder/zm.pid
158258
Code: Select all
socket(CLIENT, PF_UNIX, SOCK_STREAM, 0) or Fatal("Can't open socket: $!");
my $attempts = 0;
while( !connect(CLIENT, $saddr) ) {
$attempts++;
Debug('Waiting for zmdc.pl server process at '.SOCK_FILE.", attempt $attempts");
Fatal("Can't connect: $!") if $attempts > MAX_CONNECT_DELAY;
usleep(200000);
} # end while
} elsif ( defined($cpid) ) {
ZMServer::run();
} else {
Fatal("Can't fork: $!");
}
} # end if ! server is up
Code: Select all
[root@zm-web zoneminder]# ls -l /var/lib/zoneminder/sock/
total 0
srwxr-xr-x 1 apache apache 0 Jun 23 13:38 zmdc7.sock
Or failing that, somewhere where I can download the 1.34.7-1 EL7 RPM's as RPMFusion seems only to make the latest version available?