You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for a similar issue in our bug tracker and didn't find any solutions.
What happened?
Reload plugin in 2.7.6 hangs when trying to reload invalid PHPland code (like syntax errors) until hits an endure timeout.
2.6.6 used to die immediately.
Attached both 2.6 and 2.7 log outputs for exactly the same reload scenario.
Version
2.7.6
Relevant log output
2022-02-10T14:33:55.057Z DEBUG rpc plugin was started {"address": "tcp://127.0.0.1:6001", "list of the plugins with RPC methods:": ["informer", "resetter"]}
[INFO] RoadRunner server started; version: 2.7.6, buildtime: 2022-02-06T10:22:44+0000
2022-02-10T14:33:56.532Z DEBUG server worker is allocated {"pid": 15, "internal_event_name": "EventWorkerConstruct"}
2022-02-10T14:33:56.532Z DEBUG http http server was started {"address": "0.0.0.0:8008"}
2022-02-10T14:34:06.062Z DEBUG reload file was updated {"path": "/code/app/src/Controller/IndexController.php", "name": "IndexController.php", "size": 1443}
2022-02-10T14:34:07.063Z INFO http reset signal was received
2022-02-10T14:34:07.077Z DEBUG server worker destroyed {"pid": 15, "internal_event_name": "EventWorkerDestruct"}
2022-02-10T14:34:07.631Z INFO server [ParseError]
syntax error, unexpected token ")", expecting variable
in /code/app/src/Controller/IndexController.php:41
2022-02-10T14:34:07.645Z ERROR container/poller.go:16 vertex got an error {"id": "reload.Plugin", "error": "reload_plugin_serve: WorkerAllocate:\n\thttp_plugin_reset:\n\tstatic_pool_allocate_workers: EOF"}
github.com/roadrunner-server/endure/pkg/container.(*Endure).poll.func1
github.com/roadrunner-server/endure@v1.2.1/pkg/container/poller.go:16
2022-02-10T14:34:37.647Z ERROR container/stop.go:147 vertices which are not stopped {"id": ["config.Plugin", "logger.Plugin", "server.Plugin", "gzip.Plugin", "prometheus.Plugin", "memory.Plugin", "boltdb.Plugin", "redis.Plugin"]}
github.com/roadrunner-server/endure/pkg/container.(*Endure).shutdown
github.com/roadrunner-server/endure@v1.2.1/pkg/container/stop.go:147
github.com/roadrunner-server/endure/pkg/container.(*Endure).Shutdown
github.com/roadrunner-server/endure@v1.2.1/pkg/container/endure.go:459
reflect.Value.call
reflect/value.go:556
reflect.Value.Call
reflect/value.go:339
github.com/roadrunner-server/endure/pkg/fsm.(*FSMImpl).Transition
github.com/roadrunner-server/endure@v1.2.1/pkg/fsm/fsm.go:216
github.com/roadrunner-server/endure/pkg/container.(*Endure).Stop
github.com/roadrunner-server/endure@v1.2.1/pkg/container/endure.go:328
github.com/roadrunner-server/endure/pkg/container.(*Endure).startMainThread.func1
github.com/roadrunner-server/endure@v1.2.1/pkg/container/poller.go:56
2022-02-10T14:34:37.647Z ERROR container/poller.go:58 error during stopping vertex {"id": "reload.Plugin", "error": "endure_shutdown: Timeout: timeout exceed, some vertices may not be stopped and can cause memory leak"}
github.com/roadrunner-server/endure/pkg/container.(*Endure).startMainThread.func1
github.com/roadrunner-server/endure@v1.2.1/pkg/container/poller.go:58
error occurred: reload_plugin_serve: WorkerAllocate:
http_plugin_reset:
static_pool_allocate_workers: EOF, plugin: reload.Plugin
handle_serve_command: WorkerAllocate:
reload_plugin_serve:
http_plugin_reset:
static_pool_allocate_workers: EOF
2022-02-10T14:39:59.552Z DEBUG rpc RPC plugin started {"address": "tcp://127.0.0.1:6001", "plugins": ["informer", "resetter"]}
[INFO] RoadRunner server started; version: 2.6.6, buildtime: 2021-12-15T10:32:57+0000
2022-02-10T14:40:00.977Z DEBUG http http server is running {"address": "0.0.0.0:8008"}
2022-02-10T14:40:00.977Z INFO server worker allocated, pid: 18
2022-02-10T14:40:07.556Z DEBUG reload file was updated {"path": "/code/app/src/Controller/IndexController.php", "name": "IndexController.php", "size": 1441}
2022-02-10T14:40:08.556Z INFO http HTTP plugin got restart request. Restarting...
2022-02-10T14:40:08.659Z INFO server worker destroyed, pid: 18
2022-02-10T14:40:09.215Z INFO server [ParseError]
syntax error, unexpected token ")", expecting variable
in /code/app/src/Controller/IndexController.php:41
2022-02-10T14:40:09.220Z ERROR container/poller.go:16 vertex got an error {"id": "reload.Plugin", "error": "reload_plugin_serve: WorkerAllocate:\n\thttp_plugin_reset:\n\tgoridge_frame_receive: EOF"}
github.com/spiral/endure/pkg/container.(*Endure).poll.func1
github.com/spiral/endure@v1.1.0/pkg/container/poller.go:16
error occurred: reload_plugin_serve: WorkerAllocate:
http_plugin_reset:
goridge_frame_receive: EOF, plugin: reload.Plugin
handle_serve_command: WorkerAllocate:
reload_plugin_serve:
http_plugin_reset:
goridge_frame_receive: EOF
The text was updated successfully, but these errors were encountered:
No duplicates 🥲.
What happened?
Reload plugin in 2.7.6 hangs when trying to reload invalid PHPland code (like syntax errors) until hits an endure timeout.
2.6.6 used to die immediately.
Attached both 2.6 and 2.7 log outputs for exactly the same reload scenario.
Version
2.7.6
Relevant log output
The text was updated successfully, but these errors were encountered: