Hi Ishara,
Can you please look into the following stack trace and improve it, just to
print better error log, instead of the trace.

[2019-12-01 23:43:54,357] [] ERROR
{org.wso2.carbon.identity.remotefetch.core.implementations.repositoryHandlers.GitRepositoryManager}
- Error pulling repository
org.wso2.carbon.identity.remotefetch.common.exceptions.RemoteFetchCoreException:
Unable to pull repository from remote

at
org.wso2.carbon.identity.remotefetch.core.implementations.repositoryHandlers.GitRepositoryManager.fetchRepository(GitRepositoryManager.java:118)

at
org.wso2.carbon.identity.remotefetch.core.implementations.actionHandlers.PollingActionListener.iteration(PollingActionListener.java:157)

at
org.wso2.carbon.identity.remotefetch.core.RemoteFetchCore.run(RemoteFetchCore.java:180)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)

at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)

at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)

at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at java.lang.Thread.run(Thread.java:748)

Caused by: org.eclipse.jgit.api.errors.TransportException:
https://github.com/ruwanta/is-remote-fetch-test.git: cannot open
git-upload-pack

at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:254)

at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:290)

at
org.wso2.carbon.identity.remotefetch.core.implementations.repositoryHandlers.GitRepositoryManager.pullRepository(GitRepositoryManager.java:100)

at
org.wso2.carbon.identity.remotefetch.core.implementations.repositoryHandlers.GitRepositoryManager.fetchRepository(GitRepositoryManager.java:116)

... 9 more

Caused by: org.eclipse.jgit.errors.TransportException:
https://github.com/ruwanta/is-remote-fetch-test.git: cannot open
git-upload-pack

at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:587)

at
org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:361)

at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:137)

at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:123)

at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1271)

at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:243)

... 12 more

Caused by: java.net.UnknownHostException: github.com

at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

at java.net.Socket.connect(Socket.java:589)

at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)

at sun.net.NetworkClient.doConnect(NetworkClient.java:175)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)

at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)

at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)

at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)

at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)

at
sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1199)

at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1050)

at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)

at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)

at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)

at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)

at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:347)

at
org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:108)

at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:207)

at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:501)

... 17 more

Cheers,
Ruwan A

-- 
Ruwan Abeykoon | Director/Architect | WSO2 Inc.
(w) +947435800  | Email: ruw...@wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to