Cannot see image to select zone

Forum for questions and support relating to the 1.28.x releases only.
Locked
themagicm
Posts: 47
Joined: Sat May 14, 2011 2:53 pm

Cannot see image to select zone

Post by themagicm »

When I go to select the zone that way I can outline what I want recorded if there is motion.. I cannot see the image of the zone.

Pic here:

http://i.imgur.com/EI4EP75.png


/var/log/messages shows:
Feb 13 08:10:30 crapserver zmu[16354]: WAR [Shared data not initialised by capture daemon, some query functions may not be available or produce invalid results]
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Cannot see image to select zone

Post by iconnor »

Is zmc running? It needs to be in order to grab an image.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Cannot see image to select zone

Post by knight-of-ni »

That message is just a warning and can be ignored.

A blank image when setting up motion detection zone often means you've got a folder permision issue.
The web account user needs write access to several folders, and I forget if the exact folder causing the issue is "temp" or "images" in your case.
Doesn't matter. you should check them all:

Code: Select all

[abauer@localhost zoneminder]$ pwd
/var/lib/zoneminder
[abauer@localhost zoneminder]$ ls -l
total 0
drwxr-xr-x. 2 apache apache 6 Feb 11 17:58 events
drwxr-xr-x. 2 apache apache 6 Feb 11 17:58 images
drwxr-xr-x. 2 apache apache 6 Feb 11 17:58 sock
drwxr-xr-x. 2 apache apache 6 Feb 11 17:58 swap
drwxr-xr-x. 2 apache apache 6 Feb 11 17:58 temp
If I recall, you are building from source. Your folder paths may be a bit different than mine.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
themagicm
Posts: 47
Joined: Sat May 14, 2011 2:53 pm

Re: Cannot see image to select zone

Post by themagicm »

not building from source. I checked httpd logs, didnt see any permission issue, but I'll double check.

Also, every time I restart zoneminder, I get a message that I need to run zmupdate.pl -f. If I dont, my cameras stay red.
iitywygms
Posts: 123
Joined: Thu Nov 08, 2012 5:19 am

Re: Cannot see image to select zone

Post by iitywygms »

I had the same issue a while back.
I was able to "fix" it by making a creating a symlink. See http://www.zoneminder.com/forums/viewto ... 31&t=22501

Never figured out why this was happening.
themagicm
Posts: 47
Joined: Sat May 14, 2011 2:53 pm

Re: Cannot see image to select zone

Post by themagicm »

Its definitely a file not found issue..

Apache says (removed stuff..just giving the error) :
File does not exist: /var/www/html/blubber

/blubber is where I save all of my video/images. For some reason zm wants to save to /var/www/html/blubber which doesnt exist. If I create a symlink from /var/www/html/blubber to /blubber, I get error Symbolic link not allowed or link target not accessible. Where is it getting the path from?
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Cannot see image to select zone

Post by knight-of-ni »

Sounds like you have an issue with your apache config. Look for a conflicting Alias that Apache is finding instead of the one for zoneminder.

We need to know you the distro you are using and how you installed/built zoneminder to be more specific than that.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
themagicm
Posts: 47
Joined: Sat May 14, 2011 2:53 pm

Re: Cannot see image to select zone

Post by themagicm »

Centos 6.5..

Apache config looks clean along with zoneminder.conf.

i had 1.25.0 running..

Went here:
http://www.zoneminder.com/wiki/index.ph ... ed_distros

then...
wget http://zmrepo.connortechnology.com/el/6 ... noarch.rpm
sudo yum install --nogpgcheck zmrepo-6-4.el6.noarch.rpm
sudo yum install zoneminder
less /usr/share/doc/zoneminder-*/README.CentOS

had issues upgrading.. so went into mysql, dropped zm, then went thru the notes above to just create the db from scratch. Not being able to see the zone to select is OK for now..it just selects the entire zone and I have it set to "record" instead of "mocord". But what I dont like is...

Problem 2:
Every time I restart zoneminder, I get a message that I need to run zmupdate.pl -f. If I dont, my cameras stay red.

I never uninstalled 1.25, just installed 1.28. so part of the problem is, if I do a 'service start zm', then I get the "run zmupdate..." stuff. If I do service zoneminder start, then its fine. So I need to get rid of the service "zm", hopefully that doesnt mess anything up.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Cannot see image to select zone

Post by knight-of-ni »

oh right. Now I remember your setup. You were using one of my old 1.25 rpm's.

Zoneminder's apache config file is located here:
/etc/httpd/conf.d/zoneminder.conf

Assuming you have not modified anything, it configures Apache to point all url's that end in "/zm" to point to the "/usr/share/zoneminder/www" folder. This is where zoneminder's web files live.
It also maps all url's that end in "/cgi-bin/zm" to the "/usr/libexec/zoneminder/cgi-bin" folder, which contains zms-nph.

Make sure you only have one zoneminder config file under /etc/httpd/conf.d and no other config files exist that overlap or conflict with this.

Now if you navigate to the motion zone setup page and view the page source, you should see the img src tag of the image pointing to something like this: images/ZoneXX.jpg where XX is an integer.

Combining all this, this maps to the following location on your local disk:
"/usr/share/zoneminder/www/images/ZoneXX.jpg"

You need to confirm that jpg file exists, and it and the parent folder have the necessary folder permissions for the web user account called apache.

Also, if it is mapping to some other folder, then that confirms you have got an Apache configuration issue somewhere.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
themagicm
Posts: 47
Joined: Sat May 14, 2011 2:53 pm

Re: Cannot see image to select zone

Post by themagicm »

hmm..src says :

src="/blubber/zm/images/Zones4.jpg?1424180421"

Its 777, so anyone can get to it, even apache and the file does exist. Yet error_log says:

[Tue Feb 17 07:40:21 2015] [error] [client ....] File does not exist: /var/www/html/blubber, referer: http://removed.com/zm/index.php?view=zone&mid=4&zid=4


I'll do some snooping around... its something small.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Cannot see image to select zone

Post by knight-of-ni »

So there you go... Apache is looking in the wrong place.
That means you've got some kind of configuration issue somewhere causing Apache to do that.

However, what I can't figure out in my head, is how everything else in your zonemidner system is working fine. Is it?
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
themagicm
Posts: 47
Joined: Sat May 14, 2011 2:53 pm

Re: Cannot see image to select zone

Post by themagicm »

Its strange..

Yep..everything else is fine. So its a low priority, but I'll snoop around and when its fixed, I'll post up.
sonusss
Posts: 1
Joined: Mon Apr 27, 2015 6:29 pm

Re: Cannot see image to select zone

Post by sonusss »

Is there any solution to this issue yet?

I'm facing exactly the same problem.

I tried many apache options and symlink settings without success and this is very annoying because I have several monitors to which I must define multiple zones.... :cry:
Locked