<?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: Why am I unable to generate a diag from an indexer cluster peer after upgrading to Splunk 6.4.0? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-generate-a-diag-from-an-indexer-cluster-peer/m-p/208706#M7831</link>
    <description>&lt;P&gt;This issue is specific to 6.4.0 and is tracked as product defect SPL-118170. This issue will be fixed in an early 6.4.x maintenance release.&lt;/P&gt;

&lt;P&gt;In the meantime, there is a simple work-around to prevent this error, which only affects one python script - &lt;CODE&gt;info_gather.py&lt;/CODE&gt;, which &lt;CODE&gt;splunk diag&lt;/CODE&gt; relies upon:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Download the &lt;A href="https://splunk.box.com/s/sbr8qvm3ltdp9intuzbyktd6cjpc7kj8"&gt;patched &lt;CODE&gt;info_gather.py&lt;/CODE&gt;&lt;/A&gt; from Splunk's box account&lt;/LI&gt;
&lt;LI&gt;Use it to replace file &lt;CODE&gt;$SPLUNK_HOME/lib/python2.7/site-packages/splunk/clilib/info_gather.py&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;You can now run &lt;CODE&gt;splunk diag&lt;/CODE&gt; again without issues - no restart required!&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;For reference, here's the very small diff between the old file and the patched file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ diff -u /opt/splunk/lib/python2.7/site-packages/splunk/clilib/info_gather-6.4.0.py /opt/splunk/lib/python2.7/site-packages/splunk/clilib/info_gather.py
--- /opt/splunk/lib/python2.7/site-packages/splunk/clilib/info_gather-6.4.0.py  2016-03-25 20:05:02.000000000 -0700
+++ /opt/splunk/lib/python2.7/site-packages/splunk/clilib/info_gather.py        2016-04-18 14:36:39.700531894 -0700
@@ -3442,7 +3442,7 @@
     combined_apps.update(slave_apps)
     combined_apps.update(pooled_apps)

-    for key in combined_apps:
+    for key in combined_apps.keys():
         if key not in unique_app_set:
             del combined_apps[key]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 18 Apr 2016 21:46:09 GMT</pubDate>
    <dc:creator>hexx</dc:creator>
    <dc:date>2016-04-18T21:46:09Z</dc:date>
    <item>
      <title>Why am I unable to generate a diag from an indexer cluster peer after upgrading to Splunk 6.4.0?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-generate-a-diag-from-an-indexer-cluster-peer/m-p/208705#M7830</link>
      <description>&lt;P&gt;After upgrading to 6.4.0 today, we are unable to generate a diag from an indexer cluster peer: &lt;/P&gt;

&lt;P&gt;When I attempt to run a &lt;CODE&gt;./splunk diag&lt;/CODE&gt; from my indexers, I receive the following error: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[splunk@ftlxix06 bin]$ splunk diag 

**Apps exist in both the apps and the slave-apps dir: TA-fire_brigade,_cluster 
Duplicate apps will be skipped for app-collection purposes 
An unforeseen error occurred: 
Exception: &amp;lt;type 'exceptions.RuntimeError'&amp;gt;, Value: dictionary changed size during iteration Traceback (most recent call last): 
File "/opt/splunk/lib/python2.7/site-packages/splunk/clilib/cli.py", line 1150, in main parseAndRun(argsList) 
File "/opt/splunk/lib/python2.7/site-packages/splunk/clilib/cli.py", line 977, in parseAndRun retVal = cList.getCmd(command, subCmd).call(argList, fromCLI = True) 
File "/opt/splunk/lib/python2.7/site-packages/splunk/clilib/cli.py", line 280, in call return self.func(args, fromCLI) 
File "/splunk_hotwarm/splunk/lib/python2.7/site-packages/splunk/clilib/control_api.py", line 30, in wrapperFuncreturn func(dictCopy, fromCLI) 
File "/splunk_hotwarm/splunk/lib/python2.7/site-packages/splunk/clilib/info_gather.py", line 3771, in pclMainmain() 
File "/splunk_hotwarm/splunk/lib/python2.7/site-packages/splunk/clilib/info_gather.py", line 3549, in main app_infos = discover_apps() 
File "/splunk_hotwarm/splunk/lib/python2.7/site-packages/splunk/clilib/info_gather.py", line 3445, in discover_apps for key in combined_apps: RuntimeError: dictionary changed size during iteration**
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Apr 2016 21:26:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-generate-a-diag-from-an-indexer-cluster-peer/m-p/208705#M7830</guid>
      <dc:creator>rbal_splunk</dc:creator>
      <dc:date>2016-04-18T21:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to generate a diag from an indexer cluster peer after upgrading to Splunk 6.4.0?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-generate-a-diag-from-an-indexer-cluster-peer/m-p/208706#M7831</link>
      <description>&lt;P&gt;This issue is specific to 6.4.0 and is tracked as product defect SPL-118170. This issue will be fixed in an early 6.4.x maintenance release.&lt;/P&gt;

