Support Questions

Find answers, ask questions, and share your expertise
Celebrating as our community reaches 100,000 members! Thank you!

Issue with Nifi-registry git intergration



I am trying to intergrate nifi 1.9.2 ,Nifi-registry 0.4.0 and git repos(via vsts)

I followed the instruction in the Nifi Manual and i configured the providers.xml as below



<property name="Flow Storage Directory">/repos/nifi-git-registry/test-project</property>

<property name="Remote To Push">origin</property>

<property name="Remote Access User">username</property>

<property name="Remote Access Password">[key]</property>


I did git clone and provide the path mentioned in Flow Storage Directory

Now when I try this I see the flow getting pushed to the path mentioned in Flow Storage Directory but not in git repo.

I have to do manual push from the location to push the changes. As per the manual push I can see a comment which mention nifi registry pushed this code

When I check the logs I get

org.eclipse.jgit.api.errors.TransportException: https://#####git#######: cannot open git-receive-pack

at ~[org.eclipse.jgit-]

at org.apache.nifi.registry.provider.flow.git.GitFlowMetaData.lambda$startPushThread$1( ~[nifi-registry-framework-0.4.0.jar:0.4.0]

at java.util.concurrent.Executors$ Source) ~[na:1.8.0_181]

at java.util.concurrent.FutureTask.runAndReset(Unknown Source) ~[na:1.8.0_181]

at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) ~[na:1.8.0_181]

at java.util.concurrent.ScheduledThreadPoolExecutor$ Source) ~[na:1.8.0_181]

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[na:1.8.0_181]

at java.util.concurrent.ThreadPoolExecutor$ Source) ~[na:1.8.0_181]

at Source) ~[na:1.8.0_181]

Caused by: org.eclipse.jgit.errors.TransportException: https://######_git######: cannot open git-receive-pack

at org.eclipse.jgit.transport.TransportHttp.connect( ~[org.eclipse.jgit-]

at org.eclipse.jgit.transport.TransportHttp.openPush( ~[org.eclipse.jgit-]

at org.eclipse.jgit.transport.PushProcess.execute( ~[org.eclipse.jgit-]

at org.eclipse.jgit.transport.Transport.push( ~[org.eclipse.jgit-]

at ~[org.eclipse.jgit-]

... 8 common frames omitted

Caused by: Connection timed out (Connection timed out)

at org.eclipse.jgit.util.HttpSupport.response( ~[org.eclipse.jgit-]

at org.eclipse.jgit.transport.TransportHttp.connect( ~[org.eclipse.jgit-]

... 12 common frames omitted

Apart from provider.xml is there any other config which needs to be done



I wrote a blog about this setup ( and it seems like you did all the configuration steps I included. However, I was not using Git VSTS.