No images in monitor window

Support and queries relating to all previous versions of ZoneMinder
Locked
BKahler
Posts: 48
Joined: Fri Jun 17, 2005 11:23 am
Location: Arkansas, USA

No images in monitor window

Post by BKahler »

Well its been an intesting experience trying to get FC4 and ZM to work. At one point I was real close. Only issue was the jittery/jumpy image in the ZM monitor window. Phil suggested I check xawtv which is not installed on my machine so I tried tvtime instead. tvtime indicated the same issue with the video stream as ZM was displaying. So I started updating all of the FC4 software hoping to fix the problem that way. As it turned out the problem was with the settings used in the device driver. They were set higher than the camera could provide. I used tvtime to change the settings and the image stabilized.

Unfortunately all of the software upgrades broke the ZM install. After much playing around what I've ended up with is the ZM Monitor window has a box with a black line as a border and in the upper left corner of the window is what I think means missing jpeg symbol.

All of this was working before the software upgrades for FC4 including the ZM Monitor window. But now all I get is the empty box.

I not really sure what error logs to look at for this sort of problem.

I'm betting its a mysql error but I don't have a clue where to look.

Thanks,

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

Post by cordel »

Here are some logs to check for errors (Should be an FAQ item)
For Redhat/Fedora/Suse/Mandriva

/var/log/messages
/var/log/dmseg

/var/log/httpd/error_log (fedora/rh)
/var/log/apache/error_log (suse/Mandriva)

And I know the folder for the database may vary between distros.
/var/log/mysql (fedora/rh)

When zm is compiled from source the default log directory is /tmp
The packages put zm logs in /var/log/zm.
tail -f /tmp/zm*

Regards,
Corey
BKahler
Posts: 48
Joined: Fri Jun 17, 2005 11:23 am
Location: Arkansas, USA

Post by BKahler »

Below are the entires created by using tail -f /var/log/zm*

I didn't see anything that looked out of the ordinary or strange. The /var/log/mysqld file listed no problems either.

I couldn't find the apache log files but did check the httpd log and it was ok also.

Needless to say I'm stumped.

Any help would be appreciated.

rad


==> /tmp/zmaudit.log <==
03/21/06 18:54:40.868231 zmaudit[2479].INF [Found orphaned statistic records for event '386']
03/21/06 18:54:40.869377 zmaudit[2479].INF [deleting]
03/21/06 19:09:40.936570 zmaudit[2479].DBG [Found database monitor '1']
03/21/06 19:09:41.076958 zmaudit[2479].DBG [Got 0 events]
03/21/06 19:09:41.148182 zmaudit[2479].DBG [Found filesystem monitor '1']
03/21/06 19:09:41.160420 zmaudit[2479].DBG [Got 0 events]
03/21/06 19:24:39.836202 zmaudit[3612].DBG [Found database monitor '1']
03/21/06 19:24:39.848790 zmaudit[3612].DBG [Got 0 events]
03/21/06 19:24:39.857350 zmaudit[3612].DBG [Found filesystem monitor '1']
03/21/06 19:24:39.861448 zmaudit[3612].DBG [Got 0 events]

