Unable to detect latest Git changes - ssh variant 'simple' does not support setting port

Still need help?

The Atlassian Community is here for you.

Ask the community

Problem

Bamboo server unable to detect latest Git changes.

The following appears in the atlassian-bamboo.log

com.atlassian.bamboo.plugins.git.GitCommandException: command /usr/bin/git ls-remote ssh://ed2992ee-7805-434a-b2d6-8532e08d6cba@127.0.0.1:24938/PROJ/repo.git failed with code 128. Working directory was [/atlassian-bamboo-6.3.0/temp]., stderr:
fatal: ssh variant 'simple' does not support setting port
	at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:689)
	at com.atlassian.bamboo.plugins.git.GitCommandProcessor.getRemoteRefs(GitCommandProcessor.java:478)
	at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.lambda$getRemoteRefs$1(NativeGitOperationHelper.java:568)
	at com.atlassian.bamboo.util.CallableResultCache$1.load(CallableResultCache.java:38)
	at com.atlassian.bamboo.util.CallableResultCache$1.load(CallableResultCache.java:34)
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527)
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319)
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)
	at com.google.common.cache.LocalCache.get(LocalCache.java:3937)
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)
	at com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.get(AlwaysInvalidatingCacheDecorator.java:64)
	at com.atlassian.bamboo.collections.AlwaysInvalidatingCacheDecorator.getUnchecked(AlwaysInvalidatingCacheDecorator.java:125)
	at com.atlassian.bamboo.util.CallableResultCache.call(CallableResultCache.java:141)
	at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.getRemoteRefs(NativeGitOperationHelper.java:576)
	at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.resolveBranch(NativeGitOperationHelper.java:528)
	at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.obtainLatestRevision(NativeGitOperationHelper.java:627)

Diagnosis

Check Git and OpenSSH versions in the machine hosting Bamboo:

git --version
ssh -V

Cause

Git version 2.16.0-rc0 does not work well with OpenSSH version 6.7 or older as stated in this bug report.

Workaround

This will be fixed in Bamboo 6.4: BAM-19646 - Getting issue details... STATUS  in the interim, downgrade Git to a version >= 1.8.1.5 and < 2.16.

Last modified on Jan 29, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.