Page MenuHomePhabricator

images dir permissions errno=13
Closed, InvalidPublic

Description

Author: catblack

Description:
I think I got a variant of bug 85 when I changed the permissions on my images
dir, (just the root dir, not the subdirs) and was getting errno=13 permissions
errors on the pages with images in my site. Simply going into the desc page of
an image and saving it seemed to fix it.. once. Or perhaps there's a mechanism
that reloads the image index? The following errors are repeated for every image
on every page that has images on my wiki. I am finding I need to set my images
dir '777' or I get this error. (Or perhaps I'm franticaly setting permissions
back to 777 and the wiki updates the internally so the images show up after a
while and this is a coincidence...)

Warning: is_dir(): Stat failed for /home/actionho/public_html/wiki/images/thumb
(errno=13 - Permission denied) in
/home/actionho/public_html/wiki/includes/GlobalFunctions.php on line 495

Warning: is_dir(): Stat failed for
/home/actionho/public_html/wiki/images/thumb/c (errno=13 - Permission denied) in
/home/actionho/public_html/wiki/includes/GlobalFunctions.php on line 497

Warning: is_dir(): Stat failed for
/home/actionho/public_html/wiki/images/thumb/c/ce (errno=13 - Permission denied)
in /home/actionho/public_html/wiki/includes/GlobalFunctions.php on line 499


Version: 1.3.x
Severity: normal
OS: FreeBSD
Platform: PC

Details

Reference
bz557

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:58 PM
bzimport set Reference to bz557.
bzimport added a subscriber: Unknown Object (MLST).

Doesn't sound related to bug 85 at all -- that's an issue with the link tables not having been updated in the
database and has no relation to the filesystem.

You say you changed the permissions on the images dir; what did you change the permissions _to_?

catblack wrote:

I had my permissions set on teh images dir set to 777, which is... unwise, so
changed them to 755 and got the error. And then 766, 776 and finally 777 again.
Er, I think. Editing a desription of an image seemed to fix all the images. I
chg'd perms again and got the same error, and was able to fix it again after a
few minutes.

I'll try to replicate this tonight when I get home. (and much more carefully
this time, promise.)

jeluf wrote:

Pending for user input for over 6 weeks. => Closed.
Reopen if you can provide further details.