首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Sentry忽略

Sentry忽略
EN

Stack Overflow用户
提问于 2015-02-20 19:53:18
回答 1查看 423关注 0票数 1

我已经将Sentry安装到位于/www/sentry/的virtualenv中,并且我有一个配置文件/www/sentry/sentry.conf.py。我能够成功地运行以下命令:

  • $ sentry --config=/www/sentry/sentry.conf.py celery worker -B
  • $ sentry --config=/www/sentry/sentry.conf.py upgrade

我甚至可以运行sentry --config=/www/sentry/sentry.conf.py shell,然后在Django shell中,检查从django.conf导入的settings模块是否具有我在sentry.conf.py文件中添加的自定义设置。

但是,当我试图拆分包含的Gunicorn服务器时,我会得到以下内容:

代码语言:javascript
复制
$ sentry --config=/www/sentry/sentry.conf.py start
Performing upgrade before service startup...
Loading help page organizations.md
Loading help page sampling.md
Loading help page tagging.md
Loading help page quotas.md
Loading help page teams_and_projects.md
Running service: 'http'
[2015-02-20 19:47:01 +0000] [19199] [INFO] Starting gunicorn 19.2.1
[2015-02-20 19:47:01 +0000] [19199] [INFO] Listening at: http://0.0.0.0:9000 (19199)
[2015-02-20 19:47:01 +0000] [19199] [INFO] Using worker: sync
[2015-02-20 19:47:01 +0000] [19219] [INFO] Booting worker with pid: 19219
[2015-02-20 19:47:01 +0000] [19219] [ERROR] Exception in worker process:
Traceback (most recent call last):
  File "/www/sentry/lib/python2.7/site-packages/gunicorn/arbiter.py", line 503, in spawn_worker
    worker.init_process()
  File "/www/sentry/lib/python2.7/site-packages/gunicorn/workers/base.py", line 116, in init_process
    self.wsgi = self.app.wsgi()
  File "/www/sentry/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
    self.callable = self.load()
  File "/www/sentry/lib/python2.7/site-packages/sentry/services/http.py", line 34, in load
    import sentry.wsgi
  File "/www/sentry/lib/python2.7/site-packages/sentry/wsgi.py", line 20, in <module>
    configure()
  File "/www/sentry/lib/python2.7/site-packages/sentry/utils/runner.py", line 399, in configure
    initializer=initialize_app,
  File "/www/sentry/lib/python2.7/site-packages/logan/runner.py", line 89, in configure_app
    raise ValueError("Configuration file does not exist at %r" % (config_path,))
ValueError: Configuration file does not exist at '/www/.sentry/sentry.conf.py'
...etc...

我尝试创建一个/www/.sentry/目录,然后将我的配置文件复制到其中,然后服务器加载,没有问题:

代码语言:javascript
复制
$ mkdir /www/.sentry/
$ cp /www/sentry/sentry.conf.py /www/.sentry/sentry.conf.py
$ sentry --config=/www/sentry/sentry.conf.py start
Performing upgrade before service startup...
Loading help page organizations.md
Loading help page sampling.md
Loading help page tagging.md
Loading help page quotas.md
Loading help page teams_and_projects.md
Running service: 'http'
[2015-02-20 19:50:12 +0000] [19653] [INFO] Starting gunicorn 19.2.1
[2015-02-20 19:50:12 +0000] [19653] [INFO] Listening at: http://0.0.0.0:9000 (19653)
[2015-02-20 19:50:12 +0000] [19653] [INFO] Using worker: sync
[2015-02-20 19:50:12 +0000] [19673] [INFO] Booting worker with pid: 19673
[2015-02-20 19:50:12 +0000] [19674] [INFO] Booting worker with pid: 19674
[2015-02-20 19:50:12 +0000] [19675] [INFO] Booting worker with pid: 19675

然而,这似乎是愚蠢和不必要的。有人能指点我正确的方向吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-02-27 13:46:43

我也有同样的问题,我发现了这个错误报告:

https://github.com/getsentry/sentry/issues/1438

这个提交为我修复了它:https://github.com/getsentry/sentry/commit/7629de1102973e4a3930487a3bf126a2f13c6850

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28637126

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档