<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NetApp Harvest - Can't start carbon-cache service in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-Can-t-start-carbon-cache-service/m-p/122483#M21993</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/47530"&gt;@dhubert27﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not a harvest problem but rather a graphite/carbon problem. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error seems to be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; File "/opt/graphite/lib/carbon/conf.py", line 348, in handleAction
    pid = int(pf.read().strip())
ValueError: invalid literal for int() with base 10: ''
                                                           [FAILED]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checking&amp;nbsp;&lt;A href="https://github.com/graphite-project/carbon/blob/master/lib/carbon/conf.py" target="_self"&gt;https://github.com/graphite-project/carbon/blob/master/lib/carbon/conf.py&lt;/A&gt;&amp;nbsp;around line 348 I see:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        elif action == "start":
            if exists(pidfile):
                pf = open(pidfile, 'r')
                try:
                    pid = int(pf.read().strip())
                    pf.close()
                except IOError:
                    print "Could not read pidfile %s" % pidfile
                    raise SystemExit(1)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it looks like the code is reading the pidfile, and the&amp;nbsp;ValueError is raised when trying to convert an empty string into an integer, but this is not expected/handled&amp;nbsp;by the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My guess is you started carbon at the time your filesystem was full which caused the file to be created but to have no contents. &amp;nbsp;Delete the pidfile(s) (default location is in /opt/graphite/storage) and restart carbon-cache and see if that solves things.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Chris Madden&lt;/P&gt;&lt;P&gt;Storage Architect, NetApp EMEA (and author of Harvest)&lt;/P&gt;&lt;P&gt;Blog:&amp;nbsp;&lt;A href="http://blog.pkiwi.com/" target="_blank"&gt;It all begins with data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post resolved your issue, please help others by selecting&amp;nbsp;&lt;STRONG&gt;ACCEPT AS SOLUTION&lt;/STRONG&gt;&amp;nbsp;or adding a&amp;nbsp;&lt;STRONG&gt;KUDO &lt;/STRONG&gt;or both!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2016 08:05:16 GMT</pubDate>
    <dc:creator>madden</dc:creator>
    <dc:date>2016-08-22T08:05:16Z</dc:date>
    <item>
      <title>NetApp Harvest - Can't start carbon-cache service</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-Can-t-start-carbon-cache-service/m-p/122468#M21992</link>
      <description>&lt;P&gt;We initially installed graphite on a 10 GB filesystem and it filled up.&amp;nbsp; After shutting down services and expanding the filesystem to 120 GB, i'm unable to start the carbon-cache service.&amp;nbsp; The&amp;nbsp;httpd&amp;nbsp;and grafana-server services start fine.&amp;nbsp; Below is the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# service carbon-cache start
Starting carbon-cache:a...
Traceback (most recent call last):
  File "bin/carbon-cache.py", line 32, in &amp;lt;module&amp;gt;
    run_twistd_plugin(__file__)
  File "/opt/graphite/lib/carbon/util.py", line 94, in run_twistd_plugin
    config.parseOptions(twistd_options)
  File "/usr/lib64/python2.6/site-packages/twisted/application/app.py", line 669, in parseOptions
    usage.Options.parseOptions(self, options)
  File "/usr/lib64/python2.6/site-packages/twisted/python/usage.py", line 231, in parseOptions
    self.subOptions.parseOptions(rest)
  File "/usr/lib64/python2.6/site-packages/twisted/python/usage.py", line 241, in parseOptions
    self.postOptions()
  File "/opt/graphite/lib/carbon/conf.py", line 256, in postOptions
    self.handleAction()
  File "/opt/graphite/lib/carbon/conf.py", line 348, in handleAction
    pid = int(pf.read().strip())
ValueError: invalid literal for int() with base 10: ''
                                                           [FAILED]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found another post with a solution to delete the following file and it would be re-generated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/graphite/storage/whisper/netapp&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it made no difference.&amp;nbsp;I'm guessing the db was corrupted once the filesystem filled up.&amp;nbsp; Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 19:27:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-Can-t-start-carbon-cache-service/m-p/122468#M21992</guid>
      <dc:creator>dhubert27</dc:creator>
      <dc:date>2025-06-04T19:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest - Can't start carbon-cache service</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-Can-t-start-carbon-cache-service/m-p/122483#M21993</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/47530"&gt;@dhubert27﻿&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not a harvest problem but rather a graphite/carbon problem. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error seems to be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; File "/opt/graphite/lib/carbon/conf.py", line 348, in handleAction
    pid = int(pf.read().strip())
ValueError: invalid literal for int() with base 10: ''
                                                           [FAILED]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checking&amp;nbsp;&lt;A href="https://github.com/graphite-project/carbon/blob/master/lib/carbon/conf.py" target="_self"&gt;https://github.com/graphite-project/carbon/blob/master/lib/carbon/conf.py&lt;/A&gt;&amp;nbsp;around line 348 I see:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;        elif action == "start":
            if exists(pidfile):
                pf = open(pidfile, 'r')
                try:
                    pid = int(pf.read().strip())
                    pf.close()
                except IOError:
                    print "Could not read pidfile %s" % pidfile
                    raise SystemExit(1)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So it looks like the code is reading the pidfile, and the&amp;nbsp;ValueError is raised when trying to convert an empty string into an integer, but this is not expected/handled&amp;nbsp;by the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My guess is you started carbon at the time your filesystem was full which caused the file to be created but to have no contents. &amp;nbsp;Delete the pidfile(s) (default location is in /opt/graphite/storage) and restart carbon-cache and see if that solves things.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Chris Madden&lt;/P&gt;&lt;P&gt;Storage Architect, NetApp EMEA (and author of Harvest)&lt;/P&gt;&lt;P&gt;Blog:&amp;nbsp;&lt;A href="http://blog.pkiwi.com/" target="_blank"&gt;It all begins with data&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If this post resolved your issue, please help others by selecting&amp;nbsp;&lt;STRONG&gt;ACCEPT AS SOLUTION&lt;/STRONG&gt;&amp;nbsp;or adding a&amp;nbsp;&lt;STRONG&gt;KUDO &lt;/STRONG&gt;or both!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 08:05:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-Can-t-start-carbon-cache-service/m-p/122483#M21993</guid>
      <dc:creator>madden</dc:creator>
      <dc:date>2016-08-22T08:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: NetApp Harvest - Can't start carbon-cache service</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-Can-t-start-carbon-cache-service/m-p/122521#M21994</link>
      <description>&lt;P&gt;That was the problem, thanks Chris.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 14:01:02 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/NetApp-Harvest-Can-t-start-carbon-cache-service/m-p/122521#M21994</guid>
      <dc:creator>dhubert27</dc:creator>
      <dc:date>2016-08-22T14:01:02Z</dc:date>
    </item>
  </channel>
</rss>

