Announcement

#1 2024-09-09 20:46:01

triggerhappy
Member
2021-11-30
7

Piwigo update failed with error - how can I re-apply the update?

Hello,

I ran the automatic update from 14.4.0 to 14.5.0 (using the Piwigo admin panel on my local server)
The update failed with the following log entry:

Code:

include/functions_metadata.inc.php: write_protected

Practically all of the php includes in this directory have -rwxr-x-r-x. No special permissions. My Piwigo otherwise runs normally without a single problem.

I don't want my Piwigo to stay in an unknown state (partially patched) because that may cause a huge problem with the database.
My Piwigo self-reports to be running the latest version but I don't know how many files were left unpatched.

Can you please advise? Thanks!

Offline

 

#2 2024-09-10 00:49:53

erAck
Only trying to help
2015-09-06
2129

Re: Piwigo update failed with error - how can I re-apply the update?

-rwxr-x-r-x doesn't say much. If the user the web server runs as is not the owner of the file it does not have write permission. Also check the directories' permissions, deleting or adding a file needs write permission in the directory as well. See also [Forum, post 183419 by erAck in topic 31993] What are the correct permissions for Piwigo files and directories ?.

If in doubt replace all your files with the files from the 14.5.0 zip and be aware that file ownership will be set to the user account creating a file, which when logging in to ssh or using ftp may differ from the web server user account.


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

Offline

 

#3 2024-09-10 01:29:45

triggerhappy
Member
2021-11-30
7

Re: Piwigo update failed with error - how can I re-apply the update?

erAck wrote:

If in doubt replace all your files with the files from the 14.5.0 zip and be aware that file ownership will be set to the user account creating a file, which when logging in to ssh or using ftp may differ from the web server user account.

So, to be more specific, those permissions all have www-data:www-data as Owner/Group, and the container folder is also writable by www-data.

Chances are, a few months back I decided to manually update the affected file to manually fix PHP code in the Piwigo installation and then forgot to chown that file after making changes as server admin. So the auto-update user (www-data) failed when attempting to overwrite this single file.

Thanks for your helpful response!

Last edited by triggerhappy (2024-09-10 01:30:24)

Offline

 

Board footer

Powered by FluxBB

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