[英]The child node "transport" at path "enqueue_elastica" must be configured
In a Symfony 4.3 app with friendsofsymfony/elastica-bundle
5.1.0, enqueue/elastica-bundle
0.9.3, and enqueue/fs
0.9.12 installation of the latter ends with:在带有
friendsofsymfony/elastica-bundle
5.1.0、 enqueue/elastica-bundle
0.9.3和enqueue/fs
0.9.12的Symfony 4.3应用程序中,后者的安装结束于:
The child node "transport" at path "enqueue_elastica" must be configured.
必须配置路径“enqueue_elastica”处的子节点“transport”。
I've tried multiple permutations in enqueue.yaml
, including the only example I've found.我在
enqueue.yaml
尝试了多种排列,包括我找到的唯一示例。
enqueue.yaml:入队.yaml:
enqueue:
default:
transport: '%env(resolve:ENQUEUE_DSN)%'
client: ~
.env includes: .env 包括:
###> enqueue/enqueue-bundle ###
ENQUEUE_DSN=null://
###< enqueue/enqueue-bundle
Elasticsearch 6.8 is installed. Elasticsearch 6.8 已安装。 Relatively simple indexes are readily created.
相对简单的索引很容易创建。 A more complex index fails with running out of memory - thus the need for
enqueue
.更复杂的索引因内存不足而失败 - 因此需要
enqueue
。
What is an appropriate configuration of enqueue.yaml
for filesystem transport?用于文件系统传输的
enqueue.yaml
的适当配置是什么?
Edit: Curiously, the Ubuntu 18 Hyper-V virtual machine was able to slog through the populating without enqueue
while the Windows host failed at 94200/156865.编辑:奇怪的是,当 Windows 主机在 94200/156865 失败时,Ubuntu 18 Hyper-V 虚拟机能够在没有
enqueue
的情况下进行填充。
The seemingly correct config has:看似正确的配置有:
.env: .env:
...
###> enqueue/enqueue-bundle ###
ENQUEUE_DSN="file://%VAR_DIR%/enqueue"
###< enqueue/enqueue-bundle ###
This needed to accompanied by这需要伴随
enqueue.yaml:入队.yaml:
enqueue:
default:
transport:
dsn: '%env(resolve:ENQUEUE_DSN)%'
path: '%kernel.project_dir%/var/queue' ## probably just a placeholder
client: ~
While the above avoids any errors being thrown it does not allow the populating to complete.虽然上述避免了抛出任何错误,但它不允许填充完成。 I'm officially stuck.
我被正式卡住了。 Time to look at reducing index complexity and multi index searches.
是时候考虑降低索引复杂性和多索引搜索了。
You should add你应该添加
enqueue_elastica:
transport: '%enqueue.default_transport%'
doctrine: ~
In your enqueue.yaml
config在你的
enqueue.yaml
配置中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.