Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bundled elasticsearch does not work at all for bitbucket server 5.15.0 Edited

Bundled elasticsearch does not work at all for bitbucket server 5.15.0. Tried different suggestions but still failed.

For "Unable to synchronize the mapping in Elasticsearch" , tried: https://confluence.atlassian.com/bitbucketserverkb/troubleshooting-connection-issues-for-elasticsearch-826900037.html?_ga=2.233302297.648682443.1542571344-1680089844.1538682649

i.e. stop-bitbucket.sh follows by start-bitbucket.sh

and then:  https://confluence.atlassian.com/bitbucketserverkb/rebuild-the-bundled-elasticsearch-indexes-for-bitbucket-server-833988382.html

i.e. curl -k -u bitbucket -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' <server_url>/rest/indexing/latest/sync

Journal below:

```

2018-11-18 17:07:07,800 INFO [Caesium-1-3] c.a.b.i.s.i.jobs.StartupChecksJob Running startup jobs for search
2018-11-18 17:07:07,929 INFO [I/O dispatcher 1] c.a.b.s.s.t.DefaultElasticsearchConnectionTester Testing connection with Elasticsearch failed: HTTP response status code is 401
2018-11-18 17:07:07,953 INFO [I/O dispatcher 81] c.a.b.s.s.t.DefaultElasticsearchConnectionTester Testing connection with Elasticsearch failed: HTTP response status code is 401
2018-11-18 17:07:07,958 ERROR [Caesium-1-3] c.a.b.i.s.i.IndexingSynchronizationService Unable to synchronize the mapping in Elasticsearch
2018-11-18 17:07:07,959 WARN [Caesium-1-3] c.a.b.i.s.c.cluster.ClusterJobRunner Job execution failed. Rescheduling. Job key: com.atlassian.bitbucket.internal.search.indexing.jobs.StartupChecksJob Job id: xxx
2018-11-18 17:07:07,967 INFO [Caesium-1-1] c.a.b.i.s.c.j.c.HealthCheckRunner Health checks will run again after PT5M
2018-11-18 17:07:15,968 INFO [Caesium-1-2] c.a.b.i.s.i.jobs.StartupChecksJob Attempting provisioning in startup job
2018-11-18 17:07:15,971 INFO [Caesium-1-2] c.a.b.i.s.i.jobs.StartupChecksJob Running startup jobs for search
2018-11-18 17:07:15,980 ERROR [Caesium-1-2] c.a.b.i.s.i.IndexingSynchronizationService Unable to synchronize the mapping in Elasticsearch
2018-11-18 17:07:15,981 WARN [Caesium-1-2] c.a.b.i.s.c.cluster.ClusterJobRunner Job execution failed. Rescheduling. Job key: com.atlassian.bitbucket.internal.search.indexing.jobs.StartupChecksJob Job id: xxx
2018-11-18 17:07:31,989 INFO [Caesium-1-3] c.a.b.i.s.i.jobs.StartupChecksJob Attempting provisioning in startup job
2018-11-18 17:07:31,994 INFO [Caesium-1-3] c.a.b.i.s.i.jobs.StartupChecksJob Running startup jobs for search
2018-11-18 17:07:32,001 ERROR [Caesium-1-3] c.a.b.i.s.i.IndexingSynchronizationService Unable to synchronize the mapping in Elasticsearch
2018-11-18 17:07:32,001 WARN [Caesium-1-3] c.a.b.i.s.c.cluster.ClusterJobRunner Job execution failed. Rescheduling. Job key: com.atlassian.bitbucket.internal.search.indexing.jobs.StartupChecksJob Job id: xxx

```

=================== log after issue "sync" =================

```

2018-11-18 17:15:14,159 WARN [analyticsEventProcessor:thread-1] bitbucket @XXX  "POST /rest/indexing/latest/sync HTTP/1.1" c.a.a.c.h.r.RemoteHashingInstructionsReader Unable to read remote instructions with key 'uid.onewayhash'.
2018-11-18 17:15:14,160 WARN [analyticsEventProcessor:thread-1] bitbucket @XXX "POST /rest/indexing/latest/sync HTTP/1.1" c.a.a.c.h.BcryptAnalyticsEmailHasher No instructions for hashing could be found.
2018-11-18 17:15:19,216 INFO [Caesium-1-2] c.a.b.i.s.i.IndexingSynchronizationService Beginning indexing of all projects and repositories for search.
2018-11-18 17:15:19,224 ERROR [Caesium-1-2] c.a.b.i.s.i.IndexingSynchronizationService Unable to synchronize the mapping in Elasticsearch
2018-11-18 17:15:19,225 WARN [Caesium-1-2] c.a.b.i.s.c.cluster.ClusterJobRunner Job execution failed. Rescheduling. Job key: com.atlassian.bitbucket.internal.search.indexing.jobs.ElasticsearchSynchronizeJob Job id: xxx

```

1 answer

The fix is to update the search password. The default does not work.

cd .../bitbucket_home/shared/search/buckler/buckler.yml

copy/paste the `auth.basic.password` to Administration|Server settings|Elasticsearch password

i had the same issue and it solved it.

 

thanks.

I am on bitbucket 5.9.0, my instance was up since 9/2018 - in 6/2019 suddenly bitbucket lost connectivity to elastic search. 

 

Restoring password like Leonad Li's suggestion fixed the instance.

 

Thanks !!

Hi manish, 

I am facing same issue but my bitbucket is not even running on ip address therefore I cant do the leonad li's steps.

what should I do?

I followed the same process but still test failed
Like roman_pleskun likes this

Thanks, glad it solved the problem

Thanks a lot, this solved my issue!

Suggest an answer

Log in or Sign up to
This widget could not be displayed.
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,409 views 8 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you