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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Docker bitbucket container errors

Edited

This error started very recently for us. 

 

When spinning up a new container with:

docker run -v bitbucketVolume:/var/atlassian/application-data/bitbucket --name="bitbucket" -d -p 7990:7990 -p 7999:7999 atlassian/bitbucket-server

 

We get the following errors in the docker logs:

 

INFO:root:User is currently root. Will downgrade run user to bitbucket
INFO:root:Running Bitbucket Server with command '/bin/su', arguments ['/bin/su', 'bitbucket', '-c', '/opt/atlassian/bitbucket/bin/start-bitbucket.sh -fg']
Starting Atlassian Bitbucket as the current user
Copying Elasticsearch configuration to /var/atlassian/application-data/bitbucket/shared/search
Setting Elasticsearch configuration to version 4
rm: cannot remove '/var/atlassian/application-data/bitbucket/shared/search/data': No such file or directory
Setting Elasticsearch data to version 2
Starting bundled Elasticsearch
Hint: Run start-bitbucket.sh --no-search to skip starting Elasticsearch
future versions of Elasticsearch will require Java 11; your Java version from [/opt/java/openjdk/jre] does not meet this requirement
Bundled Elasticsearch started successfully
The current open files limit is set to less than 4096
Attempting to increase limit...
/opt/atlassian/bitbucket/bin/_start-webapp.sh: line 63: ulimit: open files: cannot modify limit: Operation not permitted
Warning: Open file limit could not be increased. You may experience problems under heavy load
Starting Bitbucket webapp at http://localhost:7990
[hallwesl@localhost pipeline]$ docker logs bitbucket -f
INFO:root:User is currently root. Will downgrade run user to bitbucket
INFO:root:Running Bitbucket Server with command '/bin/su', arguments ['/bin/su', 'bitbucket', '-c', '/opt/atlassian/bitbucket/bin/start-bitbucket.sh -fg']
Starting Atlassian Bitbucket as the current user
Copying Elasticsearch configuration to /var/atlassian/application-data/bitbucket/shared/search
Setting Elasticsearch configuration to version 4
rm: cannot remove '/var/atlassian/application-data/bitbucket/shared/search/data': No such file or directory
Setting Elasticsearch data to version 2
Starting bundled Elasticsearch
Hint: Run start-bitbucket.sh --no-search to skip starting Elasticsearch
future versions of Elasticsearch will require Java 11; your Java version from [/opt/java/openjdk/jre] does not meet this requirement
Bundled Elasticsearch started successfully
The current open files limit is set to less than 4096
Attempting to increase limit...
/opt/atlassian/bitbucket/bin/_start-webapp.sh: line 63: ulimit: open files: cannot modify limit: Operation not permitted
Warning: Open file limit could not be increased. You may experience problems under heavy load
Starting Bitbucket webapp at http://localhost:7990
2020-08-03 20:26:38,467 INFO [main] o.s.boot.SpringApplication

...

020-08-03 20:29:24,677 ERROR [http-nio-7990-Acceptor] org.apache.tomcat.util.net.Acceptor Socket accept failed
java.io.IOException: Too many open files
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:419)
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:247)
at java.lang.Thread.run(Thread.java:748)
... 3 frames trimmed

I have tried spinning up older versions with no success.

From the output it looks like the _start-webapp.sh script is not running.

 

Is there a better place than here to file a bug report?

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,732 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you