Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] JGit Error - Cannot open git-upload-pack

Hi Matthias and Team,

Following the recommendation for this error https://www.eclipse.org/forums/index.php/t/1089090/ we did upgrade to the latest JGIT library. But, now we are seeing a different error "not Authorized"( Though we are providing the correct credentials we are getting this error).
Below, is the stack trace for the error. 

2020-10-12 17:48:48,886 INFO TransportHttp.connect:446 Inside connect method of jgit
2020-10-12 17:48:48,886 INFO TransportHttp.httpOpen:549 Inside httpopen method of jgit
2020-10-12 17:48:48,886 INFO TransportHttp.httpOpen:574 Auth method used to connect to git repo :NONE
2020-10-12 17:48:49,027 INFO TransportHttp.httpOpen:549 Inside httpopen method of jgit
2020-10-12 17:48:49,027 INFO TransportHttp.httpOpen:574 Auth method used to connect to git repo :NEGOTIATE
2020-10-12 17:48:49,027 INFO TransportHttp.httpOpen:549 Inside httpopen method of jgit
2020-10-12 17:48:49,027 INFO TransportHttp.httpOpen:574 Auth method used to connect to git repo :NONE
2020-10-12 17:48:49,058 INFO TransportHttp.httpOpen:549 Inside httpopen method of jgit
2020-10-12 17:48:49,058 INFO TransportHttp.httpOpen:574 Auth method used to connect to git repo :BASIC
2020-10-12 17:48:49,089 INFO TransportHttp.httpOpen:549 Inside httpopen method of jgit
2020-10-12 17:48:49,089 INFO TransportHttp.httpOpen:574 Auth method used to connect to git repo :BASIC
2020-10-12 17:48:49,105 INFO TransportHttp.httpOpen:549 Inside httpopen method of jgit
2020-10-12 17:48:49,105 INFO TransportHttp.httpOpen:574 Auth method used to connect to git repo :BASIC
2020-10-12 17:48:49,121 INFO TransportHttp.connect:510 TransportException inside TransportHttp
2020-10-12 17:48:49,136 ERROR TransportHttp.connect:511 org.eclipse.jgit.errors.TransportException: https://tfs.sgbank.com/DefaultCollection/_git/infraautomation: not authorized
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:492)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:303)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1138)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:130)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:736)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:84)
at com.hp.oo.studio.actions.AutoActionTaskAspect.injectScmChangeInfoBuilderAdvice(AutoActionTaskAspect.java:136)
at sun.reflect.GeneratedMethodAccessor420.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)
at com.iconclude.dharma.app.dialogue.TaskProgressDialog$1.doInBackground(TaskProgressDialog.java:369)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
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)


Could you please help us with that error. This error occurs only when we are trying to TFS git repository. Initially the error was same as in this link https://www.eclipse.org/forums/index.php/t/1089090/  and we upgraded to latest JGIT version following the recommendation by the JGIT team but, now after upgrading the jgit we are getting the above error.

Thanks in advance,
Malli

On Thu, Jul 16, 2020 at 3:46 PM Matthias Sohn <matthias.sohn@xxxxxxxxx> wrote:
On Thu, Jul 16, 2020 at 6:02 AM MalliKarjuna Reddy <tomallikarjunareddy@xxxxxxxxx> wrote:
Hi Thomas,

Thanks for the reply. To answer your question we are using 4.1.0.201509280440-r and yeah, we have put the debug point in TransportHttp.connect() method and noticed IOException is getting thrown but without any message( ioException.getMessage() is returning null). 

We will try updating the JGit library in your product but, before that we would like to try increasing the connection timeout. How do we increase the timeout in JGit library? 

4.1 is 5 years old. Update to a current jgit version.
Both Transport [1] and TransportCommand [2] have a setTimeout method.


-Matthias

Back to the top