&lt;P&gt;In the meantime, there is a simple work-around to prevent this error, which only affects one python script - &lt;CODE&gt;info_gather.py&lt;/CODE&gt;, which &lt;CODE&gt;splunk diag&lt;/CODE&gt; relies upon:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Download the &lt;A href="https://splunk.box.com/s/sbr8qvm3ltdp9intuzbyktd6cjpc7kj8"&gt;patched &lt;CODE&gt;info_gather.py&lt;/CODE&gt;&lt;/A&gt; from Splunk's box account&lt;/LI&gt;
&lt;LI&gt;Use it to replace file &lt;CODE&gt;$SPLUNK_HOME/lib/python2.7/site-packages/splunk/clilib/info_gather.py&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;You can now run &lt;CODE&gt;splunk diag&lt;/CODE&gt; again without issues - no restart required!&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;For reference, here's the very small diff between the old file and the patched file:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ diff -u /opt/splunk/lib/python2.7/site-packages/splunk/clilib/info_gather-6.4.0.py /opt/splunk/lib/python2.7/site-packages/splunk/clilib/info_gather.py
--- /opt/splunk/lib/python2.7/site-packages/splunk/clilib/info_gather-6.4.0.py  2016-03-25 20:05:02.000000000 -0700
+++ /opt/splunk/lib/python2.7/site-packages/splunk/clilib/info_gather.py        2016-04-18 14:36:39.700531894 -0700
@@ -3442,7 +3442,7 @@
     combined_apps.update(slave_apps)
     combined_apps.update(pooled_apps)

-    for key in combined_apps:
+    for key in combined_apps.keys():
         if key not in unique_app_set:
             del combined_apps[key]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Apr 2016 21:46:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-generate-a-diag-from-an-indexer-cluster-peer/m-p/208706#M7831</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2016-04-18T21:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to generate a diag from an indexer cluster peer after upgrading to Splunk 6.4.0?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-generate-a-diag-from-an-indexer-cluster-peer/m-p/208707#M7832</link>
      <description>&lt;P&gt;If for some reason, contractual requirements or similar prevent you from changing a file as part of the splunk install, it is also possible to use the updated script externally, as per the documentation &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.0/Troubleshooting/Generateadiag#Run_diag_with_default_settings"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.0/Troubleshooting/Generateadiag#Run_diag_with_default_settings&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;e.g. splunk cmd python path/to/info_gather.py&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 21:52:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-generate-a-diag-from-an-indexer-cluster-peer/m-p/208707#M7832</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2016-04-18T21:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I unable to generate a diag from an indexer cluster peer after upgrading to Splunk 6.4.0?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-generate-a-diag-from-an-indexer-cluster-peer/m-p/208708#M7833</link>
      <description>&lt;P&gt;Another work around is simply moving, deleting, or renaming the duplicate app.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 21:52:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Why-am-I-unable-to-generate-a-diag-from-an-indexer-cluster-peer/m-p/208708#M7833</guid>
      <dc:creator>nnmiller</dc:creator>
      <dc:date>2016-04-18T21:52:47Z</dc:date>
    </item>
  </channel>
</rss>

