<?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>question Re: Error in Base64EncodeContent processor after configuring repository encryption- protocol version 1 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/379399#M243852</link>
    <description>&lt;P&gt;Upgrading NiFi to latest version NiFi-1.23.2 helped me on this issue and there are no issues with Base64EncodeContent processor after configuring repository encryption&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;Thanks you!&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2023 11:25:41 GMT</pubDate>
    <dc:creator>tej_s</dc:creator>
    <dc:date>2023-11-22T11:25:41Z</dc:date>
    <item>
      <title>Error in Base64EncodeContent processor after configuring repository encryption- protocol version 1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/375145#M242303</link>
      <description>&lt;P&gt;I have enabled the repository Encryption with protocol version 1, after that&amp;nbsp; there is below error in&amp;nbsp;Base64EncodeContent&amp;nbsp; for some of the flowfiles&amp;nbsp; and other flowfiles gets successfully processed.Can someone please help on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2023-08-08 19:26:07,368 ERROR [Timer-Driven Process Thread-5] o.a.n.p.standard.Base64EncodeContent Base64EncodeContent[id=7ba6e988-8bc9-392a-1ae8-f38733a69144] Processing halted: yielding [1 sec]&lt;BR /&gt;org.apache.nifi.processor.exception.MissingFlowFileException: Unable to find content for FlowFile&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.handleContentNotFound(StandardProcessSession.java:3701)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.write(StandardProcessSession.java:3454)&lt;BR /&gt;at org.apache.nifi.processors.standard.Base64EncodeContent.onTrigger(Base64EncodeContent.java:135)&lt;BR /&gt;at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)&lt;BR /&gt;at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1360)&lt;BR /&gt;at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:246)&lt;BR /&gt;at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:102)&lt;BR /&gt;at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)&lt;BR /&gt;at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)&lt;BR /&gt;at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)&lt;BR /&gt;at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)&lt;BR /&gt;at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)&lt;BR /&gt;at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)&lt;BR /&gt;at java.base/java.lang.Thread.run(Thread.java:834)&lt;BR /&gt;Caused by: org.apache.nifi.controller.repository.ContentNotFoundException: Could not find content for StandardContentClaim [resourceClaim=StandardResourceClaim[id=1691502935403-13, container=default, section=13], offset=47426, length=13851]: Stream contained only 525 bytes but should have contained 904&lt;BR /&gt;at org.apache.nifi.controller.repository.io.FlowFileAccessInputStream.ensureAllContentRead(FlowFileAccessInputStream.java:49)&lt;BR /&gt;at org.apache.nifi.controller.repository.io.FlowFileAccessInputStream.read(FlowFileAccessInputStream.java:84)&lt;BR /&gt;at org.apache.nifi.controller.repository.io.TaskTerminationInputStream.read(TaskTerminationInputStream.java:68)&lt;BR /&gt;at java.base/java.io.FilterInputStream.read(FilterInputStream.java:133)&lt;BR /&gt;at org.apache.nifi.processors.standard.util.ValidatingBase64InputStream.read(ValidatingBase64InputStream.java:37)&lt;BR /&gt;at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)&lt;BR /&gt;at org.apache.nifi.processors.standard.util.ValidatingBase64InputStream.read(ValidatingBase64InputStream.java:53)&lt;BR /&gt;at org.apache.commons.codec.binary.BaseNCodecInputStream.read(BaseNCodecInputStream.java:173)&lt;BR /&gt;at java.base/java.io.FilterInputStream.read(FilterInputStream.java:107)&lt;BR /&gt;at org.apache.nifi.processors.standard.Base64EncodeContent$2.process(Base64EncodeContent.java:141)&lt;BR /&gt;at org.apache.nifi.controller.repository.StandardProcessSession.write(StandardProcessSession.java:3436)&lt;BR /&gt;... 12 common frames omitted&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 11:32:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/375145#M242303</guid>
      <dc:creator>tej_s</dc:creator>
      <dc:date>2023-08-11T11:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Base64EncodeContent processor after configuring repository encryption- protocol version 1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/375155#M242309</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106474"&gt;@tej_s&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I recommend against switching to encrypted repositories while you still have content in your flowfile_repository, content_repository, and provenance_repository.&amp;nbsp; &amp;nbsp;What version of Apache NiFi are you using?&lt;BR /&gt;&lt;BR /&gt;If you stop NiFi and delete the contents of these encrypted repositories and startup clean, do you encounter and issues like above with all new data being processed through your dataflows?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 15:27:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/375155#M242309</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-08-11T15:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Base64EncodeContent processor after configuring repository encryption- protocol version 1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/375159#M242312</link>
      <description>&lt;P&gt;this also happen to me&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2023 15:21:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/375159#M242312</guid>
      <dc:creator>jakese</dc:creator>
      <dc:date>2023-08-12T15:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Base64EncodeContent processor after configuring repository encryption- protocol version 1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/375175#M242318</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The NiFi version that I am using is NiFi-1.17.0. However I tested the same with NiFi-1.15.0, NiFi-1.18.0 and NiFi-1.22.0. Still the same error occurs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I configured the repository data encryption immediately after setting up the nifi when there was no data flowing through the system. Next time I tried with cleaning up the existing data in NiFi repositories and sending the new data still same issue persists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other &lt;SPAN&gt;scenario&lt;/SPAN&gt; that you think I should try and that might work. If yes please suggest that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure, if this is any functional issue where Base64 decoding doesn't work with the AES GCM 256 encryption algorithm for repository encryption.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 06:24:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/375175#M242318</guid>
      <dc:creator>tej_s</dc:creator>
      <dc:date>2023-08-14T06:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Base64EncodeContent processor after configuring repository encryption- protocol version 1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/375190#M242332</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106474"&gt;@tej_s&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/106482"&gt;@jakese&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;There are some recently discovered issues seen as more individuals start using the encrypted repository capability that have been addressed in Apache NiFi 1.23.&amp;nbsp; I encourage you to see if you can reproduce your issue with release 1.23 or newer.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Some specific related fix that are part of 1.23:&lt;BR /&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-10235" target="_blank" rel="noopener"&gt;https://issues.apache.org/jira/browse/NIFI-10235&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-11670" target="_blank" rel="noopener"&gt;https://issues.apache.org/jira/browse/NIFI-11670&lt;/A&gt;&lt;BR /&gt;11670 fixed some offset tracking issues and content handling issues that could very likely be causing your issue.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 15:18:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/375190#M242332</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-08-14T15:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Base64EncodeContent processor after configuring repository encryption- protocol version 1</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/379399#M243852</link>
      <description>&lt;P&gt;Upgrading NiFi to latest version NiFi-1.23.2 helped me on this issue and there are no issues with Base64EncodeContent processor after configuring repository encryption&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;Thanks you!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 11:25:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-Base64EncodeContent-processor-after-configuring/m-p/379399#M243852</guid>
      <dc:creator>tej_s</dc:creator>
      <dc:date>2023-11-22T11:25:41Z</dc:date>
    </item>
  </channel>
</rss>

