Cannot get ZM to "Start"

Forum for questions and support relating to the 1.24.x releases only.
oneadvent
Posts: 12
Joined: Wed May 12, 2010 1:49 am

Cannot get ZM to "Start"

Post by oneadvent »

The start link at the top of the page brings up another little window with the option to "start" so I click apply, the page refreshes and nothing happens.

Is there any logs to see what may be going on, with it stopped like that I dont appear to be able to check my images or anything.

Thanks!
User avatar
l8nite4me
Posts: 36
Joined: Sun May 09, 2004 4:29 am
Location: US Alabama

Post by l8nite4me »

/var/log/messages should give you a good start on what to look for
oneadvent
Posts: 12
Joined: Wed May 12, 2010 1:49 am

output from log file

Post by oneadvent »

Code: Select all

May 12 12:32:04 joshsphone zmc_m3[13900]: INF [Monitor-3: 125000 - Capturing at 8.13 fps]
May 12 12:34:13 joshsphone zmc_m3[13900]: INF [Monitor-3: 126000 - Capturing at 7.75 fps]
May 12 12:36:01 joshsphone zmc_m3[13900]: INF [Monitor-3: 127000 - Capturing at 9.26 fps]
May 12 12:36:44 joshsphone zmpkg[14882]: INF [Command: start]
May 12 12:36:44 joshsphone zmpkg[14882]: ERR [Unable to find valid 'su' syntax]
Any help would be greatly appriciated. I checked permission on the zmpkg and it seems to be fine?
User avatar
l8nite4me
Posts: 36
Joined: Sun May 09, 2004 4:29 am
Location: US Alabama

Post by l8nite4me »

Are you trying to run ZoneMinder as root?
oneadvent
Posts: 12
Joined: Wed May 12, 2010 1:49 am

Post by oneadvent »

Yes. Its a server that is offline. Technically its freepbx.

Is that an issue?
User avatar
l8nite4me
Posts: 36
Joined: Sun May 09, 2004 4:29 am
Location: US Alabama

Post by l8nite4me »

Using root has been an issue in the past if I remember correctly. It has been awhile since I have looked at this, but I am sure we can get you running.

Post a copy of your zm.conf file and let me take a look if you want.

Easiest thing to do would be to recompile using

--with-webuser=apache
--with-webgroup=apache

or whatever user you wish.

l8nite
oneadvent
Posts: 12
Joined: Wed May 12, 2010 1:49 am

Post by oneadvent »

Code: Select all

# ==========================================================================
#
# ZoneMinder Base Configuration, $Date: 2008-07-25 10:48:16 +0100 (Fri, 25 Jul 2008) $, $Revision: 2612 $
#
# ==========================================================================
#
# This file is generated by 'configure'. Care should be taken if manually
# editing this file as an changes may be overwritten by subsequent configuration
# or installations.
#

# Current version of ZoneMinder
ZM_VERSION=1.24.2

# Path to build directory, used mostly for finding DB upgrade scripts
ZM_PATH_BUILD=/root/ZoneMinder-1.24.2

# Build time, used to record when to trigger various checks
ZM_TIME_BUILD=1273600856

# Path to ZoneMinder binaries
ZM_PATH_BIN=/usr/local/bin

# Path to ZoneMinder libraries (none at present, for future use)
ZM_PATH_LIB=/usr/local/lib

# Path to ZoneMinder configuration (this file only at present)
ZM_PATH_CONF=/usr/local/etc

# Path to ZoneMinder web files
ZM_PATH_WEB=/var/www/html/zm

# Path to ZoneMinder cgi files
ZM_PATH_CGI=/var/www/zm/cgi-bin

# Username and group that web daemon (httpd/apache) runs as
ZM_WEB_USER=apache
ZM_WEB_GROUP=apache

# ZoneMinder database hostname or ip address
ZM_DB_HOST=localhost

# ZoneMinder database name
ZM_DB_NAME=zm

# ZoneMinder database user
ZM_DB_USER=zmuser

# ZoneMinder database password
ZM_DB_PASS=[MY SECRET]
I think I did compile with those, maybe I am wrong about running it as root....sorry, but thats the file it's using.
johnnytolengo
Posts: 184
Joined: Tue Oct 14, 2008 5:59 pm

Post by johnnytolengo »

To be sure that's a permission issue do:

sudo -u www-data /etc/init.t/zoneminder start


and wait for the log.

JT.
oneadvent
Posts: 12
Joined: Wed May 12, 2010 1:49 am

Post by oneadvent »

Code: Select all

