500: Cannot update system because php is not writable

Does anyone know what causes this?

I see it when I try to update even if I chmod the entire root folder and everything below it to 777.

I’m running in OpenLiteSpeed on Ubuntu 22.04 if that makes any difference. Other apps such as WordPress update without problems.

Hi,

This error can occur if the cron is running as a user other than root.

One workaround is to update by manually copying over the latest release zip.

I should have said how to reproduce it, sorry - I clicked the blue warning triangle in the bottom left corner, then “Update now” then the password of the main admin user.

The instructions say to run the cron as the web user, but I tried running the cron as root anyway and the error message changed to a long string like this:
500: Cannot update system because 64c08d… is not writable

I did try manually updating by unzipping the latest version and one of the puzzling things is I still see an update notice, but only about the web app.

update notification

I’m not sure how the database gets updated if I just unzip things (newbie here, trying it out for the first time so a certain amount of ignorance is to be expected!).

Sorry, you’re correct, The crons should be run as the web user.

The app uses database migrations to update the database, they should be run automatically but you can manually run them using php artisan migrate.

I’ve done a clean install and the problem has gone, at least for now.