Description
Plugin
Server
I have an idea!
When my newbie was getting used to the RR, some problems arose that were difficult to diagnose.
Let's say i have typical RR config for production usage for Logs plugin:
logs:
level: warn
mode: production
and also a broken worker with a syntax error (for example).
Then the output will only include the EOF
error without any details.
handle_serve_command: Function call error:
2024-10-06T18:27:36.449763889Z serve error from the plugin *http.Plugin stopping execution, error: static_pool_allocate_workers: WorkerAllocate: EOF
A newbie has questions: why the server won't start and what is EOF?
The problem is that errors from the worker only come from the debug level. In production mode, it is difficult to immediately understand what happened. EOF is too unclear a reason. Also, an error in the EOF text was sent to the browser without any details.
What if RR write a more meaningful error message right away? It seems that the worker startup error should be more understandable and the error
level should be.
Another small question. Do RR really use STDERR to exchange data frames?
https://docs.roadrunner.dev/docs/php-worker/worker#communication-methods
Metadata
Metadata
Assignees
Type
Projects
Status