<?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: How to resolve error &amp;quot;BTree::Exception: Node::readLE failure&amp;quot; on a Splunk forwarder? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232148#M45263</link>
    <description>&lt;P&gt;I had the same issues and resolved it by fixing ownership of splunk_private_db.old.   chown -R splunk:splunk /opt/splunk.........&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:34:58 GMT</pubDate>
    <dc:creator>dougsearcy</dc:creator>
    <dc:date>2020-09-29T19:34:58Z</dc:date>
    <item>
      <title>How to resolve error "BTree::Exception: Node::readLE failure" on a Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232141#M45256</link>
      <description>&lt;P&gt;One of our Splunk forwarders has stopped forwarding anything to the Indexer.  End of /opt/splunkforwarder/var/log/splunk/splunkd.log looks like this (after restart):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
08-17-2016 16:25:09.384 -0700 INFO  TailingProcessor - Adding watch on path: /var/c3d/logs/prod/tunnelconnect.log.
08-17-2016 16:25:09.384 -0700 INFO  BatchReader - State transitioning from 2 to 0 (initOrResume).
08-17-2016 16:25:09.386 -0700 ERROR BTree - unable to reader 4088 bytes: bytes=4080 Success
08-17-2016 16:25:09.386 -0700 ERROR TailingProcessor - Ignoring path="/opt/splunkforwarder/etc/splunk.version" due to: BTree::Exception: Node::readLE failure in Node::Node(1) node offset: 4112 order: 255 keys: { } children: { }
08-17-2016 16:25:09.389 -0700 ERROR BTree - unable to reader 4088 bytes: bytes=0 Success
08-17-2016 16:25:09.389 -0700 ERROR TailingProcessor - Ignoring path="/var/c3d/logs/dev3/install.log" due to: BTree::Exception: Node::readLE failure in Node::Node(1) node offset: 8200 order: 255 keys: { } children: { }
08-17-2016 16:25:09.436 -0700 ERROR BTree - unable to reader 4088 bytes: bytes=0 Success
08-17-2016 16:25:09.436 -0700 ERROR TailingProcessor - Ignoring path="/opt/splunkforwarder/var/log/splunk/metrics.log.3" due to: BTree::Exception: Node::readLE failure in Node::Node(1) node offset: 8200 order: 255 keys: { } children:
 { }
...
[many lines like this!]
...
08-17-2016 16:25:11.634 -0700 ERROR BTree - unable to reader 4088 bytes: bytes=0 Success
08-17-2016 16:25:11.634 -0700 ERROR TailingProcessor - Ignoring path="[one of our log file path here]" due to: BTree::Exception: Node::readLE failure in Node::Node(1) node offset: 8200 order: 255 keys: { } children: { }
08-17-2016 16:26:09.333 -0700 INFO  TcpOutputProc - Connected to idx=[removed] using ACK.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 Aug 2016 23:40:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232141#M45256</guid>
      <dc:creator>rgsage</dc:creator>
      <dc:date>2016-08-17T23:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve error "BTree::Exception: Node::readLE failure" on a Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232142#M45257</link>
      <description>&lt;P&gt;A similar issue at &lt;A href="https://answers.splunk.com/answers/116616/indexing-not-working-how-can-i-correct-btree-child-has-invalid-invalid-offset-error-in-custom-index.html"&gt;Indexing not working, how can I correct "BTree child has invalid invalid offset error" in custom index?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 00:37:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232142#M45257</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-08-18T00:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve error "BTree::Exception: Node::readLE failure" on a Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232143#M45258</link>
      <description>&lt;P&gt;Thanks I saw that issue too, but it wasn't clear to me what their solution was. Also we have different concerns, since this error is on one of our forwarders, not the indexer. We don't have backups of the forwarder filesystem. &lt;/P&gt;

&lt;P&gt;I was hoping since this a forwarder the solution might be easier.  For example re-indexing some of the data from the forwarder would be acceptable... &lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 00:47:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232143#M45258</guid>
      <dc:creator>rgsage</dc:creator>
      <dc:date>2016-08-18T00:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve error "BTree::Exception: Node::readLE failure" on a Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232144#M45259</link>
      <description>&lt;P&gt;Really interesting because I only found this single thread with reference to an error with BTree.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 00:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232144#M45259</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2016-08-18T00:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve error "BTree::Exception: Node::readLE failure" on a Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232145#M45260</link>
      <description>&lt;P&gt;This seems to be related to things like moving indexes around or hardware/filesystem issues. If this is a Linux-based forwarder, there is a good chance that you need to increase the open file descriptors from the default of 1024 to perhaps 4096 and also change the coredump(blocks) to unlimited.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 17:23:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232145#M45260</guid>
      <dc:creator>eryder_splunk</dc:creator>
      <dc:date>2016-08-29T17:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve error "BTree::Exception: Node::readLE failure" on a Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232146#M45261</link>
      <description>&lt;P&gt;This sounds reasonable, as we do currently have &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ulimit -n
