Version v5.10.53
Environment Zip
Checklist
- Can you replicate the issue on our v5 demo site https://demo.invoiceninja.com or Invoice Ninja? No
- Have you searched existing issues? Yes
- Have you inspected the logs in storage/logs/laravel.log for any errors? Yes
Cannot update system because routes-v7.php is not writable
Describe the bug
Unable to perform update because routes-v7.php is not available. I have attempted to update via the web gui, Windows App and Mac App
Steps To Reproduce
Click update button enter password. Failure
Expected Behaviour
I can update?
Additional context
chown -R www-data:www-data /var/www/invoice-ninja has been run several times
chmod -R 775 /var/www/invoice-ninja has been run several times
drwxrwxr-x 15 www-data www-data 4096 Dec 11 19:36 invoice-ninja.
I’ve attempted an artisan migrate. But after refreshing i’m then presenting with the setup page. I enter all the previous details and i’m prompt to create a company with all my previous entries gone. I’ve resolved that with a snapshot rollback.
Logs
[2024-12-11 19:48:41] production.INFO: running post update
[2024-12-11 19:48:41] production.INFO: I wasn’t able to migrate the data.
[2024-12-11 19:48:41] production.INFO: finished migrating
[2024-12-11 19:48:41] production.INFO: cleared config
[2024-12-11 19:48:41] production.INFO: view cleared
[2024-12-11 19:48:41] production.INFO: queue restarted
[2024-12-11 19:48:42] production.INFO: Sent for version check
[2024-12-11 19:49:10] production.ERROR: Cannot update system because routes-v7.php is not writable {“userId”:1,“exception”:"[object] (App\Exceptions\FilePermissionsFailure(code: 0): Cannot update system because routes-v7.php is not writable at /var/www/invoice-ninja/app/Http/Controllers/SelfUpdateController.php:182)