Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_tcp_responsiveness causes [Warning] Aborted connection to db: 'unconnected' user: 'unauthenticated' (This connection closed normally without authentication) after MariaDB 10.4 upgrade #102

Closed
archon810 opened this issue Jan 23, 2020 · 11 comments · Fixed by #119
Assignees
Milestone

Comments

@archon810
Copy link

archon810 commented Jan 23, 2020

Hi,

MariaDB 10.4 produces a ton of these warnings

[Warning] Aborted connection 46 to db: 'unconnected' user: 'unauthenticated' host: 'XXXXXXXX' (This connection closed normally without authentication)
[Warning] Aborted connection 48 to db: 'unconnected' user: 'unauthenticated' host: 'XXXXXXXX' (This connection closed normally without authentication)
[Warning] Aborted connection 51 to db: 'unconnected' user: 'unauthenticated' host: 'XXXXXXXX' (This connection closed normally without authentication)
...

which were not present in 10.3 or 10.2, which I traced down to check_tcp_responsiveness being set to true and this line of code:

https://github.com/stuttter/ludicrousdb/blob/master/ludicrousdb/includes/class-ludicrousdb.php#L1797

We've had check_tcp_responsiveness enabled for years, and it sounds like a useful feature, so I'm kind of unsure what to do. But leaving the db logs flooded with these messages is not great either.

Any ideas on fixing or adapting to this behavior?

@archon810 archon810 changed the title check_tcp_responsiveness causes [Warning] Aborted connection to db: 'unconnected' user: 'unauthenticated' (This connection closed normally without authentication) after MariaDB 5.4 upgrade check_tcp_responsiveness causes [Warning] Aborted connection to db: 'unconnected' user: 'unauthenticated' (This connection closed normally without authentication) after MariaDB 10.4 upgrade Jan 23, 2020
@archon810
Copy link
Author

Any updates on this? Setting check_tcp_responsiveness to false fixes this flood, but I'm not sure if there are any negative side effects for when a host does go down (times out or refuses connection) vs having it enabled.

@JJJ
Copy link
Collaborator

JJJ commented Oct 26, 2020

Hi @archon810, thanks for reporting this, and sorry for the silence here.

Checking TCP responsiveness is, like you said, pretty useful to do. Generally, you should not need to disable it.

Strange that this is different between MariaDB versions for you. I haven't seen this yet myself. I'm up to:

Ver 15.1 Distrib 10.5.6-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

Do you know if you're using a persistent object cache? If not, then it's plausible that it isn't timing out correctly.

I also found these:
https://jira.mariadb.org/browse/MDEV-19469
https://mariadb.com/kb/en/cannot-connect-to-10411-from-localhost-windows/
...so it is also plausible it was a MariaDB bug, or related to MariaDB config.

@JJJ JJJ mentioned this issue Oct 26, 2020
@JJJ JJJ linked a pull request Oct 26, 2020 that will close this issue
@JJJ
Copy link
Collaborator

JJJ commented Oct 26, 2020

I've identified some improvements to the TCP responsiveness code, and put them together into a pull request for others to try. (I'm running it myself now, in production, over at https://jjj.blog.)

Keeping an eye on it!

@archon810
Copy link
Author

archon810 commented Dec 7, 2020

Any further updates please @JJJ @spacedmonkey?

@JJJ
Copy link
Collaborator

JJJ commented Dec 7, 2020

None from me, but I'm not seeing the errors that you are.

Were you able to try the linked PR, @archon810?

@archon810
Copy link
Author

I have not, we've been on 4.1 waiting to upgrade to 5.1 (and now I'm also seeing 4.2?).

@JJJ
Copy link
Collaborator

JJJ commented Dec 8, 2020

There were some issues with the 4.2.0 tag (my fault) that have been resolved. You may want to give it a try first. It is the latest stable version of the 4.x branch.

@archon810
Copy link
Author

archon810 commented Dec 8, 2020

Should I not aim to upgrade to the 5.X branch instead, at least when the fixes in this ticket and whatever else is pending are live?

@JJJ
Copy link
Collaborator

JJJ commented Dec 8, 2020

Oh, definitely. But there was a 5.0.0 release already, and you aren't using it yet, so I assumed you were on 4.x for some reason (I know some folks are.)

@archon810
Copy link
Author

Oh yeah, we're still on 4.1, as I mentioned above. I think we were waiting for 5.1 before upgrading to 5.X but I don't recall exactly all the reasons why anymore.

Perhaps it was this ticket (#102) as well as #94 and whatever it's referencing.

@subhamrenu
Copy link

once try with mysqladmin flush-hosts, Maybe due exceed of connections blocked from a particular host.

@JJJ JJJ added this to the 5.1.0 milestone Jun 19, 2024
@JJJ JJJ self-assigned this Jun 19, 2024
@JJJ JJJ closed this as completed in #119 Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants