Confluence 7.4.3 Initial setup Failed with server error
Asked by ?? ??(NTT???):

Hello All,

I have been trying to setup Confluence for a client in AWS but I have ran into several issues with no solution.

I've built Postgres 9.6 on AWS EC2 and tried to build Confluence inside EC2.

I have successfully built Postgres and installed Confluence, but when I try to link my Confluence account to Postgres I get the following error:

When I try to make a change to the Confluence database, that database seems to be in use by another process, so the database is there and tables have been created.  
However, if the root user tries to modify the user permissions created for Confluence, they will be denied without permission.

??

org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean \[com.atlassian.confluence.jmx.TaskQueueWrapper@79845964\] with key 'Confluence:name=MailTaskQueue'; nested exception is javax.management.InstanceAlreadyExistsException: Confluence:name=MailTaskQueue  
at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:625)

caused by: javax.management.InstanceAlreadyExistsException: Confluence:name=MailTaskQueue  
at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)

```
Caused by: javax.management.InstanceAlreadyExistsException: Confluence:name=MailTaskQueue	at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)	at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)	at org.springframework.jmx.support.MBeanRegistrationSupport.doRegister(MBeanRegistrationSupport.java:195)	at org.springframework.jmx.export.MBeanExporter.registerBeanInstance(MBeanExporter.java:678)	at org.springframework.jmx.export.MBeanExporter.registerBeanNameOrInstance(MBeanExporter.java:621)	... 376 more?
```


Answers:
author: Diego
body: Hello [@?? ??(NTT???)](/t5/user/viewprofilepage/user-id/4068474) !  
After I read your question, I believe that your situation is a known one. The errors you sent our way indicates that Confluence is having problems to start due to JMX.

Since this is an already known situation, there is documentation about it. You can find it here:
> * [++***\[Confluence Server\] Unable to Start Confluence Due to JMX***++](https://confluence.atlassian.com/confkb/unable-to-start-confluence-due-to-jmx-182158269.html)

Also make sure that the permissions and ownership of both \<confluence-home\> and \<confluence-install\> folders are correct. If you need some guidance on how to deal with permissions and the user to run Confluence, take a look here:
> * [++***\[Confluence Server\] Confluence Installation Guide***++](https://confluence.atlassian.com/doc/confluence-installation-guide-135681.html)
> * ++***[\[Confluence Server\] Creating a Dedicated User Account on the Operating System to Run Confluence](https://confluence.atlassian.com/doc/creating-a-dedicated-user-account-on-the-operating-system-to-run-confluence-255362445.html)***++

Let us hear from you!


Tags: confluence-server

server