-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
Amazon Linux 2
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips
I updated from 3.11.0 to 3.11.1 and it broke ssh auth with Bitbucket for a pipeline using Pipeline script for SCM (Git). The error message states unsupported option "accept-new". I was able to resolve the issue by rolling back to the previous version and restarting Jenkins. My Jenkins is running on Amazon Linux 2 with SSH version: OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017.
hudson.plugins.git.GitException: Command "git fetch --tags --force --progress --prune -- origin +refs/heads/develop:refs/remotes/origin/develop" returned status code 128: stdout: stderr: command-line line 0: unsupported option "accept-new". 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:2674) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2098) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618) at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:366) at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:197) at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:173) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:118) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:70) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:311) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) Finished: FAILURE
Can also resolve the issue by changing the Git host key verification strategy as described in the git client plugin documentation.
- duplicates
-
JENKINS-69149 Git client "accept new host key" breaks SSH auth from OpenSSH 7.5 and earlier
-
- Closed
-
[JENKINS-69213] Update to 3.11.1 breaks ssh auth with AWS Linux 2 and other OpenSSH 7.4 implementations
Link |
New:
This issue duplicates |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |
Description |
Original:
I updated from 3.11.0 to 3.11.1 and it broke ssh auth with Bitbucket for a pipeline using Pipeline script for SCM (Git). The error message states _unsupported option "accept-new"._ I was able to resolve the issue by rolling back to the previous version and restarting Jenkins. My Jenkins is running on Amazon Linux 2 with SSH version: _OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017._
{code:java} hudson.plugins.git.GitException: Command "git fetch --tags --force --progress --prune -- origin +refs/heads/develop:refs/remotes/origin/develop" returned status code 128: stdout: stderr: command-line line 0: unsupported option "accept-new". 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:2674) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2098) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618) at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:366) at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:197) at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:173) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:118) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:70) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:311) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) Finished: FAILURE {code} |
New:
I updated from 3.11.0 to 3.11.1 and it broke ssh auth with Bitbucket for a pipeline using Pipeline script for SCM (Git). The error message states _unsupported option "accept-new"._ I was able to resolve the issue by rolling back to the previous version and restarting Jenkins. My Jenkins is running on Amazon Linux 2 with SSH version: _OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017._
{code:java} hudson.plugins.git.GitException: Command "git fetch --tags --force --progress --prune -- origin +refs/heads/develop:refs/remotes/origin/develop" returned status code 128: stdout: stderr: command-line line 0: unsupported option "accept-new". 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:2674) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2098) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:618) at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:366) at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:197) at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:173) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:118) at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:70) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:311) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:442) Finished: FAILURE {code} Can also resolve the issue by changing the Git host key verification strategy as described in the [git client plugin documentation|https://plugins.jenkins.io/git-client/#plugin-content-ssh-host-key-verification]. |
Summary | Original: Update to 3.11.1 breaks ssh auth with Bitbucket | New: Update to 3.11.1 breaks ssh auth with AWS Linux 2 and other old OpenSSH implementations |
Summary | Original: Update to 3.11.1 breaks ssh auth with AWS Linux 2 and other old OpenSSH implementations | New: Update to 3.11.1 breaks ssh auth with AWS Linux 2 and other OpenSSH 7.4 implementations |