Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Docker bitbucket container errors

wes.hall
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 3, 2020

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
AUG Leaders

Atlassian Community Events