Page 1 of 1

Can't get Zoneminder start in web console in Fedora

Posted: Sat Jan 22, 2011 3:47 am
by chestnut
I installed Zoneminder on Fedora 13 following the instruction from wiki. But when I log into the console, the screen says "ZoneMinder Console - Stopped." I click on the Stopped and try to start it but after a while the console still says, "stopped." I already started the httpd and mysqld services.

Does anyone have workaround for it?

Posted: Sat Jan 22, 2011 2:21 pm
by bb99
One of two things wrong: first check the zoneminder service status by going to System::Administration::Services, scroll down to zoneminder and make sure it's green (enabled), if not enable it. If that's not the issue then it's going to be in Mysql. Rebuild the database using:

Code: Select all

(15) As root, [or with sudo] build the zm database (menu-Application::System Tools::Terminal).

Code:

su

(enter root password)

mysql mysql < /usr/share/zoneminder/db/zm_create.sql

mysqladmin reload

mysql mysql

grant select,insert,update,delete on zm.* to 'zmuser'@localhost identified by 'zmpass';

\q

exit

exit 
I highly recommend using cut and paste for this as I've had problems with mysql syntax many times. Mysql sometimes will not tell you when you've gotten it wrong.

Posted: Sun Jan 23, 2011 1:44 am
by chestnut
thanks, yes, I am using the right scripts in creating mysql db.

I can start the sevice from command line using "service zoneminder start". it can start successfully with the following log message in zmdc.log

"01/23/2011 09:23:14.009969 zmdc[2907].INF [Server starting at 11/01/23 09:23:14]
01/23/2011 09:23:17.669962 zmdc[2907].INF ['zmfilter.pl' starting at 11/01/23 09:23:17, pid = 2935]
01/23/2011 09:23:18.490290 zmdc[2907].INF ['zmaudit.pl -c' starting at 11/01/23 09:23:18, pid = 294
2]
01/23/2011 09:23:19.350260 zmdc[2907].INF ['zmwatch.pl' starting at 11/01/23 09:23:19, pid = 2947]
01/23/2011 09:23:20.375425 zmdc[2907].INF ['zmupdate.pl -c' starting at 11/01/23 09:23:20, pid = 29
54]"

But in web console, the status still says "stopped"; when I try to start it in the console window, I still get the same error. In zmdc.log file, it reports

"01/23/11 09:22:20.260267 zmdc[2753].INF [Server starting at 11/01/23 09:22:20]
01/23/11 09:22:30.251626 zmdc[2751].FAT [Can't connect: No such file or directory]
01/23/11 09:22:34.355080 zmdc[2753].FAT [Can't bind: Permission denied]"

when I turn to look at zmdc.pl, it looks zmdc.sock is not created when I want to start it in web console.

Posted: Sun Jan 23, 2011 4:51 pm
by bb99
Just changed the wiki entry to enable the zoneminder service and then start it. Don't know if that's your issue but it is a required step that was implied but not written out.

Posted: Mon Jan 24, 2011 3:00 pm
by chestnut
can you explain a little more about "Just changed the wiki entry to enable the zoneminder service and then start it"?

I follow the steps in http://www.zoneminder.com/wiki/index.ph ... _12_and_13 to install zoneminder

thanks!

Posted: Tue Jan 25, 2011 12:21 am
by bb99
That's the wiki entry that I changed. It only implied that the zoneminder service needed to be enabled before starting, I changed it to enable the service then start it. Under the menu item "system::Administration::services" you need to highlight the zoneminder service, then single click the enable button, once it shows enabled then you can single click start.
Your post is exactly the type of feedback needed to drill down these step by step installation instructions and remove any implied knowledge and make them easier to use. Don't know if this is your issue but it forced me to look closer and correct.