Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

rr serve give: error: static_pool_allocate_workers: WorkerAllocate: EOF #6

Open
sunxyw opened this issue Jan 2, 2023 · 3 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@sunxyw
Copy link

sunxyw commented Jan 2, 2023

I use composer create-project spiral/installer <app> to create the project and always choose the default option.
But when I executed rr serve after the project was created, an error occurred.

I'm clueless about this error, do you know how to fix this?
It works fine when using spiral/app as the template.

❯ ./rr serve
2023-01-02T23:41:50.883+0800    DEBUG   rpc             plugin was started      {"address": "tcp://127.0.0.1:6001", "list of the plugins with RPC methods:": ["informer", "resetter", "app", "jobs", "kv"]}
[INFO] RoadRunner server started; version: 2.12.1, buildtime: 2022-12-01T12:41:48+0000
2023-01-02T23:41:50.991+0800    INFO    server          [Spiral\Config\Exception\LoaderException]
Unable to load config `translator`: no suitable loader found.
in vendor/spiral/framework/src/Config/src/Loader/DirectoryLoader.php:51

2023-01-02T23:41:50.994+0800    ERROR   container/poller.go:16  vertex got an error     {"id": "http.Plugin", "error": "static_pool_allocate_workers: WorkerAllocate: EOF"}
github.com/roadrunner-server/endure/pkg/container.(*Endure).poll.func1
        github.com/roadrunner-server/[email protected]/pkg/container/poller.go:16
2023-01-02T23:41:51.097+0800    DEBUG   server          worker is allocated     {"pid": 11469, "internal_event_name": "EventWorkerConstruct"}
2023-01-02T23:41:51.100+0800    DEBUG   server          worker is allocated     {"pid": 11468, "internal_event_name": "EventWorkerConstruct"}
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    INFO    server          destroy signal received {"timeout": "1m0s"}
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.100+0800    DEBUG   jobs            ------> job poller was stopped <------
2023-01-02T23:41:51.111+0800    DEBUG   server          sending stop request to the worker      {"pid": 11469}
2023-01-02T23:41:51.111+0800    DEBUG   server          sending stop request to the worker      {"pid": 11468}
2023-01-02T23:41:51.114+0800    DEBUG   server          worker destroyed        {"pid": 11468, "internal_event_name": "EventWorkerDestruct"}
2023-01-02T23:41:51.114+0800    DEBUG   server          worker destroyed        {"pid": 11469, "internal_event_name": "EventWorkerDestruct"}
error: static_pool_allocate_workers: WorkerAllocate: EOF
plugin: http.Plugin
@butschster butschster added the bug Something isn't working label Jan 2, 2023
@butschster
Copy link
Contributor

butschster commented Jan 3, 2023

Hi @sunxyw
Can you give us some more details about which step in the process caused the problem? It would really help us troubleshoot and get this fixed as soon as possible. Thanks!

@sunxyw
Copy link
Author

sunxyw commented Jan 3, 2023

I'm using the default options suggested by the installer:

Application Preset: Web
Default App Skeleton: Yes
Cycle ORM: No
Validator: None
Serializer: None
Mailer: No
Template: None
Event Bus: No
Scheduler: No
Temporal: No

It can download dependencies and rr binary normally, but when I execute ./rr serve after the initialization is complete, the error in the post appears.

@butschster
Copy link
Contributor

Thank you @sunxyw

I found the problem.

If you want to fix it quickly, just comment LocaleSelector in app\src\Application\Bootloader\RoutesBootloader.php

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants