lost image in zones

Support and queries relating to all previous versions of ZoneMinder
Locked
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

lost image in zones

Post by jameswilson »

I have upgraded a box from 1.21.3 to 1.22.0 and had a power failure during the rpm upgrade process. As such half the db's were altered and half werent. Anyway i finally got it up and run and all seems great apart from i cant see an image in the zone setup. In the log i have
Mar 8 11:16:22 localhost zmu[3614]: ERR [Can't open Cam_1-Zones.jpg: Permission denied]
So im assuming i have a permission problem. But i dont know how or where to change this. Any ideas?
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
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

This is either that you don't have permissions on the images directory below /var/www/html (or equivalent) or that you have created that file as root and nowe apache is refusing to overwrite it.
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

cheers Phil.
Whats the easist way to change this can i use my friend webmin
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
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

You probably can use webmin but I would suggest using ssh and doing

Code: Select all

chown -R apache:apache /var/www/html/zm/images
subtituing the appropriate web user and path etc. This is normally done during install so I don't know if that means that other things were not completed. I would check the other directories under your zm dir and apply the same operation.
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i have checked an apache owns everything in the zm folder
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
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Then does the Cam jpeg image already exist and if so who owns that? Also are the directories writable?
Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

hold fire i just realised im checkin the wrong box lol hang on

Im such a d1ckhead most of the time!!!!
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
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

right once i checkeed the right box it was indeed the images folder was owned by root!

Thanks all sorted
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
Locked