Constant Connection Timeouts 110 Ubuntu

I am experiencing numerous connection timeouts as of today.

I have one server running as connects to using fsockopen on port 3306 , to access some information from the mysql database.

Both websites are using Apache, and it is worth noting that I do NOT get timeouts when accessing from browser. My PHP settings for - the site that is timing out on remote connections via SSH and fsockopen - can be found at

I recently upgraded the server to a Intel 4gb 2cpu last weekend. The site was working fine up until today and nothing has since changed as far as I am aware.

  • When I login using PuTTY, I will get an error "network error: software caused connection abort, either after a few seconds regardless of whether the terminal is idle or not. I could be part way typing a command, it would freeze, and timeout.
  • I am using fsockopen on an external website, and occasionally this fails with Connection Timeout 110.
  • The SSH terminal runs sluggish.
  • When ping-ing the server from CMD on my local windows 10 machine, most pings work fine, but about 1 in 4 have 1 ping failure, reporting a timeout.

I have attempted to diagnose the problem in a number of ways.

  • I have “ufw allow” -ed my origin server IP which is connecting to the second server experiencing the timeouts.
  • I have disabled UFW altogether, ruling out UFW blocking my severs connections.
  • In my.cnf for mysql, I have increased the max packet size.

But even with the above, that shouldnt cause the sluggishness and timeouts when using the SSH?

Does any one have any recommendations as to what I can do about this?

Here’s some more information.

At 10:26, I triggered the timeout. But nothing in mysql error log for 10:26, only an earlier timeout:

2021-03-12T10:09:38.596997Z 420 [Note] Got timeout reading communication packets

There are a number of lines in UFW along the lines of the below (although not excessive, maybe a few per minute), but as I mentioned, disabling UFW has no effect and nothing about my live server IP / origin requesting server

Mar 12 10:27:37 test kernel: [ 1806.742533] [UFW BLOCK] IN=eth0 OUT= MAC=aa:70:04:4c:5a:d0:fe:00:00:00:01:01:08:00 SRC= DST= LEN=40 TOS=0x0$
Mar 12 10:27:38 test kernel: [ 1807.438358] [UFW BLOCK] IN=eth0 OUT= MAC=aa:70:04:4c:5a:d0:fe:00:00:00:01:01:08:00 SRC= DST= LEN=40 

Guessing no point checking apache logs as site accessible fine, just external connections.

I have a user set up on mysql for the remote site, and I am binding address etc in my.cnf. Like I said, everything fine until today.

Does anyone have any suggestions of what else to check, to help diagnose the issue?


Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

As far as I can see there has been a network maintenance today which could have possibly caused the timeouts that you’ve seen:

If your Droplet is not in that region, another thing that I could suggest is checking your server resources utilization either via your DigitalOcean control panel and checking the monitoring graphs there or via SSH and using the htop command for example. It is possible that the connection is timing out due to a very high load on the server.

Let me know how it goes.

Regards, Bobby