laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.78k stars 296 forks source link

Errors reported when using RoadRunner #713

Closed michael-rubel closed 1 year ago

michael-rubel commented 1 year ago

Octane Version

2.0.1

Laravel Version

10.14.1

PHP Version

8.2.3

What server type are you using?

Roadrunner

Server Version

v2023.1.5

Description

local.ERROR: Unable to read frame header: Incorrect header size {"exception":"[object] (Spiral\\Goridge\\Exception\\HeaderException(code: 0): Unable to read frame header: Incorrect header size at /var/www/laravel/vendor/spiral/goridge/src/StreamRelay.php:78)
[stacktrace]
#0 /var/www/laravel/vendor/spiral/roadrunner-worker/src/Worker.php(83): Spiral\\Goridge\\StreamRelay->waitFrame()
roadrunner-php/worker#1 /var/www/laravel/vendor/spiral/roadrunner-http/src/HttpWorker.php(69): Spiral\\RoadRunner\\Worker->waitPayload()
roadrunner-php/worker#2 /var/www/laravel/vendor/spiral/roadrunner-http/src/PSR7Worker.php(102): Spiral\\RoadRunner\\Http\\HttpWorker->waitRequest()
roadrunner-php/worker#3 /var/www/laravel/vendor/laravel/octane/bin/roadrunner-worker(39): Spiral\\RoadRunner\\Http\\PSR7Worker->waitRequest()
roadrunner-php/worker#4 /var/www/laravel/vendor/bin/roadrunner-worker(120): include('...')
roadrunner-php/worker#5 {main}
local.ERROR: Uncaught ErrorException: file_put_contents(): Write of 811876 bytes failed with errno=32 Broken pipe in /var/www/laravel/vendor/spiral/roadrunner-worker/src/Internal/StdoutHandler.php:83
Stack trace:
#0 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(254): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
roadrunner-php/worker#1 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
roadrunner-php/worker#2 /var/www/laravel/vendor/spiral/roadrunner-worker/src/Internal/StdoutHandler.php(83): file_put_contents()
roadrunner-php/worker#3 /var/www/laravel/vendor/symfony/http-foundation/Response.php(364): Spiral\RoadRunner\Internal\StdoutHandler::Spiral\RoadRunner\Internal\{closure}()
roadrunner-php/worker#4 /var/www/laravel/vendor/symfony/http-foundation/Response.php(377): Symfony\Component\HttpFoundation\Response->sendContent()
roadrunner-php/worker#5 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(217): Symfony\Component\HttpFoundation\Response->send()
roadrunner-php/worker#6 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(194): Illuminate\Foundation\Bootstrap\HandleExceptions->renderHttpResponse()
roadrunner-php/worker#7 /var/www/laravel/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/HandleExceptions.php(254): Illuminate\Foundation\Bootstrap\HandleExceptions->handleException()
roadrunner-php/worker#8 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->Illuminate\Foundation\Bootstrap\{closure}()
roadrunner-php/worker#9 {main}

Steps To Reproduce

Install fresh Laravel & Octane with Roadrunner as described in https://github.com/roadrunner-php/issues/issues/16

Member of roadrunner states that this is probably the issue with Octane in https://github.com/roadrunner-php/issues/issues/16

mariandomanik commented 1 year ago

We are receiving the same exceptions after updating Octane to v1.4.3 and Roadrunner

spiral/roadrunner | v2.12.3 spiral/roadrunner-cli | v2.4.0 spiral/roadrunner-http | v2.2.0 spiral/roadrunner-worker | v2.3.0

these exceptions are generated massively during deploy, when the current workers are being shut down.

driesvints commented 1 year ago

Thanks all. Most likely we won't get to this before Laracon so please bear with us until after the event/week.

driesvints commented 1 year ago

We merged a Pr for this thanks