0

My server stops taking requests on my website today. It works for some time, but then the server just stops working and throws several errors:

500 Internal Server Error

Warning: mysql_connect(): Can't create TCP/IP socket (105) in [...] on line 7 Couldn't connect to database. Please try again.

mysql_connect(): Host [...] is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'

mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper (this is from Error Log)

Any ideas what might cause it? operating system is Ubuntu

3
  • What do the mysql logs say is causing the connection errors?
    – user143703
    Nov 12, 2013 at 20:29
  • I don't have access to the mysql log (thanks to my hosting company) Nov 12, 2013 at 20:33
  • I'd contact them and ask for it then. Anything else and you're trying to fix a symptom, not the problem.
    – user143703
    Nov 12, 2013 at 20:34

1 Answer 1

1

Someone or something is failing to connect to the mysql server from your host. When the number of errors reaches the max_connect_errors parameter configured on mysql, it stops accepting connections from your host.

Too many possible scenarios... we go from wrong credentials somewhere in your code to some sort of hacking attempt.

I suggest to analize your access_log and dump the traffic to the database in order to identify the source of the failing connections.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .