Well here is what I did:
cd /usr/share/nginx/invoiceninja/
sudo -u www-data wget https://github.com/invoiceninja/invoiceninja/releases/download/v5.5.13/invoiceninja.zip
sudo rm -r bootstrap/cache/*
sudo mv storage/logs/laravel.log storage/logs/old_laravel.log
sudo shutdown now
create snapshot1
cd /usr/share/nginx/invoiceninja/
sudo -u www-data unzip invoiceninja.zip
logs are empty
sudo -u www-data php artisan optimize
In Container.php line 877:
Target class [db.schema] does not exist.
In Container.php line 875:
Class "db.schema" does not exist
Blank white page.
sudo rm -r bootstrap/cache/*
Now I can see the login page
Running
sudo -u www-data php artisan optimize
Does not give any errors, just this:
INFO Caching the framework bootstrap files.
config .................................................................................... 16ms DONE
routes .................................................................................... 44ms DONE
But logging in again gives me server error 500. And the app is still working.
Laravel log shows some mail notifications about a new login (did not get any mail) and after that there seems to be an mail error
[2022-08-19 11:11:50] production.ERROR: Call to a member function getValue() on null {"userId":1,"exception":"[object] (Error(code: 0): Call to a member function getValue() on null at /usr/share/nginx/invoiceninja/app/Listeners/Mail/MailSentListener.php:49)