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

Host is blocked because of many connection errors #1818

Closed
anonymous-matomo-user opened this issue Nov 15, 2010 · 7 comments
Closed

Host is blocked because of many connection errors #1818

anonymous-matomo-user opened this issue Nov 15, 2010 · 7 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@anonymous-matomo-user
Copy link

Hi Piwik experts,

I'm getting

SQLSTATE[HY000] Host 'x.x.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

after leaving the admin user logged in for a few hours. Only the admin is in the database, and Piwik is monitoring 1 site.

I'm testing the 1.0 install, enabled GeoIP, and enabled most of the plugins.

How can I check what is wrong with the application?

@robocoder
Copy link
Contributor

@anonymous-matomo-user
Copy link
Author

Hi vipsoft

I agree one solution is to increase the value in MySQL. However, it seems that if there are connection errors (not running out of connections), then we should fix the problem, instead of increasing the value.

FYI, I tried to simulate it again, it occurred again even though NO ONE is logged in.

Should I reopen this issue?

@robocoder
Copy link
Contributor

You probably don't have privileges to re-open this ticket. I understand these are connection errors, but I don't currently believe this is within our scope of support, but I'll help you diagnose this as best I can.

Execute "show global status like '%abort%';".

@anonymous-matomo-user
Copy link
Author

The return result is :

mysql> show global status like '%abort%';
+------------------+-------+
| Variable_name | Value |
+------------------+-------+
| Aborted_clients | 2 |
| Aborted_connects | 581 |
+------------------+-------+
2 rows in set (0.00 sec)

@robocoder
Copy link
Contributor

I think the MySQL page is incomplete.

The MySQL server increments Aborted_clients when:

  • The client program did not call mysql_close() before exiting.
  • The client had been sleeping more than wait_timeout or interactive_timeout second without issuing any requests to the server.
  • The client program ended abruptly in the middle of a data transfer.

The MySQL server increments Aborted_connects when:

  • A client doesn't have privileges to connect to a database.
  • A client uses an incorrect password.
  • A connection packet doesn't contain the right information.
  • It takes more than connect_timeout seconds to get a connect packet.

@anonymous-matomo-user
Copy link
Author

Sorry. I don't understand what you mean by 'I think the MySQL page is incomplete.'

Do you mean the info I provide is incomplete, or the documentation is incomplete?

Either way, I believe somethin on the Piwik side is triggering this problem. All my other web apps currently using MySQL does not trigger this issue.

How should I go about debugging Piwik?

@anonymous-matomo-user
Copy link
Author

I take my statement back.

I found something fishy in the server hosting Piwik, and am looking into it now. Thanks alot!

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.1 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants