Issues updating 5.10 to 5.12

I am trying to update my app but am running into an error where it says routes-v7.php is not writable. www:data owns the entire directory so I am not sure why it can’t update. I found the update instructions for overwriting the files but am concerned about losing custom integrations and/or data. I looked through the files and can’t seem to find this file. Any ideas?


Most likely a command such as

php artisan optimnize

was previously run as a user other than www-data.

The fix here is to delete the contents of bootstrap/cache

Then reattemp the upgrade.

I just tried and now it says “update completed” but nothing actually updated.

Doesn’t php artisan automatically run from the user that calls it? I need to use sudo to run because otherwise it gives me this error:

In StreamHandler.php line 111:

The stream or file “/var/www/html/storage/logs/laravel.log” could not be opened in append mode: failed to open stream: Permission denied

I was able to update by deleting the .git folder. Unfortunately the update also overwrote my custom payment implementation and had to revert the snapshop until I figure out how to keep that from happening.