After a long arduous journey, I've finally gotten ZoneMinder installed and working ... or so I thought.
CentOs 5, brand new install, all the latest updates, installation was from source.
I'm using 2 logitech quickcam 9000s at the moment using the usbvideo driver.
I'm using mjpg_streamer to capture the content to feed to ZM, the images display just fine.
Last night, after getting everything working, everything seemed to be working well in zoneminder, I could see the camera images perfectly and everything was running smoothly.
I rebooted my PC today to see how well everything was going to stay in place... not so well.
my mysql daemon doesn't start on boot, so i had to do that manualy by:
/etc/init.d/mysqld start
next, apache wasnt started either, so i did
apachectl start
once that was going i started zoneminder
zmpkg.pl start
with the mjpg_streams running and verified, i checked zoneminder to find that I can't see the camera images within the web app (but I can see the streams directly just fine).
i know i need to slowly figure out how to get all those applications to come up automatically on boot, but my main problem is that I don't know what I need to do to get my video back.
my gut feeling tells me that there's just some other component out there that's not started or initialized.
i do notice that in my process list that zmvideo.pl is not running, but i'm not sure if that's a problem or not.
as you can tell, i'm only a part time linux user. any feedback would be appreciated.
Video Previews dissappeared on me
ok, it seems zone minder isn't really running?
in the web app, it says 'stopped' up at the top.
i click on that and try and go through the change state popup to start it, but it just thinks about it, refreshes, and still says stopped.
any ideas what i'm missing (what else isn't started), or where the logs are that will point me in the right direction?
in the web app, it says 'stopped' up at the top.
i click on that and try and go through the change state popup to start it, but it just thinks about it, refreshes, and still says stopped.
any ideas what i'm missing (what else isn't started), or where the logs are that will point me in the right direction?
i removed all of the monitors, restarted, and problem persists.
i looked through all of the logs in /tmp and couldn't find anything.
i think i did find something in /var/log/messages though, but i can't decipher it
as far as user permissions go, i installed everything as root, and am running as root
i looked through all of the logs in /tmp and couldn't find anything.
i think i did find something in /var/log/messages though, but i can't decipher it
Code: Select all
Dec 18 14:50:52 localhost zmpkg[10183]: INF [Command: start]
Dec 18 14:50:55 localhost zmdc[10197]: INF [Server starting at 08/12/18 14:50:55]
Dec 18 14:50:59 localhost zmdc[10220]: INF ['zmfilter.pl' started at 08/12/18 14:50:59]
Dec 18 14:50:59 localhost zmdc[10197]: INF ['zmfilter.pl' starting at 08/12/18 14:50:59, pid = 10220]
Dec 18 14:51:00 localhost zmfilter[10220]: INF [Scanning for events]
Dec 18 14:51:01 localhost zmdc[10225]: INF ['zmaudit.pl -c' started at 08/12/18 14:51:01]
Dec 18 14:51:01 localhost zmdc[10197]: INF ['zmaudit.pl -c' starting at 08/12/18 14:51:01, pid = 10225]
Dec 18 14:51:02 localhost zmdc[10197]: INF ['zmwatch.pl' starting at 08/12/18 14:51:02, pid = 10230]
Dec 18 14:51:02 localhost zmdc[10230]: INF ['zmwatch.pl' started at 08/12/18 14:51:02]
Dec 18 14:51:03 localhost zmwatch[10230]: INF [Watchdog starting]
Dec 18 14:51:03 localhost zmwatch[10230]: INF [Watchdog pausing for 30 seconds]
Dec 18 14:51:04 localhost zmdc[10234]: INF ['zmupdate.pl -c' started at 08/12/18 14:51:04]
Dec 18 14:51:04 localhost zmdc[10197]: INF ['zmupdate.pl -c' starting at 08/12/18 14:51:04, pid = 10234]
Dec 18 14:51:05 localhost Update agent starting at 08/12/18 14:51:05
Dec 18 14:51:42 localhost zmpkg[10254]: INF [Command: start]
Dec 18 14:51:44 localhost zmdc[10266]: INF [Server starting at 08/12/18 14:51:44]
Dec 18 14:51:47 localhost zmdc[10266]: FAT [Can't bind: Address already in use]
Dec 18 14:51:54 localhost zmdc[10264]: FAT [Can't connect: Permission denied]
Dec 18 14:51:54 localhost zmpkg[10254]: ERR [Unable to run "/usr/local/bin/zmdc.pl startup", output is "Starting server"]
Last edited by koalas on Fri Dec 19, 2008 2:00 am, edited 1 time in total.
First start by checking the core system logs (messages, and audit) I suspect that SELinux is preventing ZM from having permission to run and you should see that in one or both of those logs. If it's a file permission issue it should likely show in the messages log.
Also look into zmdc.log zmpkg.log one of these four should have a error that points to the problem why ZM is not starting.
----
For your images in the web console look into the Apache error_log and it should be in /var/log/httpd/ but also keep a look out in the above logs as this could be related to your above problems.
Also look into zmdc.log zmpkg.log one of these four should have a error that points to the problem why ZM is not starting.
----
For your images in the web console look into the Apache error_log and it should be in /var/log/httpd/ but also keep a look out in the above logs as this could be related to your above problems.
you were dead on about the selinux thing. i had read the solution from another user was that 'selinux is not your friend' , and i kept thinking people talking about selinux were referring to a distribution
disabled it using echo 0 >/selinux/enforce
and it started right up.
i guess one of the installations i did disabled it without me knowing it, which is how i avoided the hassle during setup.
thanks for the help!!
disabled it using echo 0 >/selinux/enforce
and it started right up.
i guess one of the installations i did disabled it without me knowing it, which is how i avoided the hassle during setup.
thanks for the help!!
ok, so after i got everything working, i found that i'm still not able to get an image and can't figure out why.
I restarted, disabled selinux, started all the services i'm aware that need to be started and ran zoneminder
the server says it's running, but i'm not getting any images (reminder: i did have this working before a reboot). And I can see the images directly from mjpg_streamer.
I've deleted and re-added my monitors a few times now with the exact same configuration (and it is correct).
I'm getting this in my /var/log/messages
any ideas? the messages make it look like it can see the camera.
thanks for the help
I restarted, disabled selinux, started all the services i'm aware that need to be started and ran zoneminder
the server says it's running, but i'm not getting any images (reminder: i did have this working before a reboot). And I can see the images directly from mjpg_streamer.
I've deleted and re-added my monitors a few times now with the exact same configuration (and it is correct).
I'm getting this in my /var/log/messages
Code: Select all
Dec 19 13:17:10 localhost zmdc[10185]: WAR [Can't find process with command of 'zmc -m 6']
Dec 19 13:17:11 localhost zmdc[10185]: INF ['zmc -m 6' starting at 08/12/19 13:17:11, pid = 18206]
Dec 19 13:17:11 localhost zmdc[18206]: INF ['zmc -m 6' started at 08/12/19 13:17:11]
Dec 19 13:17:12 localhost zmc_m6[18206]: INF [Debug Level = 0, Debug Log = <none>]
Dec 19 13:17:12 localhost zmc_m6[18206]: INF [Starting Capture]
Dec 19 13:17:13 localhost zmdc[10185]: WAR [Can't find process with command of 'zma -m 6']
Dec 19 13:17:25 localhost zmdc[10185]: WAR [Can't find process with command of 'zma -m']
Dec 19 13:17:29 localhost zmc_m4[10842]: INF [Video0: 4000 - Capturing at 4.74 fps]
Dec 19 13:17:36 localhost zmdc[10185]: WAR [Can't find process with command of 'zmc -m']
thanks for the help
so, since i couldn't figure out what was broken, i started to redo everything.
first thing I did was to stop zm, delete the database and rebuild it, and start up zm again.
that didn't seem to make a difference, so i deleted the database and started over again, but this time i uninstalled zoneminder and cleaned up the previous installation files
i ran the configure again to make sure everything was in place, and it went through just fine.
after the make and the install, zoneminder seems to be running alright. i fire up mjpg_streamer and try to create a monitor, and these are the messages. (nothing really out of the ordinary)
so it looks like ZM is starting ok, mjpg_streamer is working, and then after a couple minutes, it seems to finally catch the stream?
In the zone minder console it seems to be picking up the stream because in the source column of the monitor 'localhost' shows as orange when mjpg_streamer is running and red when it is not.
the apache error_log isn't recording any errors.
i feel like there's some part of apache or mysql that's not running that needs to be in order to serve these images.... any ideas would be appreciated
first thing I did was to stop zm, delete the database and rebuild it, and start up zm again.
that didn't seem to make a difference, so i deleted the database and started over again, but this time i uninstalled zoneminder and cleaned up the previous installation files
i ran the configure again to make sure everything was in place, and it went through just fine.
after the make and the install, zoneminder seems to be running alright. i fire up mjpg_streamer and try to create a monitor, and these are the messages. (nothing really out of the ordinary)
Code: Select all
Dec 20 06:29:59 localhost zmpkg[9300]: INF [Command: start]
Dec 20 06:30:01 localhost zmdc[9312]: INF [Server starting at 08/12/20 06:30:01]
Dec 20 06:30:05 localhost zmdc[9312]: INF ['zmfilter.pl' starting at 08/12/20 06:30:05, pid = 9335]
Dec 20 06:30:05 localhost zmdc[9335]: INF ['zmfilter.pl' started at 08/12/20 06:30:05]
Dec 20 06:30:06 localhost zmfilter[9335]: INF [Scanning for events]
Dec 20 06:30:07 localhost zmdc[9340]: INF ['zmaudit.pl -c' started at 08/12/20 06:30:07]
Dec 20 06:30:07 localhost zmdc[9312]: INF ['zmaudit.pl -c' starting at 08/12/20 06:30:07, pid = 9340]
Dec 20 06:30:08 localhost zmdc[9312]: INF ['zmwatch.pl' starting at 08/12/20 06:30:08, pid = 9345]
Dec 20 06:30:08 localhost zmdc[9345]: INF ['zmwatch.pl' started at 08/12/20 06:30:08]
Dec 20 06:30:09 localhost zmwatch[9345]: INF [Watchdog starting]
Dec 20 06:30:09 localhost zmwatch[9345]: INF [Watchdog pausing for 30 seconds]
Dec 20 06:30:09 localhost zmdc[9349]: INF ['zmupdate.pl -c' started at 08/12/20 06:30:09]
Dec 20 06:30:09 localhost zmdc[9312]: INF ['zmupdate.pl -c' starting at 08/12/20 06:30:09, pid = 9349]
Dec 20 06:30:11 localhost Update agent starting at 08/12/20 06:30:11
Dec 20 06:30:11 localhost zmupdate[9349]: INF [Checking for updates]
Dec 20 06:30:12 localhost zmupdate[9349]: INF [Got version: '1.23.3']
Dec 20 06:33:22 localhost MJPG-streamer [9409]: starting application
Dec 20 06:33:22 localhost MJPG-streamer [9409]: MJPG Streamer Version.: 2.0
Dec 20 06:33:22 localhost MJPG-streamer [9409]: Using V4L2 device.: /dev/video1
Dec 20 06:33:22 localhost MJPG-streamer [9409]: Desired Resolution: 640 x 480
Dec 20 06:33:22 localhost MJPG-streamer [9409]: Frames Per Second.: 5
Dec 20 06:33:22 localhost MJPG-streamer [9409]: Format............: MJPEG
Dec 20 06:33:22 localhost MJPG-streamer [9409]: init_VideoIn failed
Dec 20 06:33:35 localhost MJPG-streamer [9413]: starting application
Dec 20 06:33:35 localhost MJPG-streamer [9413]: MJPG Streamer Version.: 2.0
Dec 20 06:33:35 localhost MJPG-streamer [9413]: Using V4L2 device.: /dev/video0
Dec 20 06:33:35 localhost MJPG-streamer [9413]: Desired Resolution: 640 x 480
Dec 20 06:33:35 localhost MJPG-streamer [9413]: Frames Per Second.: 5
Dec 20 06:33:35 localhost MJPG-streamer [9413]: Format............: MJPEG
Dec 20 06:33:35 localhost MJPG-streamer [9413]: www-folder-path...: disabled
Dec 20 06:33:35 localhost MJPG-streamer [9413]: HTTP TCP port.....: 8080
Dec 20 06:33:35 localhost MJPG-streamer [9413]: username:password.: disabled
Dec 20 06:33:35 localhost MJPG-streamer [9413]: commands..........: enabled
Dec 20 06:33:35 localhost MJPG-streamer [9413]: starting input plugin
Dec 20 06:33:35 localhost MJPG-streamer [9413]: starting output plugin: /root/mjpg-streamer/mjpg-streamer/output_http.so (ID: 00)
Dec 20 06:36:24 localhost zmdc[9312]: WAR [Can't find process with command of 'zmc -m 1']
Dec 20 06:36:25 localhost zmdc[9312]: INF ['zmc -m 1' starting at 08/12/20 06:36:25, pid = 9446]
Dec 20 06:36:25 localhost zmdc[9446]: INF ['zmc -m 1' started at 08/12/20 06:36:25]
Dec 20 06:36:25 localhost zmc_m1[9446]: INF [Debug Level = 0, Debug Log = <none>]
Dec 20 06:36:25 localhost zmc_m1[9446]: INF [Starting Capture]
Dec 20 06:36:25 localhost MJPG-streamer [9413]: serving client: 127.0.0.1:48155
Dec 20 06:36:26 localhost MJPG-streamer [9413]: serving client: 127.0.0.1:48156
Dec 20 06:36:26 localhost MJPG-streamer [9413]: serving client: 127.0.0.1:48157
Dec 20 06:36:26 localhost zmdc[9312]: WAR [Can't find process with command of 'zma -m 1']
Dec 20 06:36:26 localhost MJPG-streamer [9413]: serving client: 127.0.0.1:48158
Dec 20 06:36:26 localhost MJPG-streamer [9413]: serving client: 127.0.0.1:48160
..
Dec 20 06:36:53 localhost MJPG-streamer [9413]: serving client: 127.0.0.1:48297
Dec 20 06:36:53 localhost MJPG-streamer [9413]: serving client: 127.0.0.1:48298
and a few minutes later we get this next message
Dec 20 06:39:47 localhost MJPG-streamer [9413]: serving client: 127.0.0.1:51485
Dec 20 06:39:47 localhost zmc_m1[9446]: INF [Newmon: 1000 - Capturing at 4.95 fps]
Dec 20 06:39:47 localhost MJPG-streamer [9413]: serving client: 127.0.0.1:51486
In the zone minder console it seems to be picking up the stream because in the source column of the monitor 'localhost' shows as orange when mjpg_streamer is running and red when it is not.
the apache error_log isn't recording any errors.
i feel like there's some part of apache or mysql that's not running that needs to be in order to serve these images.... any ideas would be appreciated
it seems that when i switch the camera from monitor to something like motion detection, it actually does trigger events and records the stream.
i can go back in to zm and watch the replays of the video from the recorded events, but just can't preview the live streams through the application.
wierd.
could this be an ffmpeg problem? am i even using ffmpeg the way i have my camera set up through mjpg_streamer?
i can go back in to zm and watch the replays of the video from the recorded events, but just can't preview the live streams through the application.
wierd.
could this be an ffmpeg problem? am i even using ffmpeg the way i have my camera set up through mjpg_streamer?