Update failure - server error

I am so determined to make this work because i like the system so damn much!

When I click update app i get ‘server error’. In the plesk log I get error:
‘’’ 500 POST /api/v1/self-update? HTTP/1.0’‘’

I want to get all the little issues out of the way instead of when I’ve spent money and time setting up just the way I want and then realising I need to do some major re-install due to error.

I really appreciate all of your help.

Hi,

There should be more details about the error in storage/logs or the web server error logs.

Note: if Plesk is a form of Docker I’m not sure the in-app update process will be supported.

In the plesk logs i just get a whole lot of get /.well-known/acme-challenge/xyz http/1.0" 404 440 compatible letsencrypt server.

There are around 5 lines and it reapeats around 8 times, but each time with a different key after ‘acme-challenge’

Assuming Plesk uses Docker under the hood you’d want to use these commands to update the app:

docker-compose down
docker-compose pull
docker-compose up

i used the vps direct method to install inv.N. Just unzipped and ran the set up.

Plesk does do docker, but only as a separate extension. I tried a docker container but I struggled to get that to work anyway. Plesk as a control panel is useful. Just in situations like this I get lost. I still have SSH access to ubuntu under the hood.

Ok, in that case please for details about the 500 error in storage/logs

do you mean on the server as in domain.com/public/storage/log?
i don’t have a folder in the storage folder called log.

The storage folder is in the main folder of the project

#46 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()
#47 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\TrimStrings->handle()
#48 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#49 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle()
#50 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#51 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()
#52 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
#53 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142): Illuminate\Pipeline\Pipeline->then()
#54 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#55 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/public/index.php(57): Illuminate\Foundation\Http\Kernel->handle()
#56 {main}
"}

The last 10 entries after trying an update.

Can you please post the full stack trace, the sample above is starting at line 46


