Confluence won't start
Asked by Karthik Bonthu:

I'm trying to install confluence on my server and it doesn't seem to start

```
[confluence@vps82833 ~]$ /opt/atlassian/confluence/bin/start-confluence.sh -fgexecuting as current userIf you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+GuideServer startup logs are located in /opt/atlassian/confluence/logs/catalina.outUsing CATALINA_BASE: /opt/atlassian/confluenceUsing CATALINA_HOME: /opt/atlassian/confluenceUsing CATALINA_TMPDIR: /opt/atlassian/confluence/tempUsing JRE_HOME: /opt/atlassian/confluence/jre/Using CLASSPATH: /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jarUsing CATALINA_PID: /opt/atlassian/confluence/work/catalina.pid04-Jun-2016 11:30:27.510 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server} Setting property 'debug' to '0' did not find a matching property.04-Jun-2016 11:30:27.639 WARNING [main] org.apache.catalina.startup.SetAllPropertiesRule.begin [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'debug' to '0' did not find a matching property.04-Jun-2016 11:30:27.649 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine} Setting property 'debug' to '0' did not find a matching property.04-Jun-2016 11:30:27.669 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host} Setting property 'debug' to '0' did not find a matching property.04-Jun-2016 11:30:27.739 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'debug' to '0' did not find a matching property.04-Jun-2016 11:30:28.394 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8090"]04-Jun-2016 11:30:28.437 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read04-Jun-2016 11:30:28.451 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1073 ms04-Jun-2016 11:30:28.459 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Tomcat-Standalone04-Jun-2016 11:30:28.459 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.332016-06-04 11:30:42,142 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 5.9.12 [build 6220 based on commit hash de9b463eb65c5ca13c0266eed77e2bf49f4c6fe8]
```

I see number of postgres processes that are in idle state.

```
[root@vps82833 log]# ps aux|grep confluroot     18751  0.0  0.0 113124  1448 pts/0    S+   12:58   0:00 /bin/bash ./start-confluence.sh -fgroot     18755  0.0  0.0 144516  1556 pts/0    S+   12:58   0:00 /sbin/runuser -m confluence -c ./catalina.sh runconflue+ 18756 68.1 36.7 3550652 1453176 ?     Ssl  12:58   2:16 /opt/atlassian/confluence/jre//bin/java -Djava.util.logging.config.file=/opt/atlassian/confluence/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms1024m -Xmx1024m -XX:+UseG1GC -Datlassian.plugins.enable.wait=300 -Djava.awt.headless=true -Xloggc:/opt/atlassian/confluence/logs/gc-2016-06-04_12-58-40.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M -XX:-PrintGCDetails -XX:+PrintGCTimeStamps -XX:-PrintTenuringDistribution -Djava.endorsed.dirs=/opt/atlassian/confluence/endorsed -classpath /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar -Dcatalina.base=/opt/atlassian/confluence -Dcatalina.home=/opt/atlassian/confluence -Djava.io.tmpdir=/opt/atlassian/confluence/temp org.apache.catalina.startup.Bootstrap startpostgres 18928  2.2  0.4 243044 16240 ?        Ss   13:00   0:02 postgres: postgres confluence 127.0.0.1(59336) idlepostgres 18965  0.0  0.1 233596  6412 ?        Ss   13:00   0:00 postgres: postgres confluence 127.0.0.1(59344) idlepostgres 18966  0.0  0.1 234120  6800 ?        Ss   13:00   0:00 postgres: postgres confluence 127.0.0.1(59345) idlepostgres 18968  0.0  0.1 234296  7688 ?        Ss   13:00   0:00 postgres: postgres confluence 127.0.0.1(59350) idlepostgres 18982  0.0  0.1 234340  7512 ?        Ss   13:00   0:00 postgres: postgres confluence 127.0.0.1(59367) idlepostgres 18983  0.0  0.1 233564  6356 ?        Ss   13:00   0:00 postgres: postgres confluence 127.0.0.1(59368) idlepostgres 19021  0.0  0.1 233440  4348 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59369) idlepostgres 19022  0.0  0.1 233440  4348 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59370) idlepostgres 19023  0.0  0.1 233440  4348 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59371) idlepostgres 19024  0.0  0.1 233440  4348 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59372) idlepostgres 19025  0.0  0.1 233576  5932 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59373) idlepostgres 19026  0.0  0.1 233564  6348 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59374) idlepostgres 19027  0.0  0.1 233576  5936 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59375) idlepostgres 19028  0.0  0.1 233440  4356 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59376) idlepostgres 19029  0.0  0.1 233440  4352 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59377) idlepostgres 19030  0.0  0.1 233440  4352 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59378) idlepostgres 19031  0.0  0.1 233440  4352 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59379) idlepostgres 19032  0.0  0.1 233440  4356 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59380) idlepostgres 19033  0.0  0.1 233440  4356 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59381) idlepostgres 19034  0.0  0.1 233440  4352 ?        Ss   13:01   0:00 postgres: postgres confluence 127.0.0.1(59382) idleroot     19036  0.0  0.0 112648   976 pts/1    R+   13:01   0:00 grep --color=auto conflu
```


Answers:
author: Christian Rinjes
body: Just in case anyone, like me, comes by here wondering why Confluence won't start up with the logs at the same "contextInitialized Starting Confluence" state:

Don't panic immediately, wait. I figured out that at this point my Confluence installation **idles for about 8 minutes** with barely any noticeable activity before it properly starts up and starts accepting requests.


author: Athirah Zolkefli
body: Hi Karthik,

Sorry to hear the installation isn't going so well. ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad") Is this your first attempt at the installation? Or have you already gone through the setup process for this Confluence instance and it just fails at startup?

Have you also tried checking the Confluence application logs to see what error messages were thrown? The log file is located in \<Confluence-home\>/logs/ and is named "atlassian-confluence.log".

Perhaps you could also let us know what you see in your browser when you attempt to access Confluence.

Regards,  
Athirah Zolkefli


Tags: confluence-administration