May 12 15:19:20 joshsphone zmdc[13877]: INF ['zmwatch.pl ' stopping at 10/05/12 15:19:20]
May 12 15:19:20 joshsphone zmdc[13877]: INF ['zmwatch.pl ' exited, signal 14]
May 12 15:19:31 joshsphone zmdc[13877]: INF [Server shutdown at 10/05/12 15:19:31]
May 12 15:19:31 joshsphone zmpkg[15830]: INF [Command: start]
May 12 15:19:31 joshsphone zmfix[15840]: INF [New Debug Level = 1, New Debug Log = /tmp/zm_debug.log.15840]
May 12 15:19:31 joshsphone zmdc[15844]: INF [Server starting at 10/05/12 15:19:31]
May 12 15:19:34 joshsphone zmdc[15844]: INF ['zmc -m 3' starting at 10/05/12 15:19:34, pid = 15867]
May 12 15:19:35 joshsphone zmdc[15867]: INF ['zmc -m 3' started at 10/05/12 15:19:35]
May 12 15:19:35 joshsphone zmc_m3[15867]: INF [Debug Level = 0, Debug Log = <none>]
May 12 15:19:35 joshsphone zmc_m3[15867]: INF [New Debug Level = 1, New Debug Log = /tmp/zm_debug.log.15867]
May 12 15:19:35 joshsphone zmc_m3[15867]: INF [Starting Capture]
May 12 15:19:35 joshsphone zmdc[15844]: INF ['zmfilter.pl' starting at 10/05/12 15:19:35, pid = 15871]
May 12 15:19:35 joshsphone zmdc[15871]: INF ['zmfilter.pl' started at 10/05/12 15:19:35]
May 12 15:19:35 joshsphone zmdc[15844]: INF ['zmaudit.pl -c' starting at 10/05/12 15:19:35, pid = 15875]
May 12 15:19:35 joshsphone zmdc[15875]: INF ['zmaudit.pl -c' started at 10/05/12 15:19:35]
May 12 15:19:35 joshsphone zmfilter[15871]: INF [Scanning for events]
May 12 15:19:35 joshsphone zmdc[15880]: INF ['zmwatch.pl' started at 10/05/12 15:19:35]
May 12 15:19:36 joshsphone zmdc[15844]: INF ['zmwatch.pl' starting at 10/05/12 15:19:35, pid = 15880]
May 12 15:19:36 joshsphone zmwatch[15880]: INF [Watchdog starting]
May 12 15:19:36 joshsphone zmwatch[15880]: INF [Watchdog pausing for 30 seconds] 
May 12 15:19:36 joshsphone zmdc[15844]: INF ['zmupdate.pl -c' starting at 10/05/12 15:19:36, pid = 15885]
May 12 15:19:36 joshsphone zmdc[15885]: INF ['zmupdate.pl -c' started at 10/05/12 15:19:36]
May 12 15:19:36 joshsphone Update agent starting at 10/05/12 15:19:36
This is a redhat based system (centos) so I had to use:

Code: Select all

service zm restart
and i omitted the shutdown logs.

Hope this helps someone!
User avatar
l8nite4me
Posts: 36
Joined: Sun May 09, 2004 4:29 am
Location: US Alabama

Post by l8nite4me »

Heading home for the day, I will take a look at this tonight when I get in
oneadvent
Posts: 12
Joined: Wed May 12, 2010 1:49 am

Post by oneadvent »

okay thank you for your help so far today good sir
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Juat a wild as_ guess er, swag, but try disabling SELinux and restart the machine. Else have a look at /var/log/httpd/error_log.
oneadvent
Posts: 12
Joined: Wed May 12, 2010 1:49 am

Post by oneadvent »

Code: Select all

[Sun May 09 04:02:14 2010] [notice] Digest: generating secret for digest authentication ...
[Sun May 09 04:02:14 2010] [notice] Digest: done
[Sun May 09 04:02:14 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue May 11 10:49:33 2010] [notice] caught SIGTERM, shutting down
[Tue May 11 10:51:56 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 11 10:51:56 2010] [notice] Digest: generating secret for digest authentication ...
[Tue May 11 10:51:56 2010] [notice] Digest: done
[Tue May 11 10:51:57 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue May 11 14:49:56 2010] [notice] caught SIGTERM, shutting down
[Tue May 11 14:51:29 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 11 14:51:29 2010] [notice] Digest: generating secret for digest authentication ...
[Tue May 11 14:51:29 2010] [notice] Digest: done
[Tue May 11 14:51:30 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed May 12 19:34:51 2010] [notice] caught SIGTERM, shutting down
[Wed May 12 19:36:25 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 12 19:36:25 2010] [notice] Digest: generating secret for digest authentication ...
[Wed May 12 19:36:25 2010] [notice] Digest: done
[Wed May 12 19:36:26 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
I did what you asked and turned off SELinux, but same results after reboot, this is my whole log file.
[/code]
oneadvent
Posts: 12
Joined: Wed May 12, 2010 1:49 am

Post by oneadvent »

Code: Select all

May 12 21:21:15 joshsphone zmc_m3[3402]: INF [Monitor-3: 32000 - Capturing at 4.88 fps]
May 12 21:24:38 joshsphone zmc_m3[3402]: INF [Monitor-3: 33000 - Capturing at 4.93 fps]
May 12 21:26:50 joshsphone zmpkg[4165]: INF [Command: start]
May 12 21:26:50 joshsphone zmpkg[4165]: ERR [Unable to find valid 'su' syntax]
Just wanted to point out that the error in messages is the same.
Good Luck, I'm not sure, I got a buddy I may get his zm web directory and copy it in case something is wrong with it.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

If you would like, you may PM me with ssh access details and the location you have the ZM source and I'll take a look when I have a chance sometime tonight.
Locked