有问题在石墨中运行碳

时间:2017-04-07 22:10:07

标签: graphite

我有一个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'

1 个答案:

答案 0 :(得分:2)

检查/opt/graphite/conf/carbon.conf文件,您可能已将碳缓存配置为以用户碳排序&#39;通过

USER =碳

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