Importing a repository from an external source fails due to java.net.ConnectException

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only - This article only applies to Atlassian products on the server and data center platforms.

Problem

When importing a repository into Bitbucket Server from existing Git projects hosted with Bitbucket Cloud, GitHub, GitHub Enterprise, or a standalone Git repository using the web interface, the import does not start and the following is displayed in the Bitbucket Server user interface:

Unable to reach server.

The following appears in the atlassian-bitbucket.log:

[httpclient-callbacks:thread-1] <username> XYS1Q7x561x9182x0 <id> <ip address> "POST /rest/importer/latest/external-source/missing-oauth-scopes HTTP/1.1" c.a.b.i.i.DefaultExternalRequestExecutor External request failed
java.lang.RuntimeException: java.net.ConnectException
	at com.google.common.base.Throwables.propagate(Throwables.java:160) ~[guava-18.0.jar:na]
...
java.net.ConnectException: null
	at org.apache.http.nio.pool.RouteSpecificPool.timeout(RouteSpecificPool.java:170) ~[na:na]

Cause

An outbound proxy is configured for connecting to the externally hosted repository web site.

Resolution

Follow the steps on the configure an outbound HTTP and HTTPS proxy for Bitbucket Server page and restart Bitbucket Server.

 

Last modified on Nov 2, 2018

Was this helpful?

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