Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Host is blocked because of many connection errors #1818

Closed
anonymous-piwik-user opened this Issue · 7 comments

3 participants

@anonymous-piwik-user

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?

@anonymous-piwik-user

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
Collaborator

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-piwik-user

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
Collaborator

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-piwik-user

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-piwik-user

I take my statement back.

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

@anonymous-piwik-user anonymous-piwik-user added this to the Piwik 1.1 milestone
@mattab mattab added the R: worksforme label
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.