Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Unable to start bitbucket server


When I installed Bitbucket server, I set the home directory in /backup/ as that has my large spinning hard disk as the primary drive is not big enough, here is the error I am getting when trying to start

[root@titan bin]# ./
Starting Atlassian Bitbucket as dedicated user atlbitbucket
runuser: warning: cannot change directory to /backup/atlassian/bitbucket: Permission denied
-bash: /backup/atlassian/bitbucket/.bash_profile: Permission denied

Copying Elasticsearch configuration to /backup/bitbucket/shared/search
mkdir: cannot create directory ‘/backup’: Permission denied
mv: failed to access ‘/backup/bitbucket/shared/search/elasticsearch.yml.bak_version2’: Permission denied
mv: failed to access ‘/backup/bitbucket/shared/search/logging.yml.bak_version2’: Permission denied
cp: failed to access ‘/backup/bitbucket/shared/search’: Permission denied
cp: failed to access ‘/backup/bitbucket/shared/search’: Permission denied
cp: failed to access ‘/backup/bitbucket/shared/search’: Permission denied

Setting Elasticsearch configuration to version 2
/opt/atlassian/bitbucket/5.11.1/bin/ line 37: /backup/bitbucket/shared/search/.version: Permission denied

Starting bundled Elasticsearch
        Hint: Run --no-search to skip starting Elasticsearch
Bundled Elasticsearch started successfully

Bitbucket is being run with a umask that contains potentially unsafe settings.
The following issues were found with the mask "u=rwx,g=rwx,o=rx" (0002):
 - Access is allowed to 'others'. It is recommended that 'others' be denied
   all access for security reasons.
 - Write access is allowed to 'group'. It is recommend that 'group' be
   denied write access. Read access to a restricted group is recommended
   to allow access to the logs.
The recommended umask for Bitbucket is "u=,g=w,o=rwx" (0027) and can be
configured in

The current open files limit is set to less than 4096
Attempting to increase limit...
        Limit increased to 4096 open files
mkdir: cannot create directory ‘/backup’: Permission denied
/backup/bitbucket/log could not be created. Permissions issue?
The Bitbucket webapp was not started
[root@titan bin]# 2018-07-07 12:57:15,748 main ERROR Could not register mbeans access denied ("" "register")
        at java.lang.SecurityManager.checkPermission(
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(
        at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(
        at org.apache.logging.log4j.core.jmx.Server.register(
        at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(
        at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(
        at org.apache.logging.log4j.core.LoggerContext.setConfiguration(
        at org.apache.logging.log4j.core.LoggerContext.start(
        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(
        at org.apache.logging.log4j.core.config.Configurator.initialize(
        at org.apache.logging.log4j.core.config.Configurator.initialize(
        at org.elasticsearch.common.logging.LogConfigurator.configureStatusLogger(
        at org.elasticsearch.common.logging.LogConfigurator.configureWithoutConfig(
        at org.elasticsearch.cli.Command.main(
        at org.elasticsearch.bootstrap.Elasticsearch.main(
        at org.elasticsearch.bootstrap.Elasticsearch.main(

Exception in thread "main" java.lang.IllegalStateException: status logger logged an error before logging was configured
        at org.elasticsearch.common.logging.LogConfigurator.checkErrorListener(
        at org.elasticsearch.common.logging.LogConfigurator.configure(
        at org.elasticsearch.bootstrap.Bootstrap.init(
        at org.elasticsearch.bootstrap.Elasticsearch.init(
        at org.elasticsearch.bootstrap.Elasticsearch.execute(
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(
        at org.elasticsearch.cli.Command.main(
        at org.elasticsearch.bootstrap.Elasticsearch.main(
        at org.elasticsearch.bootstrap.Elasticsearch.main(
Refer to the log for complete error details.

 even though the permissions for the folder is correct,

[root@titan backup]# ls -l
total 0
drwxrwxrwx 3 atlbitbucket atlbitbucket 20 Jul  7 12:52 bitbucket

 EDIT: I have checked and the /dev/sda1(backup) folder is correctly mounted.



Log in or Sign up to comment
AUG Leaders

Atlassian Community Events