Forums

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

Installation

Deleted user July 31, 2019

Hello,

I'm stuck with the bitbucket's installation and don't know, what else I can try.

Here is my current message, when I try the first run on localhost

 

A fatal error has occurred

The following problem occurred, which prevents Atlassian Bitbucket from starting:

  • The database, as currently configured, is not accessible.
    Nicht genug Hauptspeicher.
    Out of memory. [90108-176]

 

I had a spring error message before that, and so on.

 

I'm using a VPS from Strato with following Specs:

OS : Debian 9 64bit

CPU vCores: 2

RAM: 4GB

HD: 300GB

 

On the server I have installed following:

- OpenJDK-8

- Postgresql 9.6

- GIT 2.11

 

other infos.

I use ufw but the ports 7990, 7992 and 7993 are all allowed.

free - m gives me as result:

total   used    free    shared  buff/cache  available Mem:

4096  1785   1906        20            403            2289
Swap: 0            0               0

thanks in advance for the help

 

2 answers

0 votes
Deleted user July 31, 2019

@Alexis Robert

The free -m gave me this:

total used free shared buff/cache available Mem:

4096 1785 1906 20 403 2289
Swap: 0 0 0

I changed the jvm setting to 2g (JVM_MAXIMUM_MEMORY) and I rebooted the server.

It finally worked but I guess that I really have a memory issue, because restarting the server is a pain in the a**)

plus the etc/init.d/atlbitbucket start seems to point in the wrong folder. I had to start bitbucket over the start_bitbucket.sh script.

 

In the database setting, I struggled too, to find out, that I had to enter just localhost, not my server hostname

Finally, to get the license was also something else (maybe because i'm already exhausted) , the server ID is on the setup page not under the bitbucket account (this is for newcomer like me, who don't like to read and choose the right radio button :D )

 

Thanks a lot for the assistance @Alexis Robert . I mark this thread as resolved.

0 votes
Alexis Robert
Community Champion
July 31, 2019

Hi @[deleted] , 

 

from the error message, looks like your PostgreSQL instance is not properly configured.

Can you connect to the database with the command line on your server to test it ? You can follow this documentation to login from the command line.

 

Let me know if this helps, 

 

--Alexis

Deleted user July 31, 2019

HI @Alexis Robert ,

thanks for your reply.

I did test the DB-Server connection and even created a Role and Database for bitbucket.

The thing is, I didn't even have the chance to configure the bitbucket connection to the DB.

As soon as I try the localhost:7990, I have the error message.

 

I took couple of screenshots of the atlassian-bitbucket.log file.

Thanks in advance for the help.

regards.

Willy.

 

Screenshot from 2019-07-31 14-46-44.pngScreenshot from 2019-07-31 14-47-16.pngScreenshot from 2019-07-31 14-47-57.pngScreenshot from 2019-07-31 14-48-50.png

Alexis Robert
Community Champion
July 31, 2019

ok, from your screenshot you're gettin Out Of Memory error right at the beginning.

You should try to check if your server has enough memory available (is Bitbucket the only tool running on it ? ) and adjust Bitbucket memory (in config file  _start-webapp.sh  ) settings to 2048m for example. 

Deleted user July 31, 2019

HI @Alexis Robert ,

thanks for the reply.

Actually I have more than requested and currently I just have bitbucket and postgresql running on the server.

The only variables I can set in  _start-webapp.sh are

JVM_MINIMUM_MEMORY=512m

JVM_MAXIMUM_MEMORY=1g 

MAX_OPEN_FILES=4096

 

I've changed JVM_MAXIMUM_MEMORY to 2g and i did even reduce the MAX_OPEN_FILES to 2098 but I still have the same issue :(

Alexis Robert
Community Champion
July 31, 2019

what about the processes running on your server ? are you sure that enough memory is available ? can you post the output of "free" ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events