Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence installation throw an error : "Confluence is vacant, a call to tenanted is not allowed."

zegro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 18, 2018

Hi

I'm trying to install Confluence 6.10.0 on my centos server but I always get an error during database initialization:

ERROR [http-nio-30801-exec-4] [[Standalone].[localhost].[/].[jsp]] log Servlet.service() for servlet [jsp] threw exception
com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted [public abstract org.hibernate.Session org.hibernate.SessionFactory.getCurrentSession() throws org.hibernate.HibernateException] is not allowed.

I tried to install using installer, tar.gz archive with postgres-9.5 and mysql-5.7 all combinations give me this error.

The Hostname can be resolved to an IP address.

 

the confluence.log

ERROR [http-nio-30801-exec-4] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action
-- referer: http://127.0.0.1:30801/setup/setupdbtype-start.action | url: /setup/setupdbtype.action | traceId: 003442f362ddc903 | userName: anonymous
java.util.concurrent.CompletionException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedTransactionManager' defined in class path resource [databaseSubsystemContext.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantedLocalSessionFactoryBean5' defined in class path resource [productionDatabaseContext.xml]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: premature SessionFactory initialisation, Hibernate properties have not yet been persisted in confluence.cfg.xml

ERROR [http-nio-30801-exec-4] [[Standalone].[localhost].[/].[jsp]] log Servlet.service() for servlet [jsp] threw exception
com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted [public abstract org.hibernate.Session org.hibernate.SessionFactory.getCurrentSession() throws org.hibernate.HibernateException] is not allowed.

I would appreciate all help.

I didn't have any problems installing JIRA on the same server.
 

 

2 answers

1 accepted

0 votes
Answer accepted
AnnWorley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 18, 2018

Hi Frank,

The entry from your log that stands out for me is:

Hibernate properties have not yet been persisted in confluence.cfg.xml

Please make sure the CentOS user running Confluence has the file system permissions needed to write to the confluence.cfg.xml file in the root of the Confluence home directory (and to the rest of that dir as well). 

If you delete the confluence.cfg.xml file, and restart Confluence, the setup wizard will start over when you pull up Confluence in the browser.

I look forward to hearing how it goes.

Thanks,

Ann

zegro
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 19, 2018

Thank you Ann for the suggestion. 

according to Confluence Home directory

I had re-checked again, It seems that setting is quite all right.

then i delete the confluence.cfg.xml file and restart confluence, begin to re-set.

The only difference is that I turned off the local ShadowSockes-VPN.(My confluence runs on a remote server)
that solves it,

It's hard to understand that local VPN could affect remote services.

I want to try again using docker to install confluence later.

Thank you so much! 

0 votes
Sascha Ernst June 23, 2020

I just saw the same error after playing around with the log4j.properties.

During this I caused a typo in the filename (log4.properties => missing j) and this caused (for whatever reason) the "confluence is vacant" error.

After correcting the filename, confluence started again without any problem.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events