==> /tmp/zmdc.log <==
03/21/06 19:24:31.609237 zmdc[3599].INF ['zmc -d /dev/video0' started at 06/03/21 19:24:31]
03/21/06 19:24:31.615048 zmdc[3575].INF ['zmc -d /dev/video0' starting at 06/03/21 19:24:31, pid = 3599]
03/21/06 19:24:33.410521 zmdc[3575].INF ['zmfilter.pl' starting at 06/03/21 19:24:33, pid = 3603]
03/21/06 19:24:33.412763 zmdc[3603].INF ['zmfilter.pl' started at 06/03/21 19:24:33]
03/21/06 19:24:38.062507 zmdc[3575].INF ['zmaudit.pl -c' starting at 06/03/21 19:24:38, pid = 3612]
03/21/06 19:24:38.154879 zmdc[3612].INF ['zmaudit.pl -c' started at 06/03/21 19:24:38]
03/21/06 19:24:43.361959 zmdc[3575].INF ['zmwatch.pl' starting at 06/03/21 19:24:43, pid = 3618]
03/21/06 19:24:43.365548 zmdc[3618].INF ['zmwatch.pl' started at 06/03/21 19:24:43]
03/21/06 19:24:45.591510 zmdc[3623].INF ['zmupdate.pl -c' started at 06/03/21 19:24:45]
03/21/06 19:24:45.593881 zmdc[3575].INF ['zmupdate.pl -c' starting at 06/03/21 19:24:45, pid = 3623]
tail: cannot open `/tmp/zmdc.sock' for reading: No such device or address

==> /tmp/zmfilter.log <==
03/20/06 21:12:10.444790 zmfilter[14013].INF [Scanning for events]
03/20/2006 21:53:56.900683 zmfilter[2798].INF [Scanning for events]
03/20/06 22:17:01.835369 zmfilter[3196].INF [Scanning for events]
03/20/06 22:38:51.569930 zmfilter[4864].INF [Scanning for events]
03/20/06 22:50:58.520309 zmfilter[2470].INF [Scanning for events]
03/20/06 22:55:46.795486 zmfilter[2742].INF [Scanning for events]
03/20/06 23:05:45.804186 zmfilter[2487].INF [Scanning for events]
03/20/06 23:40:34.117929 zmfilter[2797].INF [Scanning for events]
03/21/06 18:54:38.368011 zmfilter[2474].INF [Scanning for events]
03/21/06 19:24:35.965798 zmfilter[3603].INF [Scanning for events]

==> /tmp/zmpkg.log <==
03/20/06 22:38:41.452155 zmpkg[4817].INF [Command: start]
03/20/06 22:50:43.952040 zmpkg[2416].INF [Command: start]
03/20/06 22:55:11.185485 zmpkg[2649].INF [Command: stop]
03/20/06 22:55:35.750298 zmpkg[2693].INF [Command: start]
03/20/06 23:05:31.671317 zmpkg[2433].INF [Command: start]
03/20/06 23:40:24.627263 zmpkg[2757].INF [Command: start]
03/20/06 23:41:23.841506 zmpkg[2859].INF [Command: stop]
03/21/06 18:54:29.361931 zmpkg[2435].INF [Command: start]
03/21/06 19:16:05.489458 zmpkg[3223].INF [Command: stop]
03/21/06 19:24:24.841788 zmpkg[3562].INF [Command: start]

==> /tmp/zmupdate.log <==
03/14/2006 20:51:42.818766 zmupdate[30366].INF [Checking for updates]
03/14/2006 20:51:43.845504 zmupdate[30366].INF [Got version: '1.22.0']
03/15/06 20:54:48.422094 zmupdate[25833].INF [Checking for updates]
03/15/06 20:54:52.536187 zmupdate[25833].INF [Got version: '1.22.0']
03/19/06 21:04:21.044891 zmupdate[2666].INF [Checking for updates]
03/19/06 21:04:23.740771 zmupdate[2666].INF [Got version: '1.22.0']
03/20/2006 21:54:02.375383 zmupdate[2817].INF [Checking for updates]
03/20/2006 21:54:03.226840 zmupdate[2817].INF [Got version: '1.22.0']

==> /tmp/zmwatch.log <==
03/21/06 18:54:42.356021 zmwatch[2487].INF [Watchdog starting]
03/21/06 18:54:42.379057 zmwatch[2487].INF [Watchdog pausing for 30 seconds]
03/21/06 19:24:44.382082 zmwatch[3618].INF [Watchdog starting]
03/21/06 19:24:44.432344 zmwatch[3618].INF [Watchdog pausing for 30 seconds]
WORC
Posts: 1
Joined: Wed Mar 22, 2006 2:32 am

Some possibilities

Post by WORC »

Hi,

I have ZM 1.22.x but on SUSE 9.3 and had serveral issues. One seemed the same as you descibe with no ZM errors found.

One thing to check to see if it's a streaming issue. If you can select 'Zones' from the streaming page (where you get nothing), if you do see an image it may be a streaming problem.

One issue I had but may not relate to you, is I had to change ZM_PATH_ZMS (Options - paths). Since I setup Apache with different paths, the streaming path was not correct based on Apache config. You would only see an error in Apache's error.log file. It could not find the zms script to run.

Also, you may want to check to make sure the streaming process is running (ps -ef | grep zms).

I did have other problems but usually did see some ZM errors.

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

Post by cordel »

I agree with WORC that you might have a permisions problem. Make sure the folder you set to put cgi can execute scripts as set in the apache config file. Make sure your not starting zm as the root user or this will also cause problems.

You might want to set a monitor to record for a bit and check to see if any jpgs are being saved to the events folder. If there are images, then find why zms is not working.
Else, if you have no jpegs then you need to find out why zmc is not able to read the images (the later is not likely the case as you would see errors in zmdc.log)

Regards,
Corey
stealth
Posts: 17
Joined: Tue Mar 21, 2006 3:14 am

Post by stealth »

I am also getting the same thing; just what should be a jpeg in firefox, here are my relavent logs:

zmdc.log
03/22/06 13:31:05.370964 zmdc[1655].INF ['zmaudit.pl -c' starting at 06/03/22 13:31:05, pid = 1692]
03/22/06 13:31:09.857489 zmdc[1655].INF ['zmaudit.pl -c' stopping at 06/03/22 13:31:09]
03/22/06 13:31:15.880231 zmdc[1655].INF ['zmaudit.pl -c' died, signal 8]
03/22/06 13:31:49.214252 zmdc[1876].INF ['zmaudit.pl -c' started at 06/03/22 13:31:49]
03/22/06 13:31:49.215152 zmdc[1797].INF ['zmaudit.pl -c' starting at 06/03/22 13:31:49, pid = 1876]
03/22/06 16:59:34.879784 zmdc[1797].INF ['zmc -d /dev/video0' starting at 06/03/22 16:59:34, pid = 17936]
03/22/06 16:59:34.903304 zmdc[1797].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/22/06 16:59:45.048773 zmdc[17970].INF ['zmc -d /dev/video0' started at 06/03/22 16:59:45]
03/22/06 16:59:45.052120 zmdc[1797].INF ['zmc -d /dev/video0' starting at 06/03/22 16:59:45, pid = 17970]
03/22/06 16:59:45.075425 zmdc[1797].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/22/06 13:31:48.651335 zmdc[1797].INF ['zmfilter.pl' starting at 06/03/22 13:31:48, pid = 1869]
zmfilter.log
03/22/06 11:54:39.611949 zmfilter[29367].INF [Scanning for events]
03/22/06 13:31:04.964253 zmfilter[1684].INF [Scanning for events]
03/22/06 13:31:48.897216 zmfilter[1869].INF [Scanning for events]
03/22/06 16:59:35.253741 zmpkg[17945].ERR [Unable to find valid 'su' syntax]
03/22/06 16:59:35.422728 zmpkg[17952].INF [Command: stop]
03/22/06 16:59:35.439663 zmpkg[17952].ERR [Unable to find valid 'su' syntax]
03/22/06 16:59:35.612104 zmpkg[17959].INF [Command: stop]
03/22/06 16:59:35.628727 zmpkg[17959].ERR [Unable to find valid 'su' syntax]
03/22/06 13:31:49.815124 zmdc[1797].INF ['zmupdate.pl -c' starting at 06/03/22 13:31:49, pid = 1885]
03/22/06 13:31:49.816028 zmdc[1885].INF ['zmupdate.pl -c' started at 06/03/22 13:31:49]
zmupdate.log
03/22/06 11:54:40.880302 zmupdate[29381].INF [Checking for updates]
03/22/06 11:54:41.419052 zmupdate[29381].INF [Got version: '1.22.0']
zmvideo.log
03/22/06 16:59:34.737677 zmwatch[1881].INF [Restarting capture daemon for New, shared memory not valid]
03/22/06 16:59:34.907844 zmwatch[1881].INF ['zmc -d /dev/video0' started at 06/03/22 16:59:34] at /usr/local/bin/zmwatch.pl line 118
03/22/06 16:59:44.908748 zmwatch[1881].ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
03/22/06 16:59:44.909043 zmwatch[1881].INF [Restarting capture daemon for New, shared memory not valid]
03/22/06 16:59:45.080092 zmwatch[1881].INF ['zmc -d /dev/video0' started at 06/03/22 16:59:45] at /usr/local/bin/zmwatch.pl line 118

one thing that is interesting is that we arent suppose to run zmpkg.pl start as root correct? well when I run it as a normal user I get this:

$ /usr/local/bin/zmpkg.pl start
Can't open log file '/tmp/zmpkg.log': Permission denied at /usr/lib/perl5/site_perl/5.8.7/ZoneMinder/Debug.pm line 251.
Password:

what is the password? im using the default zmpass but no go here

When I DO run it as root I get this:

# /usr/local/bin/zmpkg.pl start
su: Authentication service cannot retrieve authentication info.
(Ignored)
su: Authentication service cannot retrieve authentication info.
(Ignored)

now after starting and stopping zm, etc I get this:

Warning: fopen(/usr/local/etc/zm.conf) [function.fopen]: failed to open stream: Permission denied in /var/www/localhost/htdocs/zm_config.php on line 25
Could not open config file.

this is probably all permission problems... what exacly do i need to chown/chmod and to what? really id like to use a zmuser system user instead of my stealth system user. Help... Thanks
BKahler
Posts: 48
Joined: Fri Jun 17, 2005 11:23 am
Location: Arkansas, USA

Post by BKahler »

I ended up taking the easy way out and just reformated and started over. I had pretty much botched the fc4 install by all the updating I did so I felt it would be best to get back to a good starting point.

There are a couple of issues but I don't think they are ZM related. Hopefully I'll get those resolved soon.

Thanks for all the suggestions.

Brad
Karasutengu
Posts: 5
Joined: Tue May 16, 2006 3:18 am

Post by Karasutengu »

cordel wrote:I agree with WORC that you might have a permisions problem. Make sure the folder you set to put cgi can execute scripts as set in the apache config file. Make sure your not starting zm as the root user or this will also cause problems.

You might want to set a monitor to record for a bit and check to see if any jpgs are being saved to the events folder. If there are images, then find why zms is not working.
Else, if you have no jpegs then you need to find out why zmc is not able to read the images (the later is not likely the case as you would see errors in zmdc.log)

Regards,
Corey
I have a slightly related problem, except is on Ubuntu and not FC4. I do not get an image in the monitor window.

My apache error.log has the following line:

[Sat May 20 13:32:00 2006] [error] [client 127.0.0.1] File does not exist: /var/www/var, referer: http://localhost/zm/index.php?view=watc ... 0&control=

I have ZM_PATH_ZMS set to /var/www/cgi-bin

What I don't understand is the apache error, but I do know it is related to the ZM_PATH_ZMS. Any idea on how I can fix this?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

if you compiled this what did you set your apache dir as?
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
Karasutengu
Posts: 5
Joined: Tue May 16, 2006 3:18 am

Post by Karasutengu »

Sorry, not sure what you mean. When I compiled apache or when I compiled ZoneMinder?
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

when you compiled zm. I have never built from source bt im sure i have read that you have to pass the www dir in the configure line? if so it appears you entered /var/www/var which doesnt exist?
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
Karasutengu
Posts: 5
Joined: Tue May 16, 2006 3:18 am

Post by Karasutengu »

I am using Ubuntu, and my ./configure was:

./configure --with-mysql=/usr --with-webdir=/var/www/zm --with-cgidir=/var/www/cgi-bin --sysconfdir=/etc --with-ffmpeg=/usr/local --with-webuser=www-data --with-webgroup=www-data CPPFLAGS="-I /usr/local/ssl/include -I /usr/local/lib"
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

I know nothing about ubuntu i just noticed
[Sat May 20 13:32:00 2006] [error] [client 127.0.0.1] File does not exist: /var/www/var, referer: http://localhost/zm/index.php?view=watc ... 0&control=

note the addition var at the end
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
Karasutengu
Posts: 5
Joined: Tue May 16, 2006 3:18 am

Post by Karasutengu »

Yeah, thats what I noticed too, yet I have no idea why it is there. When I change the ZM_PATH_ZMS to something other than /var/www/cgi-bin, say something like /cgi-bin, then I get different errors, but I am fairly sure that /var/www/cgi-bin is the correct path.
Locked