Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

ERROR connecting to Git: Cannot Open git-upload-pack

Hello Experts,

 

We have been working on the Enterprise edition of 6.5.1 (latest) at my work and have been given a Studio package. All the git, TAC, Job Server are set-up. 

I get intermittent issues while logging into the Talend Studio. Sometimes it works, sometimes it doesn't.

Have worked with the Talend consultant on premises but with no luck.

Does anyone have an actual trouble shoot guide for connectivity issues between Git and TAC?

Are there any know issues with 6.5.1 (Big Data Edition) anyone aware of?

 

Please advise.

 

 

 

 

ENTRY org.talend.platform.logging 4 0 2018-03-27 17:43:58.539

!MESSAGE 2018-03-27 17:43:58,538 ERROR org.talend.commons.exception.CommonExceptionHandler  - <my git web url>: cannot open git-upload-pack

 

!STACK 0

org.eclipse.jgit.api.errors.TransportException: <my git web url>t: cannot open git-upload-pack

               at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:221)

               at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159)

               at org.talend.repository.gitprovider.GITProviderService.getShallowCloneBranches(GITProviderService.java:248)

               at org.talend.repository.gitprovider.GITProviderService.getBranchList(GITProviderService.java:105)

               at org.talend.repository.ui.login.LoginHelper.getProjectBranches(LoginHelper.java:767)

               at org.talend.repository.ui.login.LoginProjectPage$23.run(LoginProjectPage.java:1944)

               at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Caused by: org.eclipse.jgit.errors.TransportException: <my git web url>: cannot open git-upload-pack

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

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

               at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:198)

               ... 6 more

Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

               at sun.security.ssl.Alerts.getSSLException(Unknown Source)

               at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)

               at sun.security.ssl.Handshaker.fatalSE(Unknown Source)

               at sun.security.ssl.Handshaker.fatalSE(Unknown Source)

               at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)

               at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)

               at sun.security.ssl.Handshaker.processLoop(Unknown Source)

               at sun.security.ssl.Handshaker.process_record(Unknown Source)

               at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

               at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

               at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

               at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

               at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)

               at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)

               at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)

               at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

               at java.net.HttpURLConnection.getResponseCode(Unknown Source)

               at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)

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

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

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

               ... 8 more

Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

               at sun.security.validator.PKIXValidator.doBuild(Unknown Source)

               at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)

               at sun.security.validator.Validator.validate(Unknown Source)

               at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)

               at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)

               at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)

               ... 25 more

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

               at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)

               at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)

               at java.security.cert.CertPathBuilder.build(Unknown Source)

               ... 31 more

 

Thanks

Sid.

6 Replies
Anonymous
Not applicable
Author

Hello,

With your Enterprise edition of 6.5.1,  have you already created a case on talend support portal? In this way, we will give you a remote assistance by webex session to see if a jira issue need to be raised on talend bug tracker.

Best regards

Sabrina

zjing
Contributor III
Contributor III

I have met the same error.

 

I but my server TAC have no right to acces server GIT.

 

It is easy to test it. I entre the server TAC by remote a computor and start git url. it does not work.

 

So, you can check it firstly 

Anonymous
Not applicable
Author

hi, 

getting the below error while logging in to talend ,please do help me at the earliest .

 

talend 6.3

 

 

org.talend.commons.exception.PersistenceException: Can not connect to project with url "https://svc_ie_talend@bitbucket-emea.aws.lmig.com/scm/ids/talend.git".
at org.talend.repository.remoteprovider.RemoteRepositoryFactory.delegateBeforeLogon2(RemoteRepositoryFactory.java:386)
at org.talend.repository.remoteprovider.RemoteRepositoryFactory.delegateBeforeLogon(RemoteRepositoryFactory.java:338)
at org.talend.repository.remoteprovider.RemoteRepositoryFactory.beforeLogon(RemoteRepositoryFactory.java:268)
at org.talend.core.repository.model.ProxyRepositoryFactory.logOnProject(ProxyRepositoryFactory.java:1853)
at org.talend.repository.ui.login.LoginHelper$1.run(LoginHelper.java:429)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.talend.commons.exception.PersistenceException: username or password are not correct, please check in TAC users configuration
at org.talend.repository.gitprovider.core.GitProjectUrlCheck.check(GitProjectUrlCheck.java:95)
at org.talend.repository.remoteprovider.RemoteRepositoryFactory.delegateBeforeLogon2(RemoteRepositoryFactory.java:384)
... 5 more
Caused by: org.eclipse.jgit.api.errors.TransportException: https://svc_ie_talend@bitbucket-emea.aws.lmig.com/scm/ids/talend.git: cannot open git-upload-pack
at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:196)
at org.talend.repository.gitprovider.core.GitProjectUrlCheck.check(GitProjectUrlCheck.java:89)
... 6 more
Caused by: org.eclipse.jgit.errors.TransportException: https://svc_ie_talend@bitbucket-emea.aws.lmig.com/scm/ids/talend.git: cannot open git-upload-pack
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:521)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309)
at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:175)
... 7 more
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.jav...)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:98)
at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:168)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:475)
... 9 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:230)
at sun.security.validator.Validator.validate(Validator.java:260)
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)
... 25 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
... 31 more

Anonymous
Not applicable
Author

Hello @natty

Did you configure git username & password in TAC? Is Git client is installed on your machine? Is Git config user.name and email set already?

Here exists a related jira issue:https://jira.talendforge.org/browse/TUP-18028 and it has been fixed on V 6.4.1

Best regards

Sabrina

lopez9117
Contributor
Contributor

i had the same issue and the solution was change my talend version from 7.2 to 7.1

Girish1
Contributor
Contributor

Hi, We are using Talend 7.2.1 and I am also facing the similar issue while connecting to project in GitHub, I saw the comment on reverting to 7.1, is there any bug in 7.2.1 ? or is there any workaround to sort this in 7.2.1.

 

We have added the project in TAC and we can see the branches and tags in TAC, but facing error when we are trying to connect to the project from studio.

 

Any help or link where we have solution for the same would be really helpful and appreciated. Thanks.