【发布时间】:2018-06-03 19:48:36
【问题描述】:
我正在努力在我的弹性 beanstalk 环境中添加 Django Channels,但在配置 supervisord 时遇到了问题。具体来说,在/.ebextensions 我有一个文件channels.config,其中包含以下代码:
container_commands:
01_copy_supervisord_conf:
command: "cp .ebextensions/supervisord/supervisord.conf /opt/python/etc/supervisord.conf"
02_reload_supervisord:
command: "supervisorctl -c /opt/python/etc/supervisord.conf reload"
通过弹性 beanstalk CLI 在第二条命令中出现此错误并显示以下错误消息:
Command failed on instance. Return code: 1 Output: error: <class
'FileNotFoundError'>, [Errno 2] No such file or directory:
file: /opt/python/run/venv/local/lib/python3.4/site-
packages/supervisor/xmlrpc.py line: 562.
container_command 02_reload_supervisord in
.ebextensions/channels.config failed.
我的猜测是 supervisor 没有正确安装,但是因为命令 1 复制文件时没有错误,这让我认为 supervisor 确实已安装并且我对容器命令有问题。有没有人在 AWS 环境中实现 supervisor 并且可以看到我哪里出错了?
【问题讨论】:
标签: django amazon-web-services amazon-elastic-beanstalk supervisord