Supervisor sentry-web 退出状态 1

roc*_*ier 3 ubuntu supervisord

我在使用主管将 Sentry(https://www.getsentry.com - 没有足够的链接代表)作为服务运行时遇到问题。我可以在命令行中运行 Sentry 并在浏览器中正确查看它,但是当涉及到主管时,我完全一无所知。

我会尽力提供我能提供的所有细节

初始用户警告

  • 绝不是服务器管理员,只是在 VirtualBox 中玩/学习。
  • 实际上只是从阅读 Sentry 文档中发现了主管,所以我很可能在这里犯了一些明显的错误。

设置:

  • Ubuntu 服务器 11.10(全新安装,VirtualBox)
  • virtualenv 与 Sentry 及其依赖项。
  • 导师

遵循指示

我的主管ini(哨兵部分)

[program:sentry-web]
directory=/root/.virtualenvs/sentry/
command= start http /root/.virtualenvs/sentry/bin/sentry
autostart=true
autorestart=true
redirect_stderr=true
Run Code Online (Sandbox Code Playgroud)

好的,我们开始:

当我运行时,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
Run Code Online (Sandbox Code Playgroud)

CRIT Supervisor running as root (no user in config file) 暗示一个大问题,可能不应该以 root 身份运行它?

CRIT Server 'unix_http_server' running without any HTTP authentication checking 当然身份验证是可选的?

INFO exited: sentry-web (exit status 1; not expected)*悲伤的脸*在这里。谷歌还没有太大帮助。

无论如何,据我所知,就是这样。如果有人可以帮助我,将不胜感激。

提前致谢。

更新 1

@马克亨伍德,谢谢。

$ 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.
Run Code Online (Sandbox Code Playgroud)

小智 5

--config 选项必须在 sentry 子命令之前指定,如下所示:

sentry --config=/somedir/sentry.conf.py start ....
Run Code Online (Sandbox Code Playgroud)