Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Elasticsearch will not start when starting Bitbucket server

Brian DeBlis May 2, 2018

I am running Bitbucket server 5.9.1 and no matter what I do I cannot get elasticsearch to start. It always says connection refused. The page from Atlassian where it has the steps to fix it, the frame does not expand to see the steps. Any help would be appreciated

1 answer

0 votes
Felipe Kraemer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 4, 2018

Hi @Brian DeBlis,

Can you please make sure that you're not starting Bitbucket Server as root, but with a dedicated user?

Also, according to Troubleshooting Connection Issues for Elasticsearch it looks like this problem can be resolved by following these steps:

If you start Bitbucket Server with a Linux service:

# service atlbitbucket status
# service atlbitbucket stop
# service atlbitbucket start

If you start Bitbucket Server without a Linux service:

> cd <Bitbucket Server installation directory>
> bin/stop-bitbucket.sh
> bin/start-bitbucket.sh

If you start Bitbucket Server with a Windows service:

Restart just the Elasticsearch service

If you start Bitbucket Server without a Windows service:

> cd <Bitbucket Server installation directory>
> bin\stop-bitbucket.bat
> bin\start-bitbucket.bat

I hope this helps!

Felipe 

Brian DeBlis May 4, 2018

@Felipe Kraemer 

I am starting with my atlbitbucket user, but still having the same issue as when I was starting as root. It gives me a "connection refused"

Daywalker04
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 25, 2018

the same issue, present on bitbucker 5.11.1

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events