Announcement

#1 2021-11-05 04:50:29

jawn101
Member
2021-01-19
10

Blank errors updating plugins

Hello! I'm trying to update my plugins before updating to Piwigo 12, but though I can see updates are available I just get "ERROR" in the corner of my screen. Nothing is logged in the Apache logs, so I think it must be file system permissions but they seem to be totally fine.

box% ls -lash upload                                                                                                                                             
total 16
4 drwxrwxrwx   4 me  www   512B Jun 30  2020 .
4 drwxr-xr-x  16 me  www   1.0K Jul  6  2020 ..
4 drwxrwxrwx   3 me  www   512B Jun 30  2020 2020
4 drwxrwxrwx   2 me  www   512B Jun 30  2020 buffer

the apache server is running under the www context

Offline

 

#2 2021-11-05 09:34:46

fseveri
Member
1970-01-01
7

Re: Blank errors updating plugins

I have the same problem, but after the update

Offline

 

#3 2021-11-05 10:56:04

alb
Member
2021-01-25
18

Re: Blank errors updating plugins

I have had a similar issue with previous updates, albeit with themes.
The issue was indeed file system permissions.
You list the permissions of subdirectories of the 'upload' directory but plugins are stored in the 'plugins' subdirectory. 'upload' is for originals for your gallery.

Offline

 

#4 2021-11-05 12:49:15

windracer
Member
St. Pete, FL
2014-12-28
359

Re: Blank errors updating plugins

I also had the same problem, before updating to 12. So I just updated to 12 and all of the plugins were updated during that successfully.

Offline

 

#5 2021-11-05 22:05:43

jawn101
Member
2021-01-19
10

Re: Blank errors updating plugins

alb wrote:

I have had a similar issue with previous updates, albeit with themes.
The issue was indeed file system permissions.
You list the permissions of subdirectories of the 'upload' directory but plugins are stored in the 'plugins' subdirectory. 'upload' is for originals for your gallery.

Right you are!

Same situation for the plugins folder though, copy/paste mistake on my part.

box% ls -lash plugins                                                                                                                                                   
total 192
4 drwxrwxrwx  11 me  www   512B Nov  4 23:28 .
4 drwxr-xr-x  16 me  www   1.0K Jul  6  2020 ..
4 drwxrwxrwx   5 me  www   512B Nov  4 23:28 AdminTools
4 drwxrwxrwx   5 me  www   512B Nov  4 23:23 ExtendedDescription
4 -rw-r--r--   1 me  www   610B Jan 19  2021 index.php
4 drwxrwxrwx   3 me  www   512B Jun 30  2020 language_switch
4 drwxrwxrwx   6 me  www   512B Jun 30  2020 LocalFilesEditor
4 drwxrwxrwx   4 me  www   512B Jun 30  2020 menalto2piwigo
4 drwxrwxrwx   3 me  www   512B Jun 30  2020 permalink_generator
4 drwxr-xr-x   5 me  www   512B Jan 19  2021 physical_photo_move
4 drwxrwxrwx   3 me  www   512B Jun 30  2020 rotateImage
4 drwxrwxrwx   7 me  www   512B Jun 30  2020 TakeATour
48 -rw-r--r--   1 me  www    46K Jun 30  2020 zipf42EG8
48 -rw-r--r--   1 me  www    46K Jun 30  2020 zipIFJsir
48 -rw-r--r--   1 me  www    46K Jun 30  2020 zipmx3XrM

Offline

 

#6 2021-11-06 08:58:58

alb
Member
2021-01-25
18

Re: Blank errors updating plugins

jawn101 wrote:

Same situation for the plugins folder though

Not quite the same, I would say. I don't know which exactly plugins are going to be updated (and what are permissions for files and folders inside the directory you listed) but there is no write permission for www group at least for one plugin:

Code:

 4 drwxr-xr-x   5 me  www   512B Jan 19  2021 physical_photo_move

Offline

 

#7 2021-11-06 16:19:34

erAck
Only trying to help
2015-09-06
1366

Re: Blank errors updating plugins

Assuming that 'me' is your user (possibly also used for ftp) and 'www' the web server user, you want to change permissions such that both 'me' and 'www' can read and write ('www' at least for all updates of program files and to upload files and create thumbnails and cache under _data/) and others at most have read permissions, if at all, so directories should be 775 and files 664. You can accomplish that by executing

Code:

chmod -R a-x,ug=rwX,o=rX piwigo

where piwigo is your piwigo installation directory.

You may also want to set
umask 002
in your ~/.bash_profile if you ssh login and work on the command line.

Or umask 007 if others should not have even read access on directories and files you create. In which case you can also further restrict permissions on piwigo to 770 and 660 using
chmod -R a-x,ug=rwX,o= piwigo

777 and 666 (let alone even 777 for files) are almost never necessary unless the web server user is neither the user nor the group user (in which case you probably also don't want 7 and 6 for group).


Running Piwigo at https://erack.net/gallery/

Offline

 

#8 2021-11-07 02:14:49

jawn101
Member
2021-01-19
10

Re: Blank errors updating plugins

erAck wrote:

Assuming that 'me' is your user (possibly also used for ftp) and 'www' the web server user, you want to change permissions such that both 'me' and 'www' can read and write ('www' at least for all updates of program files and to upload files and create thumbnails and cache under _data/) and others at most have read permissions, if at all, so directories should be 775 and files 664. You can accomplish that by executing

Code:

chmod -R a-x,ug=rwX,o=rX piwigo

where piwigo is your piwigo installation directory.

You may also want to set
umask 002
in your ~/.bash_profile if you ssh login and work on the command line.

Or umask 007 if others should not have even read access on directories and files you create. In which case you can also further restrict permissions on piwigo to 770 and 660 using
chmod -R a-x,ug=rwX,o= piwigo

777 and 666 (let alone even 777 for files) are almost never necessary unless the web server user is neither the user nor the group user (in which case you probably also don't want 7 and 6 for group).

This did the trick perfectly, thanks for the simple and complete answer!

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact