trying to install new instance of btbucket from tar

I get this message when i try and start the server:

 

[root@localhost atlassian-bitbucket-5.6.2]# bin/start-bitbucket.sh
Starting Atlassian Bitbucket as the current user
/opt/bitbucket/atlassian-bitbucket-5.6.2/bin/_start-search.sh is not intended to be run directly. Run start-bitbucket.sh instead
/opt/bitbucket/atlassian-bitbucket-5.6.2/bin/_start-webapp.sh is not intended to be run directly. Run start-bitbucket.sh instead
To start the Bitbucket webapp without starting search, run start-bitbucket.sh --no-search

1 answer

This widget could not be displayed.

Hi,

  • If you take a look at your logs do you see anything that would indicate ElasticSearch did not install properly?

I found an issue similar to the one you're reporting and they found that "if you installed BitBucket, but did not use the service account that we offer to make for you, there is a chance that some of the files within ElasticSearch have different permissions and as such are not readable by whatever account you use."

If that is the case please run the following to place the files ownership under the account name you use and then restart bitbucket after making the changes:

sudo chown -R <username>:<groupname> /var/atlassian/application-data/bitbucket

If that is not the cause please enable debug logging for Bitbucket and ElasticSearch with the following commands:

curl -u <ADMIN_USERNAME> -v -X PUT -d "" -H "Content-Type: application/json" <BASE_URL>/rest/api/latest/logs/rootLogger/debug
curl -u <ADMIN_USERNAME> -v -X PUT -d "" -H "Content-Type: application/json" <BASE_URL>/rest/api/latest/logs/logger/com.atlassian.bitbucket/debug
curl -u <ADMIN_USERNAME> -v -X PUT -d "" -H "Content-Type: application/json" <BASE_URL>/rest/api/latest/logs/logger/com.atlassian.bitbucket.search.internal.indexing/debug

# e.g.
curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://localhost:7990/rest/api/latest/logs/rootLogger/debug
curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://localhost:7990/rest/api/latest/logs/logger/com.atlassian.bitbucket/debug
curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://localhost:7990/rest/api/latest/logs/l

Once the troubleshooting has been resolved you are welcome to return to normal logging with the following.

curl -u <ADMIN_USERNAME> -v -X PUT -d "" -H "Content-Type: application/json" <BASE_URL>/rest/api/latest/logs/rootLogger/info
curl -u <ADMIN_USERNAME> -v -X PUT -d "" -H "Content-Type: application/json" <BASE_URL>/rest/api/latest/logs/logger/com.atlassian.bitbucket/info
curl -u <ADMIN_USERNAME> -v -X PUT -d "" -H "Content-Type: application/json" <BASE_URL>/rest/api/latest/logs/logger/com.atlassian.bitbucket.search.internal.indexing/info

# e.g.
curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://localhost:7990/rest/api/latest/logs/rootLogger/info
curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://localhost:7990/rest/api/latest/logs/logger/com.atlassian.bitbucket/info
curl -u admin -v -X PUT -d "" -H "Content-Type: application/json" http://localhost:7990/rest/api/latest/logs/logger/com.atlassian.bitbucket.search.internal.indexing/info

Once you review your logs let me know if you need assistance interpreting any error messages you find.

Cheers,

Branden

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,360 views 9 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you