I added a bottle server that uses python's cassandra library, but it exits with this error: Bottle FATAL Exited too quickly (process log may have details)
log shows this:File "/usr/local/lib/python2.7/dist-packages/cassandra/cluster.py", line 1765, in _reconnect_internal raise NoHostAvailable("Unable to connect to any servers", errors)
So I tried to run it manually using supervisorctl start Bottle ,and then it started with no issue. The conclusion= Bottle service starts too fast (before the needed cassandra supervised service does): a delay is needed!
我添加了一个使用python的cassandra库的瓶子服务器,但它退出时出现此错误:Bottle FATAL退出太快(进程日志可能有详细信息)日志显示:文件“/usr/local/lib/python2.7/dist-packages /cassandra/cluster.py“,第1765行,在_reconnect_internal中引发NoHostAvailable(”无法连接到任何服务器“,错误)所以我尝试使用supervisorctl start Bottle手动运行它,然后它开始没有问题。结论=瓶子服务开始太快(在需要的cassandra监督服务之前):需要延迟!
1 个解决方案
#1
17
This is what I use:
这是我用的:
[program:uwsgi]
command=bash -c 'sleep 5 && uwsgi /etc/uwsgi.ini'
#1
17
This is what I use:
这是我用的:
[program:uwsgi]
command=bash -c 'sleep 5 && uwsgi /etc/uwsgi.ini'