How can I connect a new Confluence Ubuntu server to an existing database without creating a new database

Currently I have Confluence running in windows server with Microsoft SQL 2008 database, and i have built a new ubuntu server with Confluence installed. Confluence Home Directory from windows has been copied to Ubuntu, and confluence.cfg.xml file has been updated.

Finally I got error message in browser below:

-------------------error message starts------------------

logo System Error

A system error has occurred — our apologies!

For immediate troubleshooting, consult our knowledge base for a solution.

If you would like to receive support from Atlassian's support team, ask your Confluence administrator to create a support issue on Atlassian's support system with the following information:

  1. a description of your problem and what you were doing at the time it occurred
  2. a copy of the error and system information found below
  3. a copy of the application logs (if possible).

Your Confluence administrator can use the support request form to create a support ticket which will include this information.

We will respond as promptly as possible.
Thank you!

Return to site homepage…

The SystemInformationService could not be retrieved from the container. Therefore very limited information is available in this error report.
The SystemInformationService could not be retrieved due to the following error: java.lang.NullPointerException


com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(

caused by: java.lang.NullPointerException
at com.atlassian.spring.container.ContainerManager.getComponent(

Stack Trace:[hide]

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
	at com.atlassian.util.concurrent.LazyReference.getInterruptibly(
	at com.atlassian.util.concurrent.LazyReference.get(
	at com.atlassian.confluence.web.filter.LanguageExtractionFilter.getLocaleManager(
	at com.atlassian.confluence.web.filter.LanguageExtractionFilter.doFilter(
	at com.atlassian.core.filters.AbstractHttpFilter.doFilter(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at com.atlassian.confluence.util.RequestCacheThreadLocalFilter.doFilter(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter.doFilter(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.process(
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
	at Source)
Caused by: java.lang.NullPointerException
	at com.atlassian.spring.container.ContainerManager.getComponent(
	at com.atlassian.confluence.util.LazyComponentReference$Accessor.get(
	at com.atlassian.util.concurrent.Lazy$Strong.create(
	at com.atlassian.util.concurrent.LazyReference$
	at com.atlassian.util.concurrent.LazyReference.getInterruptibly(
	... 25 more


Referer URL

-------------------error message ends-----------------------

Ubuntu version: 12.04

Java version: OpenJDK 1.6.0 come with Ubuntu

Confluence version: 4.2.3 64bit

Appreciate any advice!!!!!

4 answers

1 accepted

0 votes
Accepted answer

This definitely is a problem that is specific to the mix of Confluence with Ubuntu 12.04 (or 12.04.1 for that matter).

I just went through the process of upgrading our ubuntu release from Natty (11.04) up to 12.04.1. To get to 12.04 from 11.04 it is necessary to do the do-release-upgrade twice. First you have to upgrade to 11.10, and then when you run it the second time you can go up to 12.04.1.

I tested our confluence / Jira environment after upgrading to 11.10 and it worked fine. Then after upgrading to 12.04.1 I'm getting the exact same error messages as described above.

I don't have an answer as to the issue, but I spent enough time on this to confidently state that the problem rests with some change that came with ubuntu between 11.10 and 12.04.

Are you sure this is a Database connection issue?

From the logs, i cant get a clear picture. but here is the step to trouble shoot this issue if its realted to database being located on a different machine

Check and see if your MSSQL server allows remote connections, for security measures they default to localhost only unless a DBA steps in and allows remote connections

These links might not be for the same version os MS SQL you are using but concepts apply

If you have X installed on ubuntu you can check using clients like

or telnet hostname/ip portNumber

If you are able to connect then your confluence instance should be able to connect to

let us know how it goes

Thank you! Parthis,

My Microsoft SQL 2008 remote connection is set up. firewall rule exception is set up as well. I even use the testdatabase.jsp from Atlassian website to test MS SQL connection. It shows that remote connection, authentication, and MS SQL driver are all working fine.

Is it the problem of JAVA?

I use the pre-installed OpenJDK 1.6.0 in Ubuntu 12.04. JAVA_HOME is set as well.

I have tried the new databse on MS-SQL server and new installation of Ubuntu. Then, restore the confluence backup file to my Ubuntu Confluence. All data have been inserted to my new database successfully.

What i confuse is why i can not connect my new Ubuntu Confluence to an existing MS-SQL database, so that i do not need to backup and restore confluence file.

Maybe i need to fix it as what u suggest.

That rules out database connectivity issues. one more thing to check.

Check the "ubuntu user" which you use to starts up your application has all the permissions to the application directory as well as the home directory.

you get unexpected errors which does not give you a clear picture if the user who starts up the application does not have read/write permissions to all these directories.

if this fails do a test,

Start with a new installation and a new database on your MS-SQL server try and set this new installation up, if this goes well then i suspect your installation might be corrupt.

Thomas Schlegel Community Champion May 24, 2012

did you check the atlassian-confluence.log located in confluence-home/logs ?

We are having the same issue, since upgrading to Ubuntu 12.04. We have double-checked database connections, passwords etc and nothing seems to help.

Hi, picked up that you're using OpenJDK? That JVM isn't supported and does cause problems, have you tried with Oracle or 1.7 ? Might not be the issue here, but I've seen similar DB looking errors when using an unsupported JVM. Andrew.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Dec 18, 2018 in Confluence Cloud

Happy holidays from our team to yours!

Hi Community!  2018 was filled with changes for our team, both big and small, and we've taken a lot of time to both celebrate our wins and recognize areas of improvement. One thing that we're a...

473 views 3 18
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