cannot get confluence to run on AWS EC2 Ubuntu 14.04

After I attempted to install the confluence 5.8.6,

I followed mainly the steps in https://confluence.atlassian.com/display/DOC/Installing+Confluence+on+Linux+from+Archive+File#InstallingConfluenceonLinuxfromArchiveFile-2.InstallJava and https://confluence.atlassian.com/display/DOC/Start+Confluence+Automatically+on+Linux

I used `confluence` as user and run `. confluence-start.sh` inside `/usr/local/confluence/current/bin/`

Almost immediately, I get the following message and my user account got switched out of `confluence` and back into `ubuntu`

confluence@ip-xxx.xxx.xxx.xxx:/usr/local/confluence/current/bin$ . start-confluence.sh

To run Confluence in the foreground, start the server with start-confluence.sh -fg
executing as current user
If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide

Server startup logs are located in /usr/local/confluence/current/logs/catalina.out
Using CATALINA_BASE: /usr/local/confluence/current
Using CATALINA_HOME: /usr/local/confluence/current
Using CATALINA_TMPDIR: /usr/local/confluence/current/temp
Using JRE_HOME: /usr/lib/jvm/java-7-openjdk-amd64
Using CLASSPATH: /usr/local/confluence/current/bin/bootstrap.jar:/usr/local/confluence/current/bin/tomcat-juli.jar
Using CATALINA_PID: /usr/local/confluence/current/work/catalina.pid
Tomcat started.
ubuntu@ip-xxx-xxx-xxx-xxx:~$ sudo su confluence
confluence@xxx-xxx-xxx-xxx:/home/ubuntu$ cd /usr/local/confluence
confluence@ip-xxx-xxx-xxx-xxx:/usr/local/confluence$ ls -la

I then tried ip address:8090. I get nothing.

Please advise.

**UPDATE**

I have switched to java 8. Same issue

 

confluence@ip-172-31-22-135:/usr/local/confluence/current/bin$ . start-confluence.sh

To run Confluence in the foreground, start the server with start-confluence.sh -fg
executing as current user
If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide

Server startup logs are located in /usr/local/confluence/current/logs/catalina.out
Using CATALINA_BASE: /usr/local/confluence/current
Using CATALINA_HOME: /usr/local/confluence/current
Using CATALINA_TMPDIR: /usr/local/confluence/current/temp
Using JRE_HOME: /usr/lib/jvm/java-8-oracle
Using CLASSPATH: /usr/local/confluence/current/bin/bootstrap.jar:/usr/local/confluence/current/bin/tomcat-juli.jar
Using CATALINA_PID: /usr/local/confluence/current/work/catalina.pid
Existing PID file found during start.
Removing/clearing stale PID file.
Tomcat started.

2 answers

This widget could not be displayed.

What does the atlassian-confluence.log file say is going wrong?

where can i find this atlassian-confluence.log?

This widget could not be displayed.

Hi Kimsia, 

Tomcat started.

Your Tomcat looks running fine, so probably your error messages will be on <confluence-data>/logs/atlassian-confluence.log. So, please try the following:

1 - Stop Confluence

2 - Start Confluence

3 - Watch the logs:

tail -f &lt;confluence-data&gt;/logs/atlassian.log

 

Lastly, can you confirm what are you facing when you try to access Confluence? I mean, is an error message, a blank page?

 

Regards, 

Renato Rudnicki

 

Right after I start confluence, the Ubuntu user will suddenly switch from confluence to ubuntu. Not sure if this is intentional. My confluence data is the folder /usr/local/confluence/data. There is nothing inside. Not even a logs folder.

"the Ubuntu user will suddenly switch from confluence to ubuntu" - this is nonsense without the context. Do you mean you are using an account by logging in as another person first and using "exit" to go back to the original? That a process is running and spawns another one running under a different user? Or is the session being forcibly killed by another process you've set up to deliberately kill it? Anyway... If your "cofluence home"/logs is empty, then Confluence is not starting at all. Tomcat is unable to get the application loaded. Have a look at /usr/local/confluence/current/logs/catalina.out - this should have an error message in it to tell you why it can't begin to start Confluence.

Can you confirm if you have setup confluence home variable properly? Please take a look on <confluence-data> confluence/WEB-INF/classes/confluence-init.properties

Nic Brough: without me pressing "exit" it went back to the original (i think) the log file for catalina.out last 2 errors are: # An error report file with more information is saved as: # /usr/local/confluence/atlassian-confluence-5.8.6/bin/hs_err_pid11076.log Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory. # An error report file with more information is saved as: # /usr/local/confluence/atlassian-confluence-5.8.6/bin/hs_err_pid14165.log OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000b5a00000, 1073741824, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (malloc) failed to allocate 1073741824 bytes for committing reserved memory. # An error report file with more information is saved as: # /usr/local/confluence/atlassian-confluence-5.8.6/bin/hs_err_pid17813.log

Well, that's pretty clear. You are allocating too much memory to Confluence for your machine. You need to run this on a machine with more memory, or decrease the amount you're giving Confluence (if it's a default installation, then that's not going to work, it's on pretty minimal settings already, and you will definitely need to run this on a machine with more memory)

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

44 views 6 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you