<?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: Tried to add a search peer: Error while sending public key to search peer: No route to host in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309178#M9600</link>
    <description>&lt;P&gt;Your OS is telling you that the NIC that you are using doesn't have a network route that will enable them to reach that destination.  Your choices are to send through a NIC that does, or add a route.  If you are sysadmin on your host, then you can read this and figure it out (otherwise open a ticket to your networking team):&lt;BR /&gt;
&lt;A href="http://www.thegeekstuff.com/2012/04/route-examples"&gt;http://www.thegeekstuff.com/2012/04/route-examples&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2017 15:27:59 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-09-04T15:27:59Z</dc:date>
    <item>
      <title>Tried to add a search peer: Error while sending public key to search peer: No route to host</title>
      <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309175#M9597</link>
      <description>&lt;P&gt;(attempting 1 Indexer, +1 SH setup)&lt;/P&gt;

&lt;P&gt;For some reason I am not able to add a search peer.  I tried two approaches as follows:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Log into Splunk Web on the search head and click Settings at the top of the page.
Click Distributed search in the Distributed Environment area.
Click Search peers.
On the Search peers page, select New.
Specify the search peer, along with any authentication settings.
Click Save.
Repeat for each of the search head's search peers.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;It produces: Encountered the following error while trying to save: Error while sending public key to search peer: No route to host&lt;/P&gt;

&lt;P&gt;2) Ran the following from the command line producing the same result:&lt;BR /&gt;
splunk add search-server https:// IndexerIPADDRES:8089 -auth admin:password -remoteUsername admin -remotePassword passremote&lt;/P&gt;

&lt;P&gt;I am able to ping the machines from each respective machine as well as ping google.com from each of the machine.&lt;/P&gt;

&lt;P&gt;I even checked the host level firewall and enable/permit the port in firewall using:&lt;BR /&gt;
sudo firewall-cmd --zone=public --add-port=8089/tcp --permanent&lt;/P&gt;

&lt;P&gt;and reload the config list:&lt;BR /&gt;
firewall-cmd --list-all&lt;/P&gt;

&lt;P&gt;Why I'm I getting this result?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 17:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309175#M9597</guid>
      <dc:creator>mhouse3</dc:creator>
      <dc:date>2017-08-29T17:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: No route to host</title>
      <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309176#M9598</link>
      <description>&lt;P&gt;can you successfully &lt;CODE&gt;curl -k &lt;A href="https://indexerIPAddress:8089" target="test_blank"&gt;https://indexerIPAddress:8089&lt;/A&gt;&lt;/CODE&gt; from the affected search peers?  Or does that timeout?&lt;/P&gt;

&lt;P&gt;If you get a timeout then you have a firewall or routing problem. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 18:03:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309176#M9598</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-08-30T18:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: No route to host</title>
      <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309177#M9599</link>
      <description>&lt;P&gt;I cannot.  &lt;/P&gt;

&lt;P&gt;I get the following:&lt;/P&gt;

&lt;P&gt;curl: (7) Failed connect to 10.0.2.15:8089; No route to host&lt;/P&gt;

&lt;P&gt;How to I resolve that?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2017 18:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309177#M9599</guid>
      <dc:creator>mhouse3</dc:creator>
      <dc:date>2017-08-30T18:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: No route to host</title>
      <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309178#M9600</link>
      <description>&lt;P&gt;Your OS is telling you that the NIC that you are using doesn't have a network route that will enable them to reach that destination.  Your choices are to send through a NIC that does, or add a route.  If you are sysadmin on your host, then you can read this and figure it out (otherwise open a ticket to your networking team):&lt;BR /&gt;