[2022-09-23 06:43:45] production.ERROR: file_get_contents(/var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/beganovich/snappdf/versions/revision.txt): Failed to open stream: No such file or directory {"userId":1,"exception":"[object] (ErrorException(code: 0): file_get_contents(/var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/beganovich/snappdf/versions/revision.txt): Failed to open stream: No such file or directory at /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Controllers/SelfUpdateController.php:178)
[stacktrace]
#0 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(259): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError()
#1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}()
#2 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Controllers/SelfUpdateController.php(178): file_get_contents()
#3 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Controllers/SelfUpdateController.php(137): App\\Http\\Controllers\\SelfUpdateController->cleanOldSnapChromeBinaries()
#4 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\SelfUpdateController->update()
#5 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction()
#6 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php(261): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#7 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php(204): Illuminate\\Routing\\Route->runController()
#8 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(725): Illuminate\\Routing\\Route->run()
#9 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#10 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#11 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(62): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest()
#12 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle()
#13 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/QueryLogging.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#14 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\QueryLogging->handle()
#15 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#16 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#17 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/Locale.php(46): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#18 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\Locale->handle()
#19 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/PasswordProtection.php(124): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#20 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\PasswordProtection->handle()
#21 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/TokenAuth.php(96): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#22 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\TokenAuth->handle()
#23 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/SetDb.php(40): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#24 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\SetDb->handle()
#25 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#26 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(726): Illuminate\\Pipeline\\Pipeline->then()
#27 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(703): Illuminate\\Routing\\Router->runRouteWithinStack()
#28 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(667): Illuminate\\Routing\\Router->runRoute()
#29 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(656): Illuminate\\Routing\\Router->dispatchToRoute()
#30 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(167): Illuminate\\Routing\\Router->dispatch()
#31 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#32 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestIpMiddleware.php(45): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#33 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Sentry\\Laravel\\Http\\SetRequestIpMiddleware->handle()
#34 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestMiddleware.php(42): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#35 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Sentry\\Laravel\\Http\\SetRequestMiddleware->handle()
#36 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/livewire/livewire/src/DisableBrowserCache.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#37 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Livewire\\DisableBrowserCache->handle()
#38 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/Cors.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#39 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\Cors->handle()
#40 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#41 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#42 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#43 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#44 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()
#45 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#46 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#47 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#48 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#49 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#50 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#51 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#52 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#53 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142): Illuminate\\Pipeline\\Pipeline->then()
#54 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#55 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/public/index.php(57): Illuminate\\Foundation\\Http\\Kernel->handle()
#56 {main}
"} 

@david any thoughts on the error?

run

vendor/bin/snappdf download

from the command line

Hi All,

Didnt want to create a new topic.
Installation Softaculous via shared hosting.

I am currently getting an error about gmp not being installed.
From the logs:
#53 /home/acetechc/domains/ace-tech.co.za/public_html/invoice/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()
#54 /home/acetechc/domains/ace-tech.co.za/public_html/invoice/public/index.php(57): Illuminate\Foundation\Http\Kernel->handle()
#55 {main}
“}
[2022-09-23 09:29:24] production.ERROR: Declaration of Symfony\Component\HttpFoundation\ResponseHeaderBag::set(string $key, array|string|null $values, bool $replace = true) must be compatible with Symfony\Component\HttpFoundation\HeaderBag::set(string $key, $values, bool $replace = true) {“userId”:1,“exception”:”[object] (Symfony\Component\ErrorHandler\Error\FatalError(code: 0): Declaration of Symfony\Component\HttpFoundation\ResponseHeaderBag::set(string $key, array|string|null $values, bool $replace = true) must be compatible with Symfony\Component\HttpFoundation\HeaderBag::set(string $key, $values, bool $replace = true) at /home/acetechc/domains/ace-tech.co.za/public_html/invoice/vendor/symfony/http-foundation/ResponseHeaderBag.php:109)
[stacktrace]
#0 {main}
"}

https://ace-tech.co.za/phpinfo.php

let me know if you require more information.

I only update via the back end from Softaculous.

I broke it. :frowning:

I ran the update after vendor/bin/snappdf download (which completed with no erro) and the log said

[2022-09-23 10:48:58] production.ERROR: Cannot update system because revision.txt is not writable {“userId”:1,“exception”:"[object] (App\Exceptions\FilePermissionsFailure(code: 0): Cannot update system because revision.txt is not writable at /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Controllers/SelfUpdateController.php:250)

So I searched for revisions.txt and it was in httpdocs/vendor/beganovich/snappdf/versions
I ran chmod 777 (i tried 755 and it still threw the error).

and then ran the update again and it said server error. The whole website went offline with 500 error.

The log:

> [2022-09-23 10:53:16] production.ERROR: chmod(): Operation not permitted {"userId":1,"exception":"[object] (ErrorException(code: 0): chmod(): Operation not permitted at /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/nelexa/zip/src/ZipFile.php:456)
[stacktrace]
#0 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(259): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError()
#1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}()
#2 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/nelexa/zip/src/ZipFile.php(456): chmod()
#3 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Controllers/SelfUpdateController.php(143): PhpZip\\ZipFile->extractTo()
#4 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\SelfUpdateController->update()
#5 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction()
#6 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php(261): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#7 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php(204): Illuminate\\Routing\\Route->runController()
#8 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(725): Illuminate\\Routing\\Route->run()
#9 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#10 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#11 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(62): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest()
#12 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle()
#13 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/QueryLogging.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#14 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\QueryLogging->handle()
#15 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#16 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#17 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/Locale.php(46): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#18 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\Locale->handle()
#19 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/PasswordProtection.php(124): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#20 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\PasswordProtection->handle()
#21 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/TokenAuth.php(96): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#22 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\TokenAuth->handle()
#23 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/SetDb.php(40): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#24 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\SetDb->handle()
#25 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#26 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(726): Illuminate\\Pipeline\\Pipeline->then()
#27 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(703): Illuminate\\Routing\\Router->runRouteWithinStack()
#28 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(667): Illuminate\\Routing\\Router->runRoute()
#29 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(656): Illuminate\\Routing\\Router->dispatchToRoute()
#30 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(167): Illuminate\\Routing\\Router->dispatch()
#31 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#32 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestIpMiddleware.php(45): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#33 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Sentry\\Laravel\\Http\\SetRequestIpMiddleware->handle()
#34 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestMiddleware.php(42): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#35 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Sentry\\Laravel\\Http\\SetRequestMiddleware->handle()
#36 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/livewire/livewire/src/DisableBrowserCache.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#37 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Livewire\\DisableBrowserCache->handle()
#38 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/Cors.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#39 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\Cors->handle()
#40 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#41 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#42 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#43 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#44 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()
#45 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#46 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#47 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#48 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#49 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#50 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#51 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#52 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#53 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(142): Illuminate\\Pipeline\\Pipeline->then()
#54 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(111): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#55 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/public/index.php(57): Illuminate\\Foundation\\Http\\Kernel->handle()
#56 {main}
"} 

I have now gone back and chmod the whole httpdocs folder to 777.
What is the process to repair/try and update invoiceninja now?

The domain linked now just gives me a 500 error and nothing in the log.

I know I shouldnt, but i have been tinkering.

I tried (because i am clueless!)

php artisan install

then after some reading i tried

sudo apt install composer

then

php artisan --help

which resulted in an error that mentioned composureautoloadinit in the log.

So after some more Dr. google I tried

composer dump-autoload

which brought the website back to life from the 500 error.
I also tried

php artisan serve

which is neither here nor there because it also achieved nothing! (apart from run the site on localhost?)

after all of this, I tried to update InN again.

error services.php is not writable

I found service.php in bootstrap/cache/services.php
Ran chmod to 755, didn’t achieve anything. Then tried 777

After this change ran update again. - Server error 500 website offline again
Log file says zipfile.php chmod error

httpdocs/vendor/nelexa/zip/src/zipfile.php chmod - was off
Ran 777.

composer dump-autoload

Website back up
Ran update again - website 500 error again. This time services.php again. So I went round in circles here before I thought that maybe the dump was resetting the files and that is why I was chasing my tail.

  1. composer dump-autoload
  2. chmod -R 777 httpdocs
  3. chown -R www-data:www-data httpdocs (this one, I don’t know why)

Website back up. Ran update again. 500 error - website back down.

[2022-09-23 12:41:33] production.ERROR: chmod(): Operation not permitted {"userId":1,"exception":"[object] (ErrorException(code: 0): chmod(): Operation not permitted at /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/nelexa/zip/src/ZipFile.php:456)
[stacktrace]

So what I understand from this is, when I hit update the settings of the files are reset and then the update doesn’t work???!

I know I am butchering this totally, but i am enjoying the learning experience.

I tried composer update but it gave me an error about curl.

I went to php ini and enabled curl. Then I remember seeing some things that were needed on a guide, so i found those:

sudo apt install php8.1-bcmath php8.1-gmp php8.1-fileinfo php8.1-gd php8.1-mbstring php8.1-pdo php8.1-xml php8.1-curl php8.1-zip php8.1-gmp php8.1-mysql php8.1-fpm

and ran them.

Again ran chmod on httpdocs.

Ran update and the same server error, but the website no longer goes error 500.

Everytime I try and update there is one error in log:

[2022-09-23 13:29:18] production.ERROR: chmod(): Operation not permitted {"userId":1,"exception":"[object] (ErrorException(code: 0): chmod(): Operation not permitted at /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/nelexa/zip/src/ZipFile.php:456)
[stacktrace]
#0 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(259): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError()
#1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}()
#2 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/nelexa/zip/src/ZipFile.php(456): chmod()
#3 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Controllers/SelfUpdateController.php(143): PhpZip\\ZipFile->extractTo()
#4 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\\Http\\Controllers\\SelfUpdateController->update()
#5 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\\Routing\\Controller->callAction()
#6 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php(261): Illuminate\\Routing\\ControllerDispatcher->dispatch()
#7 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Route.php(204): Illuminate\\Routing\\Route->runController()
#8 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(725): Illuminate\\Routing\\Route->run()
#9 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}()
#10 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(126): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#11 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(62): Illuminate\\Routing\\Middleware\\ThrottleRequests->handleRequest()
#12 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle()
#13 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/QueryLogging.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#14 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\QueryLogging->handle()
#15 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#16 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle()
#17 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/Locale.php(46): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#18 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\Locale->handle()
#19 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/PasswordProtection.php(124): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#20 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\PasswordProtection->handle()
#21 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/TokenAuth.php(96): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#22 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\TokenAuth->handle()
#23 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/SetDb.php(40): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#24 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\SetDb->handle()
#25 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#26 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(726): Illuminate\\Pipeline\\Pipeline->then()
#27 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(703): Illuminate\\Routing\\Router->runRouteWithinStack()
#28 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(667): Illuminate\\Routing\\Router->runRoute()
#29 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Routing/Router.php(656): Illuminate\\Routing\\Router->dispatchToRoute()
#30 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(189): Illuminate\\Routing\\Router->dispatch()
#31 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}()
#32 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestIpMiddleware.php(45): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#33 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Sentry\\Laravel\\Http\\SetRequestIpMiddleware->handle()
#34 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Http/SetRequestMiddleware.php(42): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#35 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Sentry\\Laravel\\Http\\SetRequestMiddleware->handle()
#36 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/livewire/livewire/src/DisableBrowserCache.php(19): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#37 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Livewire\\DisableBrowserCache->handle()
#38 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/beyondcode/laravel-query-detector/src/QueryDetectorMiddleware.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#39 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): BeyondCode\\QueryDetector\\QueryDetectorMiddleware->handle()
#40 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php(59): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#41 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Barryvdh\\Debugbar\\Middleware\\InjectDebugbar->handle()
#42 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/app/Http/Middleware/Cors.php(25): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#43 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): App\\Http\\Middleware\\Cors->handle()
#44 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(39): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#45 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Http\\Middleware\\TrustProxies->handle()
#46 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#47 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#48 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ConvertEmptyStringsToNull->handle()
#49 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#50 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle()
#51 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\TrimStrings->handle()
#52 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#53 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle()
#54 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#55 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance->handle()
#56 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}()
#57 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(164): Illuminate\\Pipeline\\Pipeline->then()
#58 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(133): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter()
#59 /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/public/index.php(57): Illuminate\\Foundation\\Http\\Kernel->handle()
#60 {main}
"} 

I have checked this file and all of the permissions are 777, they remain the same even after i try and update and get the ‘server error’

so check this morning after having a few failures the update went through,
@hillel could the hosting provider fix something in the back end that the update went through?

Cause Softaculous picked up that it was updated?

In terms of :frowning: [2022-09-24 10:47:28] production.ERROR: chmod(): Operation not permitted {“userId”:1,“exception”:"[object] (ErrorException(code: 0): chmod(): Operation not permitted at /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/nelexa/zip/src/ZipFile.php:456)
[stacktrace]

error, i have deleted the file and created a new one and I still get the same error. Do I need to give the file some sort of special permissions?

It is currently 777 and user www-data