Confluence does not support individual processing
Asked by gopi_annepaka:

Dear Community,

We've observed the mentioned issue last week and since then the confluence is down.

Seeking your expert suggestions in resolving this, there are couple of errors I see from the logs (let me know if you need the complete log file for reference) but below snippet is what gets around my head.

The telnet connectivity looks fine to the DB, just to highlight the confluence comes up fine but immediately goes down with such exceptions in less than 5 mins.

Caused by: net.sf.hibernate.exception.GenericJDBCException: Cannot open connection  
at net.sf.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:90)  
at net.sf.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:79)  
at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)  
at net.sf.hibernate.impl.BatcherImpl.convert(BatcherImpl.java:328)  
at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:295)  
at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3371)  
at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3331)  
at org.springframework.orm.hibernate.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:422)  
... 81 more  
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Regards,

Gopi.


Answers:
author: Rilwan Ahmed
body: Hi [@gopi_annepaka](/t5/user/viewprofilepage/user-id/4049545) ,

What version of the confluence , Java and Mysql are you using ? Share some more logs.

Meantime please go through this document and check if this can solve your problem.

<https://confluence.atlassian.com/confkb/confluence-is-not-starting-with-mysql-and-confluence-java-11-1064089758.html>

comments: author: gopi_annepaka
body: Thanks [@Rilwan Ahmed](/t5/user/viewprofilepage/user-id/716861) for the quick response.

Thanks for the article as well, I believe its not related to the SSL issues as I haven't seen any of the stack traces in the logs.

++Below are the details:++

* Confluence: 3.5.5
* Java: 1.6.0_17
* MySQL: 5.1.40-log
* Driver: mysql-connector-java-5.1.11

Let me know if you need any further details.


author: gopi_annepaka
body: ```

2022-04-07 17:30:33,864 ERROR [QuartzScheduler_Worker-8] [sf.hibernate.util.JDBCExceptionReporter] logExceptions Duplicate entry 'csr test1-12943362' for key 'cwd_user_name_dir_id'
2022-04-07 17:30:33,865 ERROR [QuartzScheduler_Worker-8] [sf.hibernate.impl.SessionImpl] execute Could not synchronize database state with session

```

More logs.


author: gopi_annepaka
body: ```
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry 'csr test1-12943362' for key 'cwd_user_name_dir_id'
```


author: Rilwan Ahmed
body: [@gopi_annepaka](/t5/user/viewprofilepage/user-id/4049545) ,

1. I would first suggest upgrade confluence to newer version. You are using very old and unsupported version

Refer to section **Upgrade path** in <https://confluence.atlassian.com/doc/confluence-upgrade-matrix-960695895.html>

2. Try to [remove "csr test1-12943362" from multiple OUs in LDAP](https://confluence.atlassian.com/confkb/confluence-does-not-complete-directory-synchronization-when-a-user-is-duplicated-in-multiple-ous-947185601.html)

3. Contact Atlassian support: <https://support.atlassian.com/customer/servicedesk-portal>


author: gopi_annepaka
body: Thanks [@Rilwan Ahmed](/t5/user/viewprofilepage/user-id/716861)

Upgrade is in pipeline but this needs to be fixed before upgrade happens.

I've already contacted the support but looks like the license expired, hence seeking the help from community as per their suggestion, in fact they routed me here :(

Regards,

Gopi.


author: Rilwan Ahmed
body: Did you try this ?  
2. Try to [remove "csr test1-12943362" from multiple OUs in LDAP](https://confluence.atlassian.com/confkb/confluence-does-not-complete-directory-synchronization-when-a-user-is-duplicated-in-multiple-ous-947185601.html)


Tags: confluence-server

server