2013-06-23 27 views
1

我与Graphite存在问题,特别是碳缓存。在某个时候,我运行了它。现在几周后回来时我试着再次启动石墨。 Django的网络应用程序运行良好,但似乎我有一个与碳缓存后端问题。 Graphite安装在/ opt/graphite中,我运行/opt/graphite/bin/carbon-cache.py start。这是我得到的错误:尝试启动碳缓存时发生ValueError

[email protected]:/opt/graphite/bin# ./carbon-cache.py start 
Starting carbon-cache (instance a) 
Traceback (most recent call last): 
    File "./carbon-cache.py", line 30, in <module> 
    run_twistd_plugin(__file__) 
    File "/opt/graphite/lib/carbon/util.py", line 92, in run_twistd_plugin 
    runApp(config) 
    File "/usr/local/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 23, in runApp 
    _SomeApplicationRunner(config).run() 
    File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 386, in run 
    self.application = self.createOrGetApplication() 
    File "/usr/local/lib/python2.7/dist-packages/twisted/application/app.py", line 446, in createOrGetApplication 
    ser = plg.makeService(self.config.subOptions) 
    File "/opt/graphite/lib/twisted/plugins/carbon_cache_plugin.py", line 21, in makeService 
    return service.createCacheService(options) 
    File "/opt/graphite/lib/carbon/service.py", line 127, in createCacheService 
    from carbon.writer import WriterService 
    File "/opt/graphite/lib/carbon/writer.py", line 34, in <module> 
    schemas = loadStorageSchemas() 
    File "/opt/graphite/lib/carbon/storage.py", line 123, in loadStorageSchemas 
    archives = [ Archive.fromString(s) for s in retentions ] 
    File "/opt/graphite/lib/carbon/storage.py", line 107, in fromString 
    (secondsPerPoint, points) = whisper.parseRetentionDef(retentionDef) 
    File "/usr/local/lib/python2.7/dist-packages/whisper.py", line 76, in parseRetentionDef 
    (precision, points) = retentionDef.strip().split(':') 
ValueError: need more than 1 value to unpack 

我看到它作为一个问题与拆分retentionDef.strip().split(':')。我的存储架构配置文件(/opt/graphite/conf/storage-schemas.conf)看起来像:

[stats] 
priority = 110 
pattern = ^stats\..* 
retentions = 10s:6h,1m:7d,10m:1y 
[ts3] 
priority = 100 
pattern = ^skarp\.ts3\..* 
retentions = 60s:1y,1h,:5y 

任何提示我应该在哪里寻找?还是有人知道我在这里错过了什么?

回答

4

我认为问题是[ts3] rentions。 “The retentions line can specify multiple retentions. Each retention of frequency:history is separated by a comma.

在ts3中它看起来是3个保留(以逗号分隔),第二个没有指定历史记录,最后一个没有指定频率。

retentions = 60s:1y,1h,:5y 

我想你可能意味着:

retentions = 60s:1y,1h:5y 

这将是60为后有5年51年和1时数据的第二数据。

+0

Jep,就是这样。不知何故,我在那里得到了这个逗号,并没有看到它。非常感谢,解决了它。 – Marc

相关问题