【问题标题】:have issue to run the carbon in graphite在石墨中运行碳存在问题
【发布时间】:2017-04-07 22:10:07
【问题描述】:

我有一个 grahite 但我有问题启动碳是:

/opt/graphite/bin/carbon-cache.py start

我得到如下错误,不知道是哪里引起的。

Traceback (most recent call last):
  File "/opt/graphite/bin/carbon-cache.py", line 32, in <module>
    run_twistd_plugin(__file__)
  File "/opt/graphite/lib/carbon/util.py", line 95, in run_twistd_plugin
    config.parseOptions(twistd_options)
  File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 624, in parseOptions
    usage.Options.parseOptions(self, options)
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/usage.py", line 267, in parseOptions
    self.subOptions.parseOptions(rest)
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/usage.py", line 277, in parseOptions
    self.postOptions()
  File "/opt/graphite/lib/carbon/conf.py", line 214, in postOptions
    pwd.getpwnam(settings.USER)[2:4])
KeyError: 'getpwnam(): name not found: carbon'

【问题讨论】:

    标签: graphite


    【解决方案1】:

    检查您的 /opt/graphite/conf/carbon.conf 文件,您可能已将 carbon-caches 配置为通过用户 'carbon' 运行

    用户=碳

    但您的系统上可能没有碳用户。 getpwnam() 正在尝试查找用户信息并失败。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多