Upgrade from 5.1.70 to 5.1.74

Hi - When upgrading from 5.1.70 to 5.1.74 I get the following in laravel.log and the upgrade fails.

Cannot update system because CHANGELOG.md is not writable at /usr/share/nginx/invoiceninja/app/Http/Controllers/SelfUpdateController.php:104)

I’ve tried chmod 777 CHANGELOG.md, however the upgrade fails. I’ve noticed the permissions of other files is -rw-r-Sr–

I’ve set the permissions to match the other files in /invoiceninja

-rw-r-Sr-- 1 www-data www-data 2.3K May 30 11:51 CHANGELOG.md

However the update still fails with the same error.

Kind Regards


@david any thoughts?

I’ve never seen permission in that format, typically the permissions would need to look like this:

-rw-rw-r-- which equate to 664

Hi - What should the permissions be set to for my invoiceninja root directory for the www-data user and group?

Had a read into permissions, and it looks like a lowercase ‘s’ sets the groupid permissions.

setgid has no effect if the group does not have execute permissions. setgid is represented with a lower-case “s” in the output of ls. In cases where it has no effect it is represented with an upper-case “S”.

I ran chmod -R ug-s /invoiceninja which has resolved the permissions problem and I have been able to update successfully.