Hi,

I am trying to use Github as flowPersistenceProvider for NiFi Registry. I've 
cloned my github repo inside nifi registry directory and changed the following 
lines in providers.xml

    <flowPersistenceProvider>
        
<class>org.apache.nifi.registry.provider.flow.git.GitFlowPersistenceProvider</class>
        <property name="Flow Storage Directory">./versioned_nifi_flow</property>
        <property name="Remote To Push">origin</property>
        <property name="Remote Access User">satwikb321</property>
        <property name="Remote Access Password">my personal access token 
</property>
    </flowPersistenceProvider>

Below is the error that I am seeing in the logs:

2019-03-05 06:49:32,885 INFO [NiFi Registry Web Server-30] 
o.a.n.r.w.m.IllegalStateExceptionMapper java.lang.IllegalStateException: Access 
tokens are only issued over HTTPS. Returning Conflict response.
2019-03-05 06:54:32,874 ERROR [GitFlowMetaData Push thread] 
o.a.n.r.p.flow.git.GitFlowMetaData Failed to push commits to origin due to 
org.eclipse.jgit.api.errors.TransportException: 
https://github.com/satwikb321/versioned_nifi_flow.git: cannot open 
git-receive-pack
org.eclipse.jgit.api.errors.TransportException: 
https://github.com/satwikb321/versioned_nifi_flow.git: cannot open 
git-receive-pack
        at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:180) 
~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r]
        at 
org.apache.nifi.registry.provider.flow.git.GitFlowMetaData.lambda$startPushThread$1(GitFlowMetaData.java:220)
 ~[nifi-registry-framework-0.3.0.jar:0.3.0]
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
~[na:1.8.0_65]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
~[na:1.8.0_65]
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
 ~[na:1.8.0_65]
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
 ~[na:1.8.0_65]
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
~[na:1.8.0_65]
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
~[na:1.8.0_65]
        at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_65]
Caused by: org.eclipse.jgit.errors.TransportException: 
https://github.com/satwikb321/versioned_nifi_flow.git: cannot open 
git-receive-pack
        at 
org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:584) 
~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r]
        at 
org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:435) 
~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r]
        at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:160) 
~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r]
        at org.eclipse.jgit.transport.Transport.push(Transport.java:1344) 
~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r]
        at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:169) 
~[org.eclipse.jgit-4.11.0.201803080745-r.jar:4.11.0.201803080745-r]
        ... 8 common frames omitted


The flows are not getting pushed to github. Please help.

Thanks,
Satwik

Reply via email to