1

哨兵

我一直在使用它来设置环境:Sentry Setup

但是当我得到这个命令时:

sentry --config=/etc/sentry.conf.py upgrade

它给了我这个错误:

nope@not_telling_you-ubuntu:~/scratch$ sudo sentry --config=/etc/sentry.conf.py upgrade
Traceback (most recent call last):
  File "/usr/local/bin/sentry", line 9, in <module>
    load_entry_point('sentry==5.4.5', 'console_scripts', 'sentry')()
  File "/usr/local/lib/python2.7/dist-packages/sentry-5.4.5-py2.7.egg/sentry/utils/runner.py", line 197, in main
    initializer=initialize_app,
  File "/usr/local/lib/python2.7/dist-packages/logan/runner.py", line 162, in run_app
    management.execute_from_command_line([runner_name, command] + command_args)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 252, in fetch_command
    app_name = get_commands()[subcommand]
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 101, in get_commands
    apps = settings.INSTALLED_APPS
  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 184, in inner
    self._setup()
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 93, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/usr/local/lib/python2.7/dist-packages/logan/importer.py", line 68, in load_module
    return self._load_module(fullname)
  File "/usr/local/lib/python2.7/dist-packages/logan/importer.py", line 92, in _load_module
    load_settings(self.config_path, allow_extras=self.allow_extras, settings=settings_mod)
  File "/usr/local/lib/python2.7/dist-packages/logan/settings.py", line 49, in load_settings
    execfile(mod_or_filename, conf.__dict__)
  File "/etc/sentry.conf.py", line 45, in <module>
    dgin
django.core.exceptions.ImproperlyConfigured: NameError("name 'dgin' is not defined",)
asdas@asdas-ubuntu:~/scratch$ 

知道会发生什么吗?到目前为止,我已经设置了所有内容。

4

1 回答 1

1

“dgin”是哨兵配置中未定义的变量

这很可能是输入错误或类似的东西,但这就是错误的含义。

于 2013-06-05T18:20:35.383 回答