Unable to start Confluence after upgrading from 7.11.2 to 7.12.2
Asked by jprateragg:

We just upgraded from Confluence 7.11.2 to 7.12.2 on Windows. The upgrade was successful. However, after starting the service after the upgrade, the Confluence page would not note. In Chrome, it just spins and spins and spins.

We are using MySQL 5.7.33 with the mysql-connector-java-8.0.25.jar connector.

I am new to having to troubleshoot Confluence--it's just always worked for us.

I am honestly stumped and do not know where to begin. I appreciate the help. Thanks!

EDIT: If someone can tell me what logs to post (and where they are) I can do that. I don't see an "attach" option here so not sure how I would post these.

EDIT: I am getting these errors in the MySQL log only after I kill the Atlassian Confluence service. I have not changed anything in my.ini. Once I kill the Atlassian service, I get like 20 of these entries in the MySQL error log.

```
2021-06-07T20:27:01.543351Z 1404 [Note] Aborted connection 1404 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.555726Z 1171 [Note] Aborted connection 1171 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.560195Z 1405 [Note] Aborted connection 1405 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.560606Z 1399 [Note] Aborted connection 1399 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.561395Z 1394 [Note] Aborted connection 1394 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.561765Z 1389 [Note] Aborted connection 1389 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.561818Z 1400 [Note] Aborted connection 1400 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.563478Z 1397 [Note] Aborted connection 1397 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.565064Z 1406 [Note] Aborted connection 1406 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.565647Z 1407 [Note] Aborted connection 1407 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.565706Z 1402 [Note] Aborted connection 1402 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.565761Z 1401 [Note] Aborted connection 1401 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.565811Z 1391 [Note] Aborted connection 1391 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.565891Z 1395 [Note] Aborted connection 1395 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.566373Z 1398 [Note] Aborted connection 1398 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.566393Z 1403 [Note] Aborted connection 1403 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.569560Z 1393 [Note] Aborted connection 1393 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.570358Z 1392 [Note] Aborted connection 1392 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.570374Z 1396 [Note] Aborted connection 1396 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T20:27:01.570930Z 1390 [Note] Aborted connection 1390 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
```


Answers:
author: jprateragg
body: I was able to resolve this issue by upgrading MySQL from 5.7.33 to 5.7.34. I do not know what is different about these two versions--being as though it is a very minor upgrade. But it resolved my issue. Like I said before--I did not make any changes to MySQL when upgrading Confluence--I only upgraded Confluence. Don't know if this will help anyone else.

comments: author: Manoj Tumati
body: [@jprateragg](/t5/user/viewprofilepage/user-id/676227) I am getting same error , I am trying to upgrade Confluence from 6.11 to 7.13. You mentioned "resolve this issue by upgrading MySQL from 5.7.33 to 5.7.34", I didn't get this part. Can you please explain.

Your help is much appreciated.


author: jprateragg
body: Hey [@Manoj Tumati](/t5/user/viewprofilepage/user-id/2816862) -- So I was running a older version of MySQL, 5.7.33. Because I'm on Windows, I just launched the MySQL Community Installer and updated it to 5.7.34 just to see if it would make a difference. It did. I don't know why, but it just worked.


author: Manoj Tumati
body: [@jprateragg](/t5/user/viewprofilepage/user-id/676227) Thank you , I think I found the issue.

I am trying to install 7.13v on Oracle 12 release 1 which doesn't support.

I have to upgrade to lower confluence version to avoid this issue.


author: Niranjan
body: Hi [@jprateragg](/t5/user/viewprofilepage/user-id/676227) ,

There could be different reasons that can cause start up issues. Log files are vital to give suggestions. You may check for JVM max and min memory parameters and increase them if required.

<https://confluence.atlassian.com/confkb/how-to-fix-out-of-memory-errors-by-increasing-available-memory-154071.html>

Also check if you can see any db related errors in the logs.

comments: author: jprateragg
body: I am getting this in the confluencexxx-stderr.2021-06-07.log:

