Actually having a confluence setup which was working fine earlier with lot of data, and later stopped working with the issues.
When start Confluence, noticing the below error:
@Confluence:/opt/atlassian/confluence/bin$ sudo ./start-confluence.sh -fg
What this error means and how to resolve the below error. It helps to troubleshoot. Any suggestion are welcome.
type Exception report
message java.lang.IllegalStateException: Spring Application context has not been set
description The server encountered an internal error that prevented it from fulfilling this request.
exception
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set
From the above replies I see all your configurations are fine.
step 1 - Do you have all you data backed up? If yes try to create a new database with and restore the data.
Try finishing this installation with empty database, once done try to point to the restored Db and restart the application. This should get all the previous data.
Let me know if that helps
Hi @sahanajsj ,
There are many reasons one see this error message while starting the Confluence.
I would recommend to review the below Atlassian KB article which list out the reason for receiving the error
Spring Application context has not been set
if you are still noticing the issue, share the complete error message log for additional review.
Thanks,
Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you both for your suggestions.
Actually, I tried changing the ownership permissions of my "confluence" user. When running the confluence start/stop commands, still requires sudo permission. Please help, what to do now - I'm new to confluence setup. (trying to troubleshoot the existing setup, Installation and configuration setup has done by another engineer earlier)
Start Confluence:
After starting Confluence, Im getting setupstart.action page as below:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I used these commands to change the permissions:
$ sudo chown -R confluence.confluence /var/atlassian/application-data/confluence
$ sudo chown -R confluence.confluence /opt/atlassian/confluence
$ sudo chmod -R u=rwx,go-rwx /var/atlassian/application-data/confluence
$ sudo chmod -R u=rwx,go-rwx /opt/atlassian/confluence
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @sahanajsj ,
setupstart.action page indicates that the Confluence has started, now you just need to complete the installation steps and configure your database schema
After which you should be able to login and access the Confluence instance.
Thanks,
Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the reply, but I wonder these installation steps configurethe confluence newly? or will i able to get the earlier configured setup which has my data and files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kiran Panduga {Appfire} Im not clear at this point of installation, its like a new installation of confluence and configure to my existing/old Database?
How it works, can please brief me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@sahanajsj Can you check if the home directory is pointing to the correct path by validating the below configuration file ?
/opt/atlassian/confluence/Confluence/WEB-INF/classes/confluence-init-properties
Also, verify the confluence.cfg.xml file in the home directory /var/atlassian/application-data/confluence, it should have reference to your old database schema.
If this file is missing, it will create new confluence.cfg.xml file and due to which new installation is starting.
Thanks,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I verified the configuration file, it seems pointing properly to home-directory
In confluence.cfg.xml file, im not seeing any database schema related.
Now, what are the ways to look for existing database Schema or to configure again to retain the data without any loss.?
Please suggest.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @sahanajsj ,
I'm afraid, now there are only two options to retain the existing data.
(or)
{code}
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.password">confluencepass</property>
<property name="hibernate.connection.url">jdbc:mysql://<servername>/<databasename>?autoReconnect=true</property>
<property name="hibernate.connection.username">confluencedbuser</property>
<property name="hibernate.database.lower_non_ascii_supported">true</property>
<property name="hibernate.dialect">com.atlassian.hibernate.dialect.MySQLDialect</property>
{code}
For more information, refer to the below KB article
Thanks,
Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @sahanajsj ,
This error is likely to be a permission issue. Make sure you apply the correct permissions to the sub-folders as well of your home-directory and install-folder. (read and write permissions are to be given).
If that doesn't solve the issue, post the logs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.