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
Hi,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.