Invalid Version Format Error When Configuring Code Search
Platform Notice: Server and Data Center Only. This article only applies to Atlassian products on the server and data center platforms.
When configuring Bitbucket Server Code Search, the test returns
Connection attempt failed to establish connection. Check the Bitbucket log for details. and the follow error is present in
[2016-07-11 17:38:43,450][WARN ][com.atlassian.elasticsearch.buckler.SecureHttpServerTransport] [bitbucket_bundled] Caught exception while handling client http traffic, closing connection [id: 0xee988843, /127.0.0.1:36916 => /127.0.0.1:7992] java.lang.IllegalArgumentException: invalid version format:
The following error appears in
2016-07-12 02:36:34,475 INFO [I/O dispatcher 13] admin @18ELAMUx156x42x0 14g89mb 220.127.116.11 "POST /rest/search-admin/latest/test-connection HTTP/1.1" c.a.b.s.s.i.t.DefaultElasticsearchConnectionTester Testing connection with Elasticsearch failed due to exception java.util.concurrent.CompletionException: org.apache.http.ConnectionClosedException: Connection closed
The protocol being used to connect to Elasticsearch is incorrect. This is usually caused by having Bitbucket Server configured to use HTTPS to connect to Elasticsearch and Elasticsearch not being configured to support HTTPS.
For example, if the Elasticsearch URL is set to
https://localhost:7992 this error will be encountered.
Adminstration >> Server Settings >> Search change the Elasticsearch URL to