strange things going on

Support and queries relating to all previous versions of ZoneMinder
Locked
rayman2
Posts: 12
Joined: Thu Jun 01, 2006 2:55 pm

strange things going on

Post by rayman2 »

Hi!

I have meneget to get ZM running but now i have some strange problem :S

ZM is runing but i cant get any picture.

My options:

System: http://www2.shrani.si/files/screensh669024.jpg
Confgi: http://www2.shrani.si/files/screensh669026.jpg
Paths: http://www2.shrani.si/files/screensh669027.jpg
Web: http://www2.shrani.si/files/screensh669029.jpg
Tools: http://www2.shrani.si/files/screensh669031.jpg
Network: http://www2.shrani.si/files/screensh669033.jpg

i think that is enough.

my monitor settings:

General: http://www2.shrani.si/files/screensh669035.jpg
Source: http://www2.shrani.si/files/screensh669037.jpg
TimeStamp: http://www2.shrani.si/files/screensh669038.jpg
Buffers: http://www2.shrani.si/files/screensh669040.jpg
misc: http://www2.shrani.si/files/screensh669041.jpg

I think that is what you need.

i am using network camera on IP 10.0.0.2 and path video.cgi

Thanx

Have a nice day!
User avatar
acrid
Posts: 68
Joined: Sun Aug 24, 2003 10:26 pm
Location: Germany

Post by acrid »

i had some trouble using "inverted" with network cameras... maybe turning it off would help.

another thing is to use "regular expressions" in the network options.

can you access the camera with http://10.0.0.2 without user/password? are you sure its 640x480 with 24 bit?

if it is still does not work, you should give us some log file snippets.

Code: Select all

$> man woman
$> Segmentation fault (core dumped)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

yeah there lots of possibles here
You need to check you logs too
Check what the image returned from a browser or wget is (size wise) you coulbe be having shared mem errors (shmget) or path issues etc
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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

In your paths settings for ZM_PATH_ZMS this should be the relative to the web root not your drive root ie. /cgi-bin/zms
Everything else looks good. Some logs would help.
Run the following command:
tail -f /tmp/zm*.log /var/log/messages

Then from another console window restart zm and try to view your monitor. Post the logs after the restart.

Regards,
Corey
rayman2
Posts: 12
Joined: Thu Jun 01, 2006 2:55 pm

Post by rayman2 »

hi.

I have uploaded my logs to 100mbit server so you can download it

http://vegovc.si/~lukpiv/logsZM.tar

and yes i can access to camera UI through 10.0.0.2

BTW: I am using 2 NICs eth0 is 192.168.1.236 eth1: 10.0.0.1

tnx

Have a nice day!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Did you correct your config error???

And rather than go through all your logs just the snips posted here on the forum would be fine.

Regards,
Corey
rayman2
Posts: 12
Joined: Thu Jun 01, 2006 2:55 pm

Post by rayman2 »

hm i am getting those 2 errors :S

06/22/06 08:24:12.272811 zmwatch[12000].INF ['zmc -m 1' started at 06/06/22 08:24:12] at /usr/local/bin/zmwatch.pl line 118
06/22/06 08:24:12.274358 zmwatch[12000].ERR [Can't get shared memory id '7a6d2002', 2: No such file or directory]
06/22/06 08:24:12.274712 zmwatch[12000].INF [Restarting capture daemon for Kamera, shared memory not valid]
06/22/06 08:24:12.595139 zmwatch[12000].INF ['zmc -m 2' started at 06/06/22 08:24:12] at /usr/local/bin/zmwatch.pl line 118


and

06/22/06 08:24:12.566141 zmdc[11415].INF ['zmc -m 2' starting at 06/06/22 08:24:12, pid = 5922]
06/22/06 08:24:12.588707 zmdc[11415].ERR ['zmc -m 2' crashed, exit status 255]
06/22/06 08:24:13.173183 zmdc[5926].INF ['zmc -m 3' started at 06/06/22 08:24:13]
06/22/06 08:24:13.174137 zmdc[11415].INF ['zmc -m 3' starting at 06/06/22 08:24:13, pid = 5926]
06/22/06 08:24:13.202669 zmdc[11415].ERR ['zmc -m 3' crashed, exit status 255]


Tnx

Have a nice day!
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

what camera is this an axis?
It appears as if zm isnt getting imagaes and this could be a shared mem isue of a size of image issue.
Plus as suggested keep the comfig as std as possible before inverting images so turn this off.
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
rayman2
Posts: 12
Joined: Thu Jun 01, 2006 2:55 pm

Post by rayman2 »

oky i disabled all unnecesary things but it is still not working :(:(

Have a nice day!
Last edited by rayman2 on Mon Jun 26, 2006 7:35 am, edited 1 time in total.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Is this machine available over the net?
If so, If you would like, I can log-in and take a look and see if I can get you going.
Just PM the info to me including your setup so I don't have to poke around to much to find out what it is.

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

Post by cordel »

Problem solved.
There were three things going on here.
First the path for zms was not correct and didn't go with the alias for the cgi-bin directory in http.conf
The path under the paths tab in zm options is relitive to the web root and not the drive root.
/var/www/localhost/cgi-bin/zms is the drive root and should be /cgi-bin/zms
Second the alias was wrong in httpd.conf so I commented out the bad line and added the correct alias

Code: Select all

# Alias.
#
#ScriptAlias /cgi-bin/ /var/www/localhost/cgi-bin/
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
The real cgi-bin should never really be in the real web root. That just bad ju ju.

The other issue was the shared memory was set to small for shmmax.

Cheers,
Corey
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for saving the day again Corey :lol:
Phil
Locked