# Getting lot of communication link failure errors in mariadb galera cluster after migration from centos7 to rocky linux9

**URL:** <https://forums.rockylinux.org/t/getting-lot-of-communication-link-failure-errors-in-mariadb-galera-cluster-after-migration-from-centos7-to-rocky-linux9/14688>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [June 18, 2024, 8:02am UTC](https://forums.rockylinux.org/t/getting-lot-of-communication-link-failure-errors-in-mariadb-galera-cluster-after-migration-from-centos7-to-rocky-linux9/14688 "2024-06-18T08:02:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![techgeek93](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@techgeek93](https://forums.rockylinux.org/u/techgeek93)\
**Post date:** [June 18, 2024, 8:02am UTC](https://forums.rockylinux.org/t/getting-lot-of-communication-link-failure-errors-in-mariadb-galera-cluster-after-migration-from-centos7-to-rocky-linux9/14688/1 "2024-06-18T08:02:43Z")

</div>

We are getting lot of communication link failure errors in mariadb galera cluster from the application at random times after migrating from centos7 to rockylinux9.  
Mariadb version : 10.5.18  
Galera version: 26.4.13

Errors:  
Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure  
…  
Caused by: java.sql.SQLNonTransientConnectionException: Communications link failure during rollback(). Transaction resolution unknown.  
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)  
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)  
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)  
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)  
at com.mysql.cj.jdbc.ConnectionImpl.rollback(ConnectionImpl.java:1848)

This used to work fine in centos7 with no errors. Nothing in the application or database end has changes except the OS i.e. centos7 to rockylinux9

Any help here will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [June 18, 2024, 12:09pm UTC](https://forums.rockylinux.org/t/getting-lot-of-communication-link-failure-errors-in-mariadb-galera-cluster-after-migration-from-centos7-to-rocky-linux9/14688/2 "2024-06-18T12:09:22Z")

</div>

Migrations/upgrades from CentOS 7 are not supported. Suggest clean install Rocky 9, configure MariaDB galera and restore your databases.

Alternatively, check your MariaDB configuration and ask on the MariaDB forums since this is a MariaDB problem and not Rocky Linux. But since Rocky doesn’t support upgrades, our advice is as mentioned - clean install and restore your databases.

---

<div class="post-metadata">

**Author:** ![techgeek93](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@techgeek93](https://forums.rockylinux.org/u/techgeek93)\
**Post date:** [July 2, 2024, 1:56pm UTC](https://forums.rockylinux.org/t/getting-lot-of-communication-link-failure-errors-in-mariadb-galera-cluster-after-migration-from-centos7-to-rocky-linux9/14688/3 "2024-07-02T13:56:49Z")

</div>

Yes we did a clean install of rockylinux and restored the databases from mariabackup. The mariadb version, configurations and server settings everything is same between the two OS. But we are only seeing this issue on rocky linux when we reverted back to centOS we did not find the random communication link failure issues anymore.  
So, we are trying to find if anyone else has been facing this issue.

---

<div class="post-metadata">

**Author:** ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)\
**Post date:** [July 2, 2024, 2:27pm UTC](https://forums.rockylinux.org/t/getting-lot-of-communication-link-failure-errors-in-mariadb-galera-cluster-after-migration-from-centos7-to-rocky-linux9/14688/4 "2024-07-02T14:27:58Z")

</div>

And selinux is enabled? I would check to see if selinux is blocking anything. Also firewalld as well just in case port communication is blocked.

Also check: [Configuring Linux for MariaDB - MariaDB Knowledge Base](https://mariadb.com/kb/en/configuring-linux-for-mariadb/#configuring-the-open-files-limit) and run ulimit as the user MariaDB is running as to see if this is restricting.

If selinux isn’t blocking, and firewalld isn’t blocking port communication, then it would suggest MariaDB is the problem somewhere in it’s configuration.

---

<div class="post-metadata">

**Author:** ![DannyIrish](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/dannyirish/32/2466_2.png) [@DannyIrish](https://forums.rockylinux.org/u/DannyIrish)\
**Post date:** [July 11, 2024, 5:07pm UTC](https://forums.rockylinux.org/t/getting-lot-of-communication-link-failure-errors-in-mariadb-galera-cluster-after-migration-from-centos7-to-rocky-linux9/14688/5 "2024-07-11T17:07:46Z")

</div>

Probably not much help, as we don’t use Java, but we do have multiple MariaDB 10.11 and Galera 26.4.16 clusters, and none of them are seeing any sort of “communication link failure” issues with our various Splunk (actually Splunk uses Java come to think of it), Python, FreeRADIUS, and other apps. We _do_ however use ProxySQL 2.2.2 in front of all of our clusters, so maybe that’s the main difference? Are you using any sort of HA in front of the connectors?

---

<div class="post-metadata">

**Author:** ![techgeek93](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@techgeek93](https://forums.rockylinux.org/u/techgeek93)\
**Post date:** [August 9, 2024, 8:04am UTC](https://forums.rockylinux.org/t/getting-lot-of-communication-link-failure-errors-in-mariadb-galera-cluster-after-migration-from-centos7-to-rocky-linux9/14688/6 "2024-08-09T08:04:55Z")

</div>

Yes we are using the same AWS ELB that we used for the CentOS instances with MariaDB.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [October 8, 2024, 8:04am UTC](https://forums.rockylinux.org/t/getting-lot-of-communication-link-failure-errors-in-mariadb-galera-cluster-after-migration-from-centos7-to-rocky-linux9/14688/7 "2024-10-08T08:04:56Z")

</div>

Closed on October 8, 2024, 8:04am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
