Failed to connect to repository : Remote host closed connection during handshake

212 views
Skip to first unread message

Sharon Francis

unread,
Dec 8, 2015, 11:23:01 PM12/8/15
to Jenkins Users
Im getting this error after some updates, not sure how to resolve this issue. Pls help. Have attached the screenshot along.
Jenkis.png

Sharon Francis

unread,
Dec 8, 2015, 11:30:32 PM12/8/15
to Jenkins Users
im getting the following error on building the project:

Started by user anonymous
Building in workspace /var/lib/jenkins/workspace/dhruvTestSuite
 > git rev-parse --is-inside-work-tree
Fetching changes from the remote Git repository
 > git config remote.origin.url g...@gitlab.xyz.com:xyz/xyz.git
Fetching upstream changes from g...@gitlab.xyz.com:xyz/xyz.git
 > git --version
 > git fetch --tags --progress g...@gitlab.xyz.com:eagle/xyz.git +refs/heads/*:refs/remotes/origin/*
FATAL: Failed to fetch from g...@gitlab.xyz.com:eagle/xyz.git
hudson.plugins.git.GitException: Failed to fetch from g...@gitlab.xyz.com:eagle/xyz.git
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:622)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:854)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:879)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1276)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:607)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
	at hudson.model.Run.execute(Run.java:1738)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress g...@gitlab.xyz.com:eagle/xyz.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout: 
stderr: Bad owner or permissions on /var/lib/jenkins/.ssh/config
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1325)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1186)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:87)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:257)
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:620)
	... 10 more

Mark Waite

unread,
Dec 8, 2015, 11:30:42 PM12/8/15
to Jenkins Users
I've never seen that message before.  You might try some of the ideas listed at http://stackoverflow.com/questions/21245796/javax-net-ssl-sslhandshakeexception-remote-host-closed-connection-during-handsh

On Tue, Dec 8, 2015 at 9:23 PM Sharon Francis <shar...@siriusemb.com> wrote:
Im getting this error after some updates, not sure how to resolve this issue. Pls help. Have attached the screenshot along.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c6724fcc-be0c-4fc7-a0d1-d2bf996ed13d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Slide

unread,
Dec 8, 2015, 11:35:48 PM12/8/15
to Jenkins Users
Looks like the permissions on /var/lib/jenkins/.ssh/config are too open, you should chmod 600 that file to make it more secure.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.

Sharon Francis

unread,
Dec 9, 2015, 5:52:08 AM12/9/15
to jenkins...@googlegroups.com
Tried hard. Still not working .

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/oW3KoRzaZ0s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAPiUgVcKMf%3DEJ_nDamk96Ywm_Fgy4MpJcf56wCE-tcwi0%2BsN2Q%40mail.gmail.com.

Aron Yu

unread,
May 12, 2016, 8:21:48 AM5/12/16
to Jenkins Users
Did you find any resolution this?

Sharon Francis

unread,
May 12, 2016, 1:07:33 PM5/12/16
to Jenkins Users
Din find a solution yet... if anyone finds plz update it here.

Björn Pedersen

unread,
May 13, 2016, 3:23:45 AM5/13/16
to Jenkins Users
Hi,

Either that (seems not to be the case) or the owner is wrong. Make sure this is owned by the same user that jenkins is running as.
 

Björn

Philipp Meier

unread,
May 13, 2016, 5:55:05 AM5/13/16
to Jenkins Users
Which Java version are you running? Try to upgrade to the latest Java version.
Reply all
Reply to author
Forward
0 new messages