trying to install new instance of btbucket from tar

m I'm New Here Jan 23, 2018

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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,889 views 1 5
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