500 - Server Error after force update

Hi,

I saw that there was an update available for InvoiceNinja v5 so I clicked to update with Force Update.
Now my installation is broken and whenever I go to https://my.domain.com I receive 500 - Server Error.
I tried a couple of suggested php artisan commands and my /storage/logs/ is empty.

Anybody have an idea?

Hi,

Are there any details about the 500 in the web server error logs?

This is all I have from today:

[Wed May 25 02:36:04.719496 2022] [proxy_fcgi:error] [pid 42206:tid 139676182775552] [client 213.125.79.194:59350] AH01071: Got error 'PHP message: PHP Warning: POST Content-Length of 18997766 by$[Wed May 25 02:36:30.245422 2022] [proxy_fcgi:error] [pid 42206:tid 139676182775552] [client 213.125.79.194:59356] AH01071: Got error 'PHP message: PHP Warning: POST Content-Length of 8759681 byt$[Wed May 25 02:58:02.681473 2022] [proxy_fcgi:error] [pid 42206:tid 139676182775552] [client 213.125.79.194:50794] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 02:58:14.391049 2022] [proxy_fcgi:error] [pid 42206:tid 139676233131776] [client 213.125.79.194:50794] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 02:58:36.564392 2022] [proxy_fcgi:error] [pid 42206:tid 139676233131776] [client 213.125.79.194:50808] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:00:08.919437 2022] [proxy_fcgi:error] [pid 42206:tid 139676019058432] [client 80.94.93.250:38904] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Compo$[Wed May 25 03:01:44.645238 2022] [proxy_fcgi:error] [pid 42206:tid 139676182775552] [client 213.125.79.194:50914] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:02:10.913129 2022] [mpm_event:notice] [pid 41806:tid 139676487234688] AH00491: caught SIGTERM, shutting down
[Wed May 25 03:02:20.153908 2022] [mpm_event:notice] [pid 55775:tid 139972503405696] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Wed May 25 03:02:20.154027 2022] [core:notice] [pid 55775:tid 139972503405696] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed May 25 03:02:44.385098 2022] [proxy_fcgi:error] [pid 55777:tid 139972190562048] [client 213.125.79.194:50950] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:07:54.975685 2022] [proxy_fcgi:error] [pid 55777:tid 139972190562048] [client 213.125.79.194:51150] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:09:22.624848 2022] [proxy_fcgi:error] [pid 55777:tid 139972492699392] [client 213.125.79.194:51178] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:10:10.639954 2022] [proxy_fcgi:error] [pid 55777:tid 139972036257536] [client 94.102.61.10:58278] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Compo$[Wed May 25 03:10:12.204189 2022] [proxy_fcgi:error] [pid 55777:tid 139972019472128] [client 94.102.61.10:33806] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Compo$[Wed May 25 03:10:20.333306 2022] [proxy_fcgi:error] [pid 55777:tid 139972492699392] [client 213.125.79.194:51217] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:10:25.223431 2022] [proxy_fcgi:error] [pid 55777:tid 139972492699392] [client 213.125.79.194:51217] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:12:43.319574 2022] [mpm_event:notice] [pid 55775:tid 139972503405696] AH00493: SIGUSR1 received. Doing graceful restart
[Wed May 25 03:12:43.335793 2022] [mpm_event:notice] [pid 55775:tid 139972503405696] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Wed May 25 03:12:43.335815 2022] [core:notice] [pid 55775:tid 139972503405696] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed May 25 03:12:48.270462 2022] [mpm_event:notice] [pid 55775:tid 139972503405696] AH00491: caught SIGTERM, shutting down
[Wed May 25 03:12:48.332241 2022] [mpm_event:notice] [pid 56371:tid 140066587047040] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Wed May 25 03:12:48.332363 2022] [core:notice] [pid 56371:tid 140066587047040] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed May 25 03:12:56.553410 2022] [proxy_fcgi:error] [pid 56372:tid 140066282596096] [client 213.125.79.194:51263] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:14:51.553678 2022] [proxy_fcgi:error] [pid 56372:tid 140066282596096] [client 213.125.79.194:51319] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:21:46.113469 2022] [proxy_fcgi:error] [pid 56372:tid 140066038957824] [client 193.106.191.48:54058] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:21:57.200606 2022] [proxy_fcgi:error] [pid 56372:tid 140066282596096] [client 213.125.79.194:59654] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:22:28.210426 2022] [mpm_event:notice] [pid 56371:tid 140066587047040] AH00491: caught SIGTERM, shutting down
[Wed May 25 03:22:28.291449 2022] [mpm_event:notice] [pid 56681:tid 140566331110528] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Wed May 25 03:22:28.291574 2022] [core:notice] [pid 56681:tid 140566331110528] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed May 25 03:22:39.035121 2022] [proxy_fcgi:error] [pid 56683:tid 140565874202368] [client 109.237.103.38:56778] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:22:44.457069 2022] [proxy_fcgi:error] [pid 56682:tid 140566018266880] [client 213.125.79.194:59671] AH01071: Got error 'PHP message: PHP Fatal error: Trait "Awobaz\Compoships\Com$[Wed May 25 03:26:25.288217 2022] [mpm_event:notice] [pid 56681:tid 140566331110528] AH00491: caught SIGTERM, shutting down
[Wed May 25 03:26:25.360600 2022] [mpm_event:notice] [pid 56933:tid 139702652478592] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Wed May 25 03:26:25.360709 2022] [core:notice] [pid 56933:tid 139702652478592] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed May 25 03:26:38.862119 2022] [proxy_fcgi:error] [pid 56935:tid 139702641772288] [client 213.125.79.194:63557] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ReflectionException: $[Wed May 25 03:26:41.925026 2022] [proxy_fcgi:error] [pid 56935:tid 139702641772288] [client 213.125.79.194:63557] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ReflectionException: $[Wed May 25 03:26:48.975429 2022] [proxy_fcgi:error] [pid 56935:tid 139702641772288] [client 213.125.79.194:63561] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ReflectionException: $[Wed May 25 03:27:09.595056 2022] [proxy_fcgi:error] [pid 56935:tid 139702641772288] [client 213.125.79.194:63564] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ReflectionException: $[Wed May 25 03:27:26.689952 2022] [mpm_event:notice] [pid 56933:tid 139702652478592] AH00491: caught SIGTERM, shutting down
[Wed May 25 03:27:26.751764 2022] [mpm_event:notice] [pid 57100:tid 140481260811392] AH00489: Apache/2.4.38 (Debian) OpenSSL/1.1.1d configured – resuming normal operations
[Wed May 25 03:27:26.751901 2022] [core:notice] [pid 57100:tid 140481260811392] AH00094: Command line: ‘/usr/sbin/apache2’
[Wed May 25 03:27:55.093069 2022] [proxy_fcgi:error] [pid 57101:tid 140480947967744] [client 213.125.79.194:63576] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ReflectionException: $[Wed May 25 03:28:24.116421 2022] [proxy_fcgi:error] [pid 57101:tid 140480788522752] [client 213.125.79.194:6071] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ReflectionException: C$[Wed May 25 03:28:34.069340 2022] [proxy_fcgi:error] [pid 57101:tid 140480947967744] [client 213.125.79.194:63644] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ReflectionException: $[Wed May 25 03:29:54.760950 2022] [proxy_fcgi:error] [pid 57101:tid 140480947967744] [client 213.125.79.194:63679] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ReflectionException: $[Wed May 25 03:29:56.033363 2022] [proxy_fcgi:error] [pid 57101:tid 140480947967744] [client 213.125.79.194:63679] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught ReflectionException: $

Also I tried a suggestion from another post:

Delete all data in directory /bootstrap/cache/

Restart web server… for me
sudo systemctl restart nginx

then

sudo php7.4 artisan optimize

since then everything works for me

Now my site gives http error 500.

It may help to copy over the latest release zip

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

Note: we’re planning a new release in a few hours.

I’m still quite new to the whole self-hosted side of stuff.
What do you suggest to be the correct way of copying it over?

I suggest checking with your webhost

Here’s the latest release: https://github.com/invoiceninja/invoiceninja/releases/download/v5.3.91/invoiceninja.zip