Hi,

I'm trying to use jgit to clone my project repository as preparation for a 
build. I get:
$jgit clone g...@gitlabhost.blah....blah.com:996945897/project.git 
/u/myuserid/project                   
Cloning into 
'/u/myuserid/project'...                                                        
                                         

org.eclipse.jgit.api.errors.TransportException: 
g...@gitlabhost.blah....blah.com:996945897/project.git: connection is closed 
by foreign host   
        at 
org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:135)                   
                                          

        at 
org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:201)                  
                                          

        at 
org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:135)                   
                                          

        at 
org.eclipse.jgit.pgm.Clone.run(Clone.java:124)                                  
                                          

        at 
org.eclipse.jgit.pgm.TextBuiltin.execute(TextBuiltin.java:199)                  
                                          

        at 
org.eclipse.jgit.pgm.Main.execute(Main.java:246)                                
                                          

        at 
org.eclipse.jgit.pgm.Main.run(Main.java:138)                                    
                                          

        at 
org.eclipse.jgit.pgm.Main.main(Main.java:110)                                   
                                          

Caused by: org.eclipse.jgit.errors.TransportException: 
g...@gitlabhost.blah....blah.com:996945897/project.git: connection is closed 
by foreign host 
        at 
org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:159)
                         

        at 
org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:137)       
                                          

        at 
org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:264)
                            

        at 
org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:162)  
                                          

        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:1179)                 
                                          

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

        ... 7 
more                                                                            
                                       

Caused by: com.jcraft.jsch.JSchException: connection is closed by foreign 
host                                                       
        at 
com.jcraft.jsch.Session.connect(Session.java:269)                               
                                          

        at 
org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
                         

        ... 14 
more                                                                            
                  


Not sure if it's:

   1. GIT Server configured incorrectly.
   2. Build server configured incorrectly (checked logs, no information 
   appearing to relate to this problem)
   3. Jgit bug (I searched, and found no open issue)

Any advise on what I should check?

Frank

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/e0eb5d38-8f7a-45f6-b997-93022c41c428%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to