1024
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;eryder suggested in direct email to us to run:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$ ./bin/splunk cmd btprobe -d [your path to...]/fishbucket/splunk_private_db -r
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This appears to have fixed the problem. Errors no longer seen after Splunk restart.&lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 17:29:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232146#M45261</guid>
      <dc:creator>rgsage</dc:creator>
      <dc:date>2016-08-29T17:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve error "BTree::Exception: Node::readLE failure" on a Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232147#M45262</link>
      <description>&lt;P&gt;FWIW this solution also solved a similar problem we had with different symptom. After doing some (extensive) crash testing on one of our systems with a Splunk forwarder, the forwarder started leaving crash logs (e.g.  [splunkforwarder]/var/logs/splunk/crash-2016-09-27-21:25:27.log) like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...

 Backtrace:
  [0x00007F1C68F88CC9] gsignal + 57 (/lib/x86_64-linux-gnu/libc.so.6)
  [0x00007F1C68F8C0D8] abort + 328 (/lib/x86_64-linux-gnu/libc.so.6)
  [0x00007F1C68F81B86] ? (/lib/x86_64-linux-gnu/libc.so.6)
  [0x00007F1C68F81C32] ? (/lib/x86_64-linux-gnu/libc.so.6)
  [0x0000000000E8440D] _ZN2bt5BTree4Node6readLEERK14FileDescriptor + 525 (splunkd)
  [0x0000000000E848B1] _ZN2bt5BTree4NodeC2ERK14FileDescriptorPKNS0_3KeyEj + 97 (splunkd)
  [0x0000000000E84EC4] _ZNK2bt5BTree4Node6acceptERK14FileDescriptorS4_RNS0_7VisitorEj + 148 (splunkd)
  [0x0000000000E82BC2] _ZNK2bt5BTree10checkValidERNS0_6RecordE + 130 (splunkd)
  [0x0000000000E8833B] _ZN2bt7BTreeCP10checkpointEv + 27 (splunkd)
  [0x0000000000E8A07A] _ZN2bt7BTreeCP9addUpdateERKNS_5BTree3KeyERKNS1_6RecordE + 458 (splunkd)
  [0x0000000000C3C4E6] _ZN11FileTracker9addUpdateERK5CRC_tRK10FishRecordb + 214 (splunkd)
  [0x000000000099A7D8] _ZN3WTF11resetOffsetEv + 280 (splunkd)
  [0x000000000099CF42] _ZN3WTF13loadFishStateEb + 1058 (splunkd)
  [0x000000000098895F] _ZN10TailReader8readFileER15WatchedTailFileP11TailWatcherP11BatchReader + 191 (splunkd)
  [0x0000000000988B7F] _ZN11TailWatcher8readFileER15WatchedTailFile + 127 (splunkd)
  [0x000000000098ADFC] _ZN11TailWatcher11fileChangedEP16WatchedFileStateRK7Timeval + 700 (splunkd)
  [0x0000000000EB8AA2] _ZN30FilesystemChangeInternalWorker15callFileChangedER7TimevalP16WatchedFileState + 114 (splunkd)
  [0x0000000000EBA430] _ZN30FilesystemChangeInternalWorker12when_expiredERy + 464 (splunkd)
  [0x0000000000F49B5D] _ZN11TimeoutHeap18runExpiredTimeoutsER7Timeval + 301 (splunkd)
  [0x0000000000EB3CB8] _ZN9EventLoop3runEv + 744 (splunkd)
  [0x000000000098916D] _ZN11TailWatcher3runEv + 141 (splunkd)
  [0x000000000098E91A] _ZN13TailingThread4mainEv + 154 (splunkd)
  [0x0000000000F4768E] _ZN6Thread8callMainEPv + 62 (splunkd)
  [0x00007F1C6931F182] ? (/lib/x86_64-linux-gnu/libpthread.so.0)
  [0x00007F1C6904C47D] clone + 109 (/lib/x86_64-linux-gnu/libc.so.6)
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The suggested btprobe cmd fixed this too.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 16:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232147#M45262</guid>
      <dc:creator>rgsage</dc:creator>
      <dc:date>2016-09-30T16:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve error "BTree::Exception: Node::readLE failure" on a Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232148#M45263</link>
      <description>&lt;P&gt;I had the same issues and resolved it by fixing ownership of splunk_private_db.old.   chown -R splunk:splunk /opt/splunk.........&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232148#M45263</guid>
      <dc:creator>dougsearcy</dc:creator>
      <dc:date>2020-09-29T19:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to resolve error "BTree::Exception: Node::readLE failure" on a Splunk forwarder?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232149#M45264</link>
      <description>&lt;P&gt;This resolution worked for me. I noticed that splunk_private_db.old was owned by root, so I simply chown'd it. Fixed the problem!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:18:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-resolve-error-quot-BTree-Exception-Node-readLE-failure/m-p/232149#M45264</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2020-09-30T00:18:54Z</dc:date>
    </item>
  </channel>
</rss>

