Update and all is broken!

I Run the update on the interface and now:

Diese Seite funktioniert nicht

** ** kann diese Anfrage momentan nicht verarbeiten.

HTTP ERROR 500

artisan optimize:

PHP Fatal error: require(): Failed opening required ‘/usr/share/nginx/invoiceninja/bootstrap/autoload.php’ (include_path=’.:/usr/share/php’) in /usr/share/nginx/invoiceninja/artisan on line 16
root@localhost:/usr/share/nginx/invoiceninja#

RAGE all done, and than an update to death…

Logfile = empty as info.

Hi,

It looks like the problem may be related to composer and the vendor folders.

One option is to copy over the selfhost zip (after making a backup) which includes the vendor files.

https://github.com/invoiceninja/invoiceninja/releases/download/v5.3.10/invoiceninja.zip

cc @david

Thank you for the fast answere:
But and now?

root@localhost:/usr/share/nginx/invoiceninja# php7.4 artisan optimize
PHP Notice: Trying to access array offset on value of type null in /usr/share/nginx/invoiceninja/vendor/laravel/framework/src/Illuminate/Support/Facades/Schema.php on line 45
PHP Fatal error: Uncaught Error: Call to a member function connection() on null in /usr/share/nginx/invoiceninja/vendor/laravel/framework/src/Illuminate/Support/Facades/Schema.php:45
Stack trace:
#0 /usr/share/nginx/invoiceninja/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(166): Illuminate\Support\Facades\Schema::getFacadeAccessor()
#1 /usr/share/nginx/invoiceninja/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(255): Illuminate\Support\Facades\Facade::getFacadeRoot()
#2 /usr/share/nginx/invoiceninja/app/Exceptions/Handler.php(76): Illuminate\Support\Facades\Facade::__callStatic()
#3 /usr/share/nginx/invoiceninja/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(366): App\Exceptions\Handler->report()
#4 /usr/share/nginx/invoiceninja/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(131): Illuminate\Foundation\Console\Kernel->reportException()
#5 /usr/share/nginx/invoiceninja/artisan(37): Illuminate\Foundation\Console\Kernel->handle()
#6 {main}
in /usr/share/nginx/invoiceninja/vendor/laravel/framework/src/Illuminate/Support/Facades/Schema.php on line 45

Are the database credentials correct in the .env file?

Yes the credentials are correct.

We think there may be a problem with the build, we’re working on a new release.

Okay Thanks for the info, i made a reinstall and imported the database.
so i have no datas lost.

Thanks for the help @hillel

1 Like