&lt;A href="http://www.thegeekstuff.com/2012/04/route-examples"&gt;http://www.thegeekstuff.com/2012/04/route-examples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2017 15:27:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309178#M9600</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-04T15:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: No route to host</title>
      <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309179#M9601</link>
      <description>&lt;P&gt;Thank you woodcock.  I will look into that.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 15:16:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309179#M9601</guid>
      <dc:creator>mhouse3</dc:creator>
      <dc:date>2017-09-05T15:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: No route to host</title>
      <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309180#M9602</link>
      <description>&lt;P&gt;Be sure to come back and let us know what happened!&lt;/P&gt;</description>
      <pubDate>Sun, 10 Sep 2017 06:39:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309180#M9602</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-10T06:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: No route to host</title>
      <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309181#M9603</link>
      <description>&lt;P&gt;I most certainly will.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 00:07:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309181#M9603</guid>
      <dc:creator>mhouse3</dc:creator>
      <dc:date>2017-09-12T00:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: No route to host</title>
      <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309182#M9604</link>
      <description>&lt;P&gt;Either a firewall is blocking the port or there is not a network route to the host.  You need some basic network troubleshooting here.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 12:07:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309182#M9604</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-09-12T12:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: No route to host</title>
      <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309183#M9605</link>
      <description>&lt;P&gt;I figured as much.&lt;/P&gt;

&lt;P&gt;So here is what I did:&lt;/P&gt;

&lt;P&gt;The first thing I did was run nmap localhost -p 8000 just to see what I would get.  I saw that it was open that that Splunkd is connected to it.&lt;/P&gt;

&lt;P&gt;Then I ran nmap localhost -p 9997 and it says that it is closed on that local VM.&lt;/P&gt;

&lt;P&gt;Perfect.&lt;/P&gt;

&lt;P&gt;Next I run ince I am in a non-production environment.&lt;/P&gt;

&lt;P&gt;Then I run nmap localhost -p 9997 and it still say says that it is closed on that local VM.&lt;/P&gt;

&lt;P&gt;I troubleshoot I ran&lt;BR /&gt;
And it shows that all the firewall is still up.&lt;/P&gt;

&lt;P&gt;I go a step further then and ran&lt;BR /&gt;
And it shows that the firewall isdown now.&lt;/P&gt;

&lt;P&gt;Then I run nmap localhost -p 9997 and it still say says that it is closed on that local VM.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 12:16:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309183#M9605</guid>
      <dc:creator>mhouse3</dc:creator>
      <dc:date>2017-09-12T12:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: No route to host</title>
      <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309184#M9606</link>
      <description>&lt;P&gt;Is data receiving enabled on port 9997 for this indexer/peer?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 15:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309184#M9606</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2017-09-12T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: No route to host</title>
      <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309185#M9607</link>
      <description>&lt;P&gt;Woodstock I finally had time to check out the link you provided above.  That link is not applicable to my problem set.&lt;/P&gt;

&lt;P&gt;Here is why I say that.  The link you provide provides instructions on how to add a route in Linux so that you have the ability for two machines (or more) to both be able to ping each machine as well as get to the external internet such as google.com.  I had previously confirmed that I can ping every machine on my network as well as can get to the external network prior to taking the steps I identified in my question to add a search peer.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Sep 2017 23:29:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/309185#M9607</guid>
      <dc:creator>mhouse3</dc:creator>
      <dc:date>2017-09-16T23:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: No route to host</title>
      <link>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/517832#M9608</link>
      <description>&lt;P&gt;I had the same issue and I ran these commands on both the Search Head and the Indexer. And the communication started right away..&lt;/P&gt;&lt;P&gt;sudo firewall-cmd --zone=public --add-port=8089/tcp --permanent&lt;/P&gt;&lt;P&gt;sudo firewall-cmd --reload&lt;/P&gt;&lt;P&gt;sudo firewall-cmd --zone=public --list-all&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2020 22:26:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/517832#M9608</guid>
      <dc:creator>osmanysr</dc:creator>
      <dc:date>2020-09-03T22:26:55Z</dc:date>
    </item>
  </channel>
</rss>

