Camera configuration: No pics visible Dlink and Gadspot

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
mks113
Posts: 7
Joined: Thu May 10, 2007 5:22 am

Camera configuration: No pics visible Dlink and Gadspot

Post by mks113 »

After much grief and delays, I've finally got ZoneMinder running on Ubuntu 6.06. All the prerequisites were a bit of a pain. Now that I have it running, I can't seem to actually get it connected to my cameras. There are 0 errors during configuration and install.

Both cameras are IP cameras and I can connect to either with firefox (http://192.168.0.35/Jpeg/CamImg.jpg for the Gadspot, http://cam:cam@192.168.0.21/cgi-bin/video.jpg for th DLink)

When I set up a monitor for either camera, it shows the camera link in red and an empty square when I try to view it.

I'm not an expert at this, so perhaps I'm missing something basic. Anyone have any ideas?

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

Post by cordel »

mks113
Posts: 7
Joined: Thu May 10, 2007 5:22 am

logs

Post by mks113 »

Oops. I looked over the sticky post, but missed the log file locations. I was expecting a /var/log/zm.log or something. I restarted zm and found this in my messages log. It is repeated several more times.

It looks like a bigger issue than camera configuration, but I'm totally out of my depth with these errors.

May 11 14:01:31 localhost zmdc[23787]: INF ['zmc -m 1' starting at 07/05/11 14:01:30, pid = 23866]
May 11 14:01:31 localhost zmdc[23866]: INF ['zmc -m 1' started at 07/05/11 14:01:30]
May 11 14:01:31 localhost zmdc[23787]: INF ['zmc -m 1' crashed, signal 8]
May 11 14:01:31 localhost zmwatch[23827]: INF ['zmc -m 1' starting at 07/05/11 14:01:30, pid = 23866]
May 11 14:01:41 localhost zmwatch[23827]: INF [Restarting capture daemon for Security, shared memory not valid]
May 11 14:01:42 localhost zmdc[23787]: INF ['zmc -m 1' starting at 07/05/11 14:01:42, pid = 23875]
May 11 14:01:42 localhost zmdc[23875]: INF ['zmc -m 1' started at 07/05/11 14:01:42]
May 11 14:01:42 localhost zmdc[23787]: INF ['zmc -m 1' crashed, signal 8]
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

whats in your syslog that ties in with that?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
mks113
Posts: 7
Joined: Thu May 10, 2007 5:22 am

my syslog

Post by mks113 »

I'm afraid I'm showing my limited breadth of Linux knowledge. That's what I get for picking it up piecemeal without any good overall picture!

"shared memory not valid" is the only error it really gives, which doesn't help me one bit!

syslog reads at zm startup:

May 11 14:01:31 localhost zmdc[23787]: INF ['zmc -m 1' starting at 07/05/11 14:01:30, pid = 23866]
May 11 14:01:31 localhost zmdc[23866]: INF ['zmc -m 1' started at 07/05/11 14:01:30]
May 11 14:01:31 localhost zmdc[23787]: INF ['zmc -m 1' crashed, signal 8]
May 11 14:01:31 localhost zmwatch[23827]: INF ['zmc -m 1' starting at 07/05/11 14:01:30, pid = 23866]
May 11 14:01:41 localhost zmwatch[23827]: INF [Restarting capture daemon for Security, shared memory not valid]
May 11 14:01:42 localhost zmdc[23787]: INF ['zmc -m 1' starting at 07/05/11 14:01:42, pid = 23875]
May 11 14:01:42 localhost zmdc[23875]: INF ['zmc -m 1' started at 07/05/11 14:01:42]
May 11 14:01:42 localhost zmdc[23787]: INF ['zmc -m 1' crashed, signal 8]



Thanks again.

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

Post by cordel »

This may help a bit:
http://www.zoneminder.com/forums/viewto ... hed+signal

Also your logs are where ever you have them defined in options under paths. If you did not define it in configure before compiling the software, the default is in /tmp.
mks113
Posts: 7
Joined: Thu May 10, 2007 5:22 am

Found the logs, but still getting nowhere

Post by mks113 »

I hadn't defined any zones -- there was just the default 100% zone, so your link didn't seem to be quite the same thing.

in zmwatch.log I get:

05/14/07 08:53:10.928682 zmwatch[5665].ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
05/14/07 08:53:10.929777 zmwatch[5665].INF [Restarting capture daemon for Security, shared memory not valid]
05/14/07 08:53:11.548575 zmwatch[5665].INF ['zmc -m 1' starting at 07/05/14 08:53:11, pid = 5726]

Again, it means nothing to me.

in zmdc.log I get:

05/14/07 14:40:55.360871 zmdc[18180].INF ['zmc -m 1' starting at 07/05/14 14:40:55, pid = 19124]
05/14/07 14:40:55.427941 zmdc[18180].ERR ['zmc -m 1' exited abnormally, exit status 255]

I'm not sure how to turn up the debug level to get more details.

Michael
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i suspec tthis is a path issue, what path are you using and if you put it all together and wget it what do you get
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
mks113
Posts: 7
Joined: Thu May 10, 2007 5:22 am

I don't think it's a path issue

Post by mks113 »

I don't think it is a problem with the path to the camera. This also shouldn't cause the shared memory issues immediately on program startup.

If I do:

wget http://cam:cam@192.168.0.21/cgi-bin/video.jpg

I get the capture pic without any problem.

Michael
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

but if its not capturing images there will be nothing in shared mem and will give an error. I still think its a path issue, try removing auth just till its working. Also it might be worth increasing your debug level and that will give you a bit more info
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
mks113
Posts: 7
Joined: Thu May 10, 2007 5:22 am

authentication

Post by mks113 »

The d-link camera requires authentication: I can't turn it off.

The gadspot camera doesn't require it, and I get the same errors on both.

showing my lack of depth: How do I up the debug level? (running Ubuntu/Debian)

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

Re: authentication

Post by cordel »

mks113 wrote:The d-link camera requires authentication: I can't turn it off.
BS, You can configure the cam to turn it off.
James is correct, You will have nothing in shared memory if zmc can not get an image from the camera.
I suspect you either have the setup for the camera configured wrong.

You should have something like:
Host: cam:cam@192.168.0.21
Path: /cgi-bin/video.jpg
Palette: RGB24
H: 640
W: 480

Height and width should match what ever the default setting in the cam are.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

and if you use that res you may run into a shared mem issue but that will show up in the logs (a different shared mem issue lol)
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Post Reply