Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,299,341
Community Members
 
Community Events
165
Community Groups

Recreate/reinstall elasticsearch in AWS image

I've been running a BB Server in AWS for a while, and I'd experimented with offloading the elastic search to a different host, but after a while I realized the utilization was ridiculously low.

I re-enabled search in the server image and followed directions for reindexing:
Rebuild the Elasticsearch indexes for Bitbucket Server | Bitbucket Data Center and Server | Atlassian Documentation
Reindex a specific repository for Code Search | Bitbucket Data Center and Server | Atlassian Documentation

despite following both sets of instructions a couple of times and restarting the entire server, it just looks like it isn't bootstrapping the elastic search data:

```

# Identify the repo id

bituser@bitbucket$ more shared/data/repositories/1/repository-config
#>***********************************************
# THIS FILE IS MAINTAINED BY ATLASSIAN BITBUCKET
# IT CONTAINS NO USER-SERVICEABLE PARTS.
#>***********************************************
[bitbucket]
hierarchy = 4f96aade7422dcded681

```

and trying

```

curl -u bitbucket -X GET http://localhost:7992/bitbucket-index-state/indexstate/1

{"_index":"bitbucket-index-state","_type":"indexstate","_id":"1","found":false}

```

and likewise for all the other repositories.

 

How can I trigger a re-bootstrap and rebuild of the elastic search index locally in this image?

 

1 answer

0 votes

Hi Oliver,

Go take a look at https://confluence.atlassian.com/bitbucketserverkb/bitbucket-server-code-search-is-unable-to-find-results-from-some-or-all-repositories-858783145.html and see if the instructions there help you get your repos reindexed.

Cheers,

Christian

Premier Support Engineer

Atlassian

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,239 views 2 9
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