Discover Centmin Mod today
Register Now

Connection timeout

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

  1. Matt Williams

    Matt Williams WordPress Fanatic

    Nov 22, 2014
    Virginia, USA
    Local Time:
    8:54 PM
    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

    May 24, 2014
    Brisbane, Australia
    Local Time:
    11:54 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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
      csf -g YOURIPADDRESS
      commands you can see for csf via
      csf -h
      whitelist your ISP range of ips if you know the range
      remove temp and permanent blocks from csf
      csf -tr IPADDRESS
      csf -dr IPADDRESS
      also check CSF /var/log/lfd.log for clues
      tail -50 /var/log/lfd.log
      another log is /var/log/messages you can grep it for your ips
      grep IPADDRESS /var/log/messages
      and your /var/log/secure
      tail -20 /var/log/secure