ZoneMinder Stopped

Forum for questions and support relating to the 1.24.x releases only.
Locked
wongzyi
Posts: 6
Joined: Fri Mar 13, 2009 2:21 am

ZoneMinder Stopped

Post by wongzyi »

Hi All,

I am new to ZoneMinder. I ve just install the latest version of zm in my ubuntu machine, and wish to setup a surveillance system. I have completed the installation and able to view the main page. However, the status at the top shows "Stopped" (note: i try to connect a USB camera).

What i want to know is.. is that anything wrong with my setup? Or the status will only change to "Running" when we have a valid camera? Because i don;t know whether it is the camera issue or the ZM problem

p/s: i tried /etc/init.d/zm status and it shows "running"

Please help.. Thank You
liviab
Posts: 87
Joined: Wed Oct 15, 2008 11:54 am
Location: Brazil [MG]

Post by liviab »

Hii,

the status can be "running" without cameras working.
Did you try to change the status clicking on the button "Stopped" at the top?
If you tried but it didn't works, one possibility is verifing if you have the SELinux installed and enabled. If you have, disable it (/etc/selinux/config) and restart your machine.
User avatar
Blazer
Posts: 234
Joined: Sun Jun 05, 2005 12:57 pm

Post by Blazer »

It is normal for ZM to be in the "stopped" state when you frist install. Just click the "stopped" and change the status to running.

P.S. You do not have to reboot to disable selinux, you can type "setenforce 0" to temporarily disable it immediately. To make it perm though you should edit the /etc/selinux/config as mentioned above, or edit your /etc/grub./conf and add "selinux=0" to your kernel parameters.
wongzyi
Posts: 6
Joined: Fri Mar 13, 2009 2:21 am

Post by wongzyi »

Hi all,

Thanks for the tips. However i have tried to change the status via the method you have mentioned, but it is not working. However i have not yet test the selinux part. I will try to run a test later and let you know the result.

Any other suggestion?

Thanks
wongzyi
Posts: 6
Joined: Fri Mar 13, 2009 2:21 am

Post by wongzyi »

I have just check the system.. It does not even install SELinux.. I had uninstall and reinstall the zoneminder again (according to the step-by-step at http://www.zoneminder.com/wiki/index.php/Documentation), but the problem is still there. Any other suggestion??

btw.. one thing i notice:

i tried to start the zm via "zmpkg.pl start" and check the /tmp/zmpkg.log, it shows:

03/17/2009 22:06:45.124045 zmpkg[10821].INF [Command: start]
03/17/2009 22:06:45.569473 zmpkg[10821].ERR [Unable to run "sudo -u apache /usr/local/bin/zmfix", output is ""]

may i know what is the problem?

Thanks
User avatar
Blazer
Posts: 234
Joined: Sun Jun 05, 2005 12:57 pm

Post by Blazer »

Do you have the sudo package installed? (rpm -qa |grep sudo)

Which OS are you running? (cat /etc/redhat-release, or lsb_release -a)
wongzyi
Posts: 6
Joined: Fri Mar 13, 2009 2:21 am

Post by wongzyi »

Thanks for the rapid reply.. i have sudo installed and my system version is Ubuntu 8.10
wongzyi
Posts: 6
Joined: Fri Mar 13, 2009 2:21 am

Post by wongzyi »

i tried to follow the instructions told in http://www.zoneminder.com/forums/viewtopic.php?p=29360 , and it shows:
Upgrading database to version 1.24.1
Loading config from DB
No option 'ZM_OPT_MPEG' found, removing at /usr/local/share/perl/5.10.0/ZoneMinder/ConfigAdmin.pm line 1702, <STDIN> line 2.
No option 'ZM_PATH_MPEG_ENCODE' found, removing at /usr/local/share/perl/5.10.0/ZoneMinder/ConfigAdmin.pm line 1702, <STDIN> line 2.
No option 'ZM_WEB_MONTAGE_MAX_COLS' found, removing at /usr/local/share/perl/5.10.0/ZoneMinder/ConfigAdmin.pm line 1702, <STDIN> line 2.
No option 'ZM_WEB_MONTAGE_WIDTH' found, removing at /usr/local/share/perl/5.10.0/ZoneMinder/ConfigAdmin.pm line 1702, <STDIN> line 2.
No option 'ZM_WEB_MONTAGE_HEIGHT' found, removing at /usr/local/share/perl/5.10.0/ZoneMinder/ConfigAdmin.pm line 1702, <STDIN> line 2.
No option 'ZM_WEB_DOUBLE_BUFFER' found, removing at /usr/local/share/perl/5.10.0/ZoneMinder/ConfigAdmin.pm line 1702, <STDIN> line 2.
No option 'ZM_WEB_FRAMES_PER_LINE' found, removing at /usr/local/share/perl/5.10.0/ZoneMinder/ConfigAdmin.pm line 1702, <STDIN> line 2.
No option 'ZM_WEB_FRAME_LINES' found, removing at /usr/local/share/perl/5.10.0/ZoneMinder/ConfigAdmin.pm line 1702, <STDIN> line 2.
No option 'ZM_WEB_DVR_STREAMING' found, removing at /usr/local/share/perl/5.10.0/ZoneMinder/ConfigAdmin.pm line 1702, <STDIN> line 2.
Saving config to DB
Can't find upgrade from version '1.24.1' at /usr/local/bin/zmupdate.pl line 882, <STDIN> line 2.
and now my zmpkg.pl status show zm is running already.. however at the console page the top status stil showing "Stopped"..

T.T
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

When you ran the configure script, did you select the proper user and group for apache on your distro?
Might likely be a permissions problem.
Any other errors in your logs that stick out?
wongzyi
Posts: 6
Joined: Fri Mar 13, 2009 2:21 am

Post by wongzyi »

Finally i am able to solved the "Stopped" issue and my zm is "Running" now.. and yes.. it is the permission problem. I trace thru the code to search the function where it call for changes of status, and then i found tat the cause of the bug is the zmdc.sock. Hence changing the owner and group of the zmdc.sock from apache to www-data, my zm is able to run.

Thanks for all the help provided. (However i still have problem setting up my IP cam via the ZM. ) :roll:


Thank you
Locked