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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

29,068 views 26 12
Join discussion

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