laravel / octane

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

Worker failure following Scout search #372

Closed tomsalmo closed 3 years ago

tomsalmo commented 3 years ago

Description:

I'm running Laravel on Octane/RoadRunner. Everything works great until a request comes in that uses Scout (with Meilisearch backend). That request succeeds, but a following request gets a 500, then the worker gets terminated. Subsequent requests are fine until the next search is performed.

2021-09-01T10:35:51.885Z        DEBUG   http            http/plugin.go:122      200 POST http://my-app/api/salesorders/search  {"remote": "10.4.0.100", "elapsed": "84.13963ms"}
2021-09-01T10:35:53.091Z        DEBUG   http            http/plugin.go:122      200 GET http://10.4.0.101/?     {"remote": "10.48.1.1", "elapsed": "5.652431ms"}
2021-09-01T10:35:53.147Z        ERROR   server          server/plugin.go:249    sync_worker_exec_payload: Internal server error.
github.com/spiral/roadrunner/v2/plugins/server.(*Plugin).collectEvents
        github.com/spiral/roadrunner/v2@v2.3.2/plugins/server/plugin.go:249
github.com/spiral/roadrunner/v2/pkg/events.(*HandlerImpl).Push
        github.com/spiral/roadrunner/v2@v2.3.2/pkg/events/general.go:37
github.com/spiral/roadrunner/v2/pkg/pool.defaultErrEncoder.func1
        github.com/spiral/roadrunner/v2@v2.3.2/pkg/pool/static_pool.go:267
github.com/spiral/roadrunner/v2/pkg/pool.(*StaticPool).Exec
        github.com/spiral/roadrunner/v2@v2.3.2/pkg/pool/static_pool.go:152
github.com/spiral/roadrunner/v2/pkg/pool.(*supervised).Exec
        github.com/spiral/roadrunner/v2@v2.3.2/pkg/pool/supervisor_pool.go:53
github.com/spiral/roadrunner/v2/pkg/worker_handler.(*Handler).ServeHTTP
        github.com/spiral/roadrunner/v2@v2.3.2/pkg/worker_handler/handler.go:145
github.com/spiral/roadrunner/v2/plugins/http.(*Plugin).ServeHTTP
        github.com/spiral/roadrunner/v2@v2.3.2/plugins/http/plugin.go:283
net/http.serverHandler.ServeHTTP
        net/http/server.go:2887
net/http.(*conn).serve
        net/http/server.go:1952
2021-09-01T10:35:53.147Z        DEBUG   server          server/plugin.go:232    worker destructed       {"pid": 11}
2021-09-01T10:35:53.155Z        ERROR   server          server/plugin.go:254    worker_watcher_wait: signal: killed; process_wait: signal: killed
github.com/spiral/roadrunner/v2/plugins/server.(*Plugin).collectEvents
        github.com/spiral/roadrunner/v2@v2.3.2/plugins/server/plugin.go:254
github.com/spiral/roadrunner/v2/pkg/events.(*HandlerImpl).Push
        github.com/spiral/roadrunner/v2@v2.3.2/pkg/events/general.go:37
github.com/spiral/roadrunner/v2/pkg/worker_watcher.(*workerWatcher).wait
        github.com/spiral/roadrunner/v2@v2.3.2/pkg/worker_watcher/worker_watcher.go:222
github.com/spiral/roadrunner/v2/pkg/worker_watcher.(*workerWatcher).Watch.func1
        github.com/spiral/roadrunner/v2@v2.3.2/pkg/worker_watcher/worker_watcher.go:54
driesvints commented 3 years ago

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.