<?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 Failed to register flow with Flow Registry due to Error creating snapshot: An unexpected error has occurred. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/372674#M241341</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue related to committing workflow changes onto my Github repository. I have made changes in the providers.xml file and now my Nifi flows are linked to Github&amp;nbsp;&lt;SPAN&gt;flowPersistenceProvider.&lt;BR /&gt;However, when I try to commit changes to the same linked repo, it gives me below error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kiranq_0-1686820950143.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37834i87CE4D49660683BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kiranq_0-1686820950143.png" alt="Kiranq_0-1686820950143.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in the log files, it says: "Flow version is not added yet, can not be serialized.. Returning Conflict response."&lt;/P&gt;&lt;P&gt;I also witnessed on "show local changes" that the prompt gives an error "version must be greater than 1". Are these linked?&lt;BR /&gt;Any guideline would help. Thanks.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 09:28:28 GMT</pubDate>
    <dc:creator>Kiranq</dc:creator>
    <dc:date>2023-06-15T09:28:28Z</dc:date>
    <item>
      <title>Failed to register flow with Flow Registry due to Error creating snapshot: An unexpected error has occurred.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/372674#M241341</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My issue related to committing workflow changes onto my Github repository. I have made changes in the providers.xml file and now my Nifi flows are linked to Github&amp;nbsp;&lt;SPAN&gt;flowPersistenceProvider.&lt;BR /&gt;However, when I try to commit changes to the same linked repo, it gives me below error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kiranq_0-1686820950143.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37834i87CE4D49660683BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kiranq_0-1686820950143.png" alt="Kiranq_0-1686820950143.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in the log files, it says: "Flow version is not added yet, can not be serialized.. Returning Conflict response."&lt;/P&gt;&lt;P&gt;I also witnessed on "show local changes" that the prompt gives an error "version must be greater than 1". Are these linked?&lt;BR /&gt;Any guideline would help. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 09:28:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/372674#M241341</guid>
      <dc:creator>Kiranq</dc:creator>
      <dc:date>2023-06-15T09:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to register flow with Flow Registry due to Error creating snapshot: An unexpected error has occurred.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/372685#M241347</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105315"&gt;@Kiranq&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is what I believe you executed from yoru description:&lt;BR /&gt;You were originally using the the FileSystemFlowPersistenceProvider and has already version controlled one or more NiFi Process Groups (PG) to your NiFi-Registry?&lt;BR /&gt;Then you change your configuration to use the GitFlowPersistenceProvider?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is what I believe you did not do:&lt;BR /&gt;Prior to switching flow persistence providers, did you stop version control on all your PGs?&lt;/P&gt;&lt;H4&gt;Switching from other Flow Persistence Provider&lt;/H4&gt;&lt;DIV class="paragraph"&gt;&lt;P&gt;In order to switch the Flow Persistence Provider, it is necessary to reset NiFi Registry. For example, to switch from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FileSystemFlowPersistenceProvider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GitFlowPersistenceProvider, follow these steps:&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="olist arabic"&gt;&lt;OL class="arabic"&gt;&lt;LI&gt;&lt;P&gt;Stop version control on all ProcessGroups in NiFi&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Stop NiFi Registry&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Move the H2 DB (specified as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;nifi.registry.db.directory&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;nifi-registry.properties&lt;/EM&gt;) and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Flow Storage Directory&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;FileSystemFlowPersistenceProvider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;directories somewhere for back up&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Configure&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;GitFlowPersistenceProvider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;provider in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;providers.xml&lt;/EM&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Start NiFi Registry&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Recreate any buckets&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Start version control on all ProcessGroups again.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It appears as though you may not have followed the above documented steps in the NiFi-Registry admin guide (&lt;A href="https://nifi.apache.org/docs/nifi-registry-docs/html/administration-guide.html#flow-persistence-providers" target="_blank" rel="noopener"&gt;https://nifi.apache.org/docs/nifi-registry-docs/html/administration-guide.html#flow-persistence-providers&lt;/A&gt;).&amp;nbsp; This leaves you with your Metadata Database with info about your version controlled PGs and that metadata references flows persisted that it can no longer find in the flow persistence provider configured.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Jun 2023 12:36:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/372685#M241347</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-06-15T12:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to register flow with Flow Registry due to Error creating snapshot: An unexpected error has occurred.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/372721#M241358</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;thanks for your response.&lt;BR /&gt;&lt;BR /&gt;I followed the documented way to switch between flow persistence providers but still getting an error however, a different now:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Kiranq_0-1686842418349.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37837i3EB4A1EF9840A571/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Kiranq_0-1686842418349.png" alt="Kiranq_0-1686842418349.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am witnessing that if I commit and push changes to my Git repo using VS Code, the error I mentioned in my last message disappears, however, using UI when I try to commit changes, it is now showing me above error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In all, I am unable to commit changes to my flows when it is linked with to a Github repo. I am wondering if this functionality that I am trying is even possible?&lt;BR /&gt;&lt;BR /&gt;If it helps, my nifi-registry-app logs are rotating between these two kinds of errors when I make any changes in my workflow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;An unexpected error has occurred: org.apache.nifi.registry.flow.FlowPersistenceException: Git directory &amp;lt;path to git directory on my local machine&amp;gt; is not clean or has uncommitted changes, resolve those changes first to save flow contents.. Returning Internal Server Error response.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I commit and push changes through VS Code (success) since NiFi UI throws error. Then I try to redo "commit local changes" from NiFi UI, it gives below error in my log file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Flow version is not added yet, can not be serialized.. Returning Conflict response.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward to any guideline.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 15:29:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/372721#M241358</guid>
      <dc:creator>Kiranq</dc:creator>
      <dc:date>2023-06-15T15:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to register flow with Flow Registry due to Error creating snapshot: An unexpected error has occurred.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/372828#M241389</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/105315"&gt;@Kiranq&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1. What version of NiFi and NiFi-Registry are you using?&lt;BR /&gt;2. How is your&amp;nbsp;GitFlowPersistenceProvider configured?&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 16:58:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/372828#M241389</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-06-16T16:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to register flow with Flow Registry due to Error creating snapshot: An unexpected error has occurred.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/394582#M248749</link>
      <description>&lt;P&gt;Hi Matt, Is there any way to recover the registry, if we have missed to stop the version control&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 17:18:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/394582#M248749</guid>
      <dc:creator>Abibee04</dc:creator>
      <dc:date>2024-10-04T17:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to register flow with Flow Registry due to Error creating snapshot: An unexpected error has occurred.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/394592#M248752</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/118174"&gt;@Abibee04&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please start a new Community question with the details of your query.&lt;BR /&gt;&lt;BR /&gt;I am not clear what you mean by "recover the registry", so the more detail you can provide the better in that new community question by sharing what step you performed and what you are looking to accomplish.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2024 19:20:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-register-flow-with-Flow-Registry-due-to-Error/m-p/394592#M248752</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-10-04T19:20:32Z</dc:date>
    </item>
  </channel>
</rss>

