2013-06-23 33 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

相關問題