Want to subscribe to topics you're interested in?
Become a Member

Connection timeout

Discussion in 'System Administration' started by Matt Williams, Jan 5, 2016.

  1. Matt Williams

    Matt Williams WordPress Fanatic

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    12:42 AM
    latest
    10
    I have been trying to dianose a connection timeout for about 3 hours. nginx, php-fpm, mysql all check out fine. No error messages in the error logs - the host VULTR says it's me - I say it's VULTR - It's a network timeout so I've been going back and forth with the blame game - Is there anything that I can look in regarding a connection time our error within nginx?

    When I get the timeout, I can't log into SFTP, SSH - I can only login voa their SSH control panel - I'm running WHMCS on this VM.

    It connects fine for about 20 minutes then it dies again. Been like this for about 3 to 4 hours now..

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,245
    12,253
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,833
    Local Time:
    2:42 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    time outs or connections refused ? could be CSF blocking Other Centmin Mod Installed software | Centmin Mod Community ?

    CSF firewall related CSF - CSF Firewall info

    more info might be helpful
    1. What version of Centmin Mod ? .08 stable or .09 beta ? If .09 beta when was it installed and when was last time you updated the code?
    2. What's your VPS/Server hardware specifications ? Xen/KVM/OpenVZ ? cpu type ? memory available ? disk space ? OS and version ? i.e. CentOS 6.7 or 7.2 ?
    3. Who's your web host ?
    4. Your ISP ip address static/dynamic ?
    5. What were you doing connection wise to your server leading up to the blockage ?
    6. If you're on dynamic ip, you may need additional steps CSF Firewall as per Getting Started Guide step 4
    7. Other steps: Does your web host offer out of band VNC/KVM/IPMI Console access? If you can, check if you ips are blocked using csf -g grep command
      Code:
      csf -g YOURIPADDRESS
      commands you can see for csf via
      Code:
      csf -h
      whitelist your ISP range of ips if you know the range
      Code:
      csf -a IPADDRESSORRANGE
      remove temp and permanent blocks from csf
      Code:
      csf -tr IPADDRESS
      csf -dr IPADDRESS
      also check CSF /var/log/lfd.log for clues
      Code:
      tail -50 /var/log/lfd.log
      another log is /var/log/messages you can grep it for your ips
      Code:
      grep IPADDRESS /var/log/messages
      and your /var/log/secure
      Code:
      tail -20 /var/log/secure