Page 1 of 1

Zoneminder Can't see video stream

Posted: Fri Jan 08, 2010 10:54 pm
by oming101
Ok, so I have an old Creative WebCam Instant. Couldn't get zm packages in ubuntu 9.10 to see it, so i compised from source. Still didn't work, so i looked around some more and stumbled across mjpg-streamer. Have that set up and working now, can view the stream at /?action=stream, howver zoneminder STILL will not display the page. When I few the stream via mjpg-streamer, it shows the resolution as 352x288, so that is what I used for Zoneminder, as well as localhost, 8080, and /?action=stream for host, port, and location. When tailing zdmc.log, i get:

01/08/2010 17:46:20.624370 zmdc[32556].INF ['zmc -m 5' starting at 10/01/08 17:46:20, pid = 32598]
01/08/2010 17:46:20.914367 zmdc[32556].WAR [Can't find process with command of 'zma -m 5']

when i run zma -m 5 as a normal user, it shows "aborted"

However, when i run it with sudo, it runs fine (just sits there).

any ideas?

Posted: Sat Jan 09, 2010 12:20 am
by kingofkya
check logs fro zma and zmc.

Also did you set shared memory.

Posted: Sat Jan 09, 2010 3:12 pm
by oming101
Shared memory was part of it. I didn't think I needed to set it since I wasn't having any errors that explicitly pointed to that, but once I did that I then got the broken image link. Looked at apache's error.log, turns out it was looking for scripts in /usr/lib/cgi-bin/. Not quite sure why as I set it to /var/www/cgi-bin/, but I symlinked the scripts and everything is working now

Posted: Sat Jan 09, 2010 3:51 pm
by oming101
Ok. So now that shared memory is set (to 1024 using http://www.zoneminder.com/forums/viewtopic.php?t=9692) my server just locks up after 5 minutes. Granted, it's running apache and as a media server, but nothing that should be using up a gig of ram. The server won't even respond to pings after 5 minutes (worked fine before zoneminder.) Any ideas on this?

Posted: Mon Jan 11, 2010 2:16 pm
by coke
SSH into it (or sit at console) and run htop, then sit around and wait for it to lock up. Before it does so, you should be able to see whatever's eating too much memory or cpu.

Posted: Mon Jan 11, 2010 2:19 pm
by oming101
It was actually the shared video limits that I had set... i removed them, rebooted, cat'd the shmmax file under the kernel config directory, used that exact value for shmall and shmmax in the sysctl.conf file, executed sysctl -p, and it's been running since Saturday.