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
4,364,438
Community Members
 
Community Events
168
Community Groups

Unable to start bitbucket server

Edited

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]# ./start-bitbucket.sh
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/_start-search.sh: line 37: /backup/bitbucket/shared/search/.version: Permission denied

Starting bundled Elasticsearch
        Hint: Run start-bitbucket.sh --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 _start-webapp.sh

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 java.security.AccessControlException: access denied ("javax.management.MBeanTrustPermission" "register")
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:472)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:585)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanTrustPermission(DefaultMBeanServerInterceptor.java:1848)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:322)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)
        at org.apache.logging.log4j.core.jmx.Server.register(Server.java:389)
        at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:167)
        at org.apache.logging.log4j.core.jmx.Server.reregisterMBeansAfterReconfigure(Server.java:140)
        at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:556)
        at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:261)
        at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:206)
        at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:221)
        at org.apache.logging.log4j.core.config.Configurator.initialize(Configurator.java:197)
        at org.elasticsearch.common.logging.LogConfigurator.configureStatusLogger(LogConfigurator.java:175)
        at org.elasticsearch.common.logging.LogConfigurator.configureWithoutConfig(LogConfigurator.java:99)
        at org.elasticsearch.cli.Command.main(Command.java:85)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84)

Exception in thread "main" java.lang.IllegalStateException: status logger logged an error before logging was configured
        at org.elasticsearch.common.logging.LogConfigurator.checkErrorListener(LogConfigurator.java:128)
        at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:117)
        at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:316)
        at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:123)
        at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:114)
        at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:67)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:122)
        at org.elasticsearch.cli.Command.main(Command.java:88)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:91)
        at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:84)
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.

0 comments

Comment

Log in or Sign up to comment
TAGS

Atlassian Community Events