```
2021-06-07 15:46:17 Apache Commons Daemon procrun stderr initialized.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.atlassian.hibernate.adapter.proxy.BytecodeProviderImpl_ImplementV2Proxy (file:/C:/Program%20Files/Atlassian/Confluence/confluence/WEB-INF/lib/hibernate.adapter-1.0.3.jar) to field java.lang.reflect.Field.modifiers
WARNING: Please consider reporting this to the maintainers of com.atlassian.hibernate.adapter.proxy.BytecodeProviderImpl_ImplementV2Proxy
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[debug] to [0]
07-Jun-2021 15:46:17.796 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Engine/Host/Context] failed to set property [debug] to [0]
07-Jun-2021 15:46:17.832 WARNING [main] org.apache.catalina.core.StandardContext.setPath A context path must either be an empty string or start with a '/' and do not end with a '/'. The path [${confluence.context.path}/synchrony-proxy] does not meet these criteria and has been changed to [/${confluence.context.path}/synchrony-proxy]
07-Jun-2021 15:46:17.833 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Server/Service/Engine/Host/Context] failed to set property [debug] to [0]
07-Jun-2021 15:46:18.246 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8090"]
07-Jun-2021 15:46:18.354 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [869] milliseconds
07-Jun-2021 15:46:18.363 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat-Standalone]
07-Jun-2021 15:46:18.363 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.45]
log4j:ERROR Could not find value for key log4j.appender.luceneQuery
log4j:ERROR Could not instantiate appender named "luceneQuery".
07-Jun-2021 15:46:29.220 INFO [Catalina-utility-2] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
07-Jun-2021 15:46:30.037 INFO [Catalina-utility-2] org.apache.catalina.core.ApplicationContext.log 1 Spring WebApplicationInitializers detected on classpath
07-Jun-2021 15:46:33.098 WARNING [Catalina-utility-2] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [2,889] milliseconds.
07-Jun-2021 15:46:33.684 INFO [Catalina-utility-2] org.apache.catalina.core.ApplicationContext.log Initializing Spring DispatcherServlet 'dispatcher'
Security framework of XStream not explicitly initialized, using predefined black list on your own risk.
```


author: jprateragg
body: In my MySQL error log, I am getting these errors:

```
2021-06-07T19:46:12.875209Z 205 [Note] Aborted connection 205 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.879334Z 206 [Note] Aborted connection 206 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.892974Z 204 [Note] Aborted connection 204 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.893035Z 203 [Note] Aborted connection 203 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.893199Z 207 [Note] Aborted connection 207 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.893291Z 214 [Note] Aborted connection 214 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.893637Z 81 [Note] Aborted connection 81 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.893657Z 199 [Note] Aborted connection 199 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.893674Z 200 [Note] Aborted connection 200 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.893691Z 198 [Note] Aborted connection 198 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.898849Z 202 [Note] Aborted connection 202 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.898906Z 197 [Note] Aborted connection 197 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.898969Z 209 [Note] Aborted connection 209 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.899028Z 208 [Note] Aborted connection 208 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.902251Z 212 [Note] Aborted connection 212 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.902989Z 210 [Note] Aborted connection 210 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.903719Z 213 [Note] Aborted connection 213 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.904281Z 211 [Note] Aborted connection 211 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.904801Z 215 [Note] Aborted connection 215 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
2021-06-07T19:46:12.905724Z 201 [Note] Aborted connection 201 to db: 'confluence' user: 'confluenceuser' host: 'localhost' (Got an error reading communication packets)
```

We did not make any changes to MySQL when upgrading Confluence.

comments: author: Niranjan
body: OK, Seems to be mysql related. Check this <https://community.atlassian.com/t5/Jira-Software-questions/Connection-problem-with-MySQL-5-7-Got-an-error-reading/qaq-p/1399490>


author: jprateragg
body: I actually tried that and I'm still having the same issue.


Tags: confluence-server

server