我在使用supervisor运行作为服务运行的Sentry(
https://www.getsentry.com – 链接代表不够)时遇到了问题.
我可以在命令行中运行Sentry并在浏览器中正确查看它,但当涉及到主管时,我完全处于黑暗中.
我可以在命令行中运行Sentry并在浏览器中正确查看它,但当涉及到主管时,我完全处于黑暗中.
我会尽力提供所有细节
初始用户警告
>绝不是服务器管理员,只是在VirtualBox中玩/学习.
>字面上只是从阅读Sentry文档中发现了主管,所以我可能会在这里犯一些明显的错误.
设置:
> ubuntu服务器11.10(全新安装,VirtualBox)
>使用Sentry及其依赖项的virtualenv.
>主管
随后说明
>主管vanilla ini file
> Sentry / supervisor instructions
我的主管ini(哨兵部分)
[program:sentry-web] directory=/root/.virtualenvs/sentry/ command= start http /root/.virtualenvs/sentry/bin/sentry autostart=true autorestart=true redirect_stderr=true
好的,我们走了:
当我运行supervisord -n时,我得到以下消息,而不是一个很好的Web界面.
2012-04-12 23:48:09,024 CRIT Supervisor running as root (no user in config file) 2012-04-12 23:48:09,097 INFO RPC interface 'supervisor' initialized 2012-04-12 23:48:09,099 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2012-04-12 23:48:09,100 INFO supervisord started with pid 17813 2012-04-12 23:48:10,126 INFO spawned: 'sentry-web' with pid 17816 2012-04-12 23:48:10,169 INFO exited: sentry-web (exit status 1; not expected) 2012-04-12 23:48:11,199 INFO spawned: 'sentry-web' with pid 17817 2012-04-12 23:48:11,238 INFO exited: sentry-web (exit status 1; not expected) 2012-04-12 23:48:13,269 INFO spawned: 'sentry-web' with pid 17818 2012-04-12 23:48:13,309 INFO exited: sentry-web (exit status 1; not expected) 2012-04-12 23:48:16,343 INFO spawned: 'sentry-web' with pid 17819 2012-04-12 23:48:16,389 INFO exited: sentry-web (exit status 1; not expected) 2012-04-12 23:48:17,394 INFO gave up: sentry-web entered FATAL state,too many start retries too quickly
以root身份运行的CRIT Supervisor(配置文件中没有用户)表明存在一个大问题,可能不应该以root身份运行它?
CRIT服务器’unix_http_server’在没有任何HTTP身份验证检查的情况下运行当然身份验证是可选的吗?
INFO已退出:sentry-web(退出状态1;未预期)*悲伤的面孔*此处.谷歌还没有太多的帮助.
无论如何,就我所知而言.如果有人可以帮助我,将不胜感激.
提前致谢.
更新1
@Mark Henwood,谢谢.
$sudo /root/.virtualenvs/sentry/bin/sentry start http Traceback (most recent call last): File "/root/.virtualenvs/sentry/bin/sentry",line 8,in <module> load_entry_point('sentry==3.8.2','console_scripts','sentry')() File "/root/.virtualenvs/sentry/local/lib/python2.7/site-packages/sentry/utils/runner.py",line 93,in main initializer=initialize_app,File "/root/.virtualenvs/sentry/local/lib/python2.7/site-packages/logan/runner.py",line 120,in run_app raise ValueError("Configuration file does not exist. Use '%s init' to initialize the file." % runner_name) ValueError: Configuration file does not exist. Use 'sentry init' to initialize the file.
必须在sentry子命令之前指定–config选项,如下所示:
sentry --config=/somedir/sentry.conf.py start ....