How to solve ERR_CONNECTION_REFUSED?
Asked by Ismaine Ayouaz:

Hello,

I am getting ERR_CONNECTION_REFUSED on Centos 7.

After creating the database, the user etc, I was able to successfully connect to the database. I installed confluence with the installer (bin file) and went to the webpage to setup my licence and prepare the database. I entered my database credentials, I successfully connected the database and click next. I had a message saying that confluence was configuring the database and it could take a while. After couple of minute, the webpage went to "

This site can't be reached {#toc-hId-1793511412}
------------------------------------------------

**vpsxxxxx.vps.ovh.ca** refused to connect.

* Search Google for "name of the server 8090"  

  ERR_CONNECTION_REFUSED"

I do not know what to do. please can I get some help


Answers:
author: Nic Brough -Adaptavist-
body: This is usually a browser error, rather than server.

Could you try clearing cookies and cache, and restarting the browser? (I've seen this fix Chrome connections to web applications)

comments: author: Ismaine Ayouaz
body: thanks for the reply. it does not work. I tried connecting on three different web browsers. same results


author: Ismaine Ayouaz
body: here what I got after rebooting the server

<http://xxx.vps.ovh.ca:8090/bootstrap/selectsetupstep.action>

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:

a description of your problem and what you were doing at the time it occurred  
a copy of the error and system information found below  
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!

<br />

<br />


author: Ismaine Ayouaz
body: ### Cause {#toc-hId-1596998627}

com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set  
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)

caused by: java.lang.IllegalStateException: Spring Application context has not been set  
at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48)


author: Nic Brough -Adaptavist-
body: Ahh, that old favourite. It's usually an incompatible JVM being installed on the machine being picked up incorrectly or that the wrong user has been used to start Confluence (or the right one after a previous start by the wrong one)

But the full list is at <https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html>


author: Ismaine Ayouaz
body: thank you. I just don't understand. nothing in this article helps.

I have to deal whit linux centos. it is disappointing that Atlassian does not offer a comprehensive guide to install their products and for clients who paid for their products.


author: Nic Brough -Adaptavist-
body: That article gives a list of the most of the reasons

I'm afraid we can't help you with the error you have because 99% of the time, it's going to be caused by an item on that list. All we would do is take you through the same list of potential causes. The reason you are having it is likely to be because you've got something wrong when following the comprehensive installation guide to installing confluence at <https://confluence.atlassian.com/doc/confluence-installation-guide-135681.html>


author: Ismaine Ayouaz
body: could it be a memory issue? I have a vps with 2gb of ram. I will be the only user !


author: Nic Brough -Adaptavist-
body: Yes it could be memory, as described in the docs we've pointed you to (it might not be memory, but we can't know until you have gone through the docs)


author: Ismaine Ayouaz
body: I tried everything I could but the memory. I will keep you posted


author: Ismaine Ayouaz
body: resolved !

I posted a step by step procedure to use confluence on centos. I guess two gb of memory was not enough

<https://community.atlassian.com/t5/Confluence-discussions/how-to-install-confluence-on-centos-7/m-p/777694#M1724>