Zoneminder Can't see video stream

Forum for questions and support relating to the 1.24.x releases only.
Locked
oming101
Posts: 4
Joined: Fri Jan 08, 2010 10:50 pm

Zoneminder Can't see video stream

Post 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?
User avatar
kingofkya
Posts: 1110
Joined: Mon Mar 26, 2007 6:07 am
Location: Las Vegas, Nevada

Post by kingofkya »

check logs fro zma and zmc.

Also did you set shared memory.
oming101
Posts: 4
Joined: Fri Jan 08, 2010 10:50 pm

Post 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
oming101
Posts: 4
Joined: Fri Jan 08, 2010 10:50 pm

Post 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?
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post 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.
oming101
Posts: 4
Joined: Fri Jan 08, 2010 10:50 pm

Post 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.
Locked