云实例上Docker容器中的Sphinxsearch崩溃

云实例上Docker容器中的Sphinxsearch崩溃,docker,docker-compose,sphinx,piler,Docker,Docker Compose,Sphinx,Piler,我在docker容器中运行了Piler mailarchive(),并且在本地运行良好。现在我想在我的云实例中使用Traefik运行Piler,但我不明白Sphinx服务器为何崩溃。我没有改变狮身人面像的配置 唯一改变的是Traefik代理在云上运行,并路由到容器。斯芬克斯只在局部起作用 searchd通过主管进行管理: [supervisord] nodaemon=true [program:sphinx] command=searchd indexer --all --config /us

我在docker容器中运行了Piler mailarchive(),并且在本地运行良好。现在我想在我的云实例中使用Traefik运行Piler,但我不明白Sphinx服务器为何崩溃。我没有改变狮身人面像的配置

唯一改变的是Traefik代理在云上运行,并路由到容器。斯芬克斯只在局部起作用

searchd通过主管进行管理:

[supervisord]
nodaemon=true

[program:sphinx]
command=searchd indexer --all --config /usr/local/etc/piler/sphinx.conf
user=piler
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
错误:

piler  | Sphinx 3.3.1 (commit b72d67b)
piler  | Copyright (c) 2001-2020, Andrew Aksyonoff
piler  | Copyright (c) 2008-2016, Sphinx Technologies Inc (http://sphinxsearch.com)
piler  |
piler  | 2020-09-23 10:19:12,094 INFO success: sphinx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
piler  | 2020-09-23 10:19:12,097 INFO exited: sphinx (exit status 1; not expected)
piler  | 2020-09-23 10:19:13,106 INFO spawned: 'sphinx' with pid 353
piler  | [Wed Sep 23 10:19:13.115 2020] [353] FATAL: malformed or unknown option near 'indexer'; use '-h' or '--help' to see available options.
piler  | [Wed Sep 23 10:19:13.117 2020] [353] WARNING: Error saving searchd state
piler  | [Wed Sep 23 10:19:13.119 2020] [353] shutdown complete
斯芬克斯版本:3.3.1 操作系统:Ubuntu 20.04 码头工人:19.03 Docker Compose:1.27.3
Piler:1.3.9

Well
command=searchd indexer——所有…
看起来都错了。您可以使用'indexer'作为参数调用
searchd
comand。那不行
searchd
indexer
作为单独的二进制文件。容器可能需要同时运行
indexer
(构建索引),然后运行
searchd
(为它们提供服务)。如果用户没有持久卷,则需要确保索引器在启动之前完成searchd@barryhunter是的,你是对的!command=searchd--config/usr/local/etc/piler/sphinx.conf--nodetach应该是正确的。