Learn about Centmin Mod LEMP Stack today
Become a Member

Wordpress timeout

Discussion in 'Blogs & CMS usage' started by ahmed, Jan 10, 2021.

  1. ahmed

    ahmed Active Member

    360
    48
    28
    Feb 21, 2017
    Ratings:
    +62
    Local Time:
    3:11 PM
    Hello

    Im on cloudflare and all my websites are showing timeout every now and then

    this is something new...and is happening on the WordPress websites all.

    where to start to debug?

    thx
     
  2. eva2000

    eva2000 Administrator Staff Member

    46,451
    10,554
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,383
    Local Time:
    11:11 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  3. ahmed

    ahmed Active Member

    360
    48
    28
    Feb 21, 2017
    Ratings:
    +62
    Local Time:
    3:11 PM
    Yes...there was issues on the VPS (some updates needed) and it was solved yester day, and came back today again
     
  4. eva2000

    eva2000 Administrator Staff Member

    46,451
    10,554
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,383
    Local Time:
    11:11 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    You mean timeout came back? What error code?
     
  5. ahmed

    ahmed Active Member

    360
    48
    28
    Feb 21, 2017
    Ratings:
    +62
    Local Time:
    3:11 PM
    Yes the website take long time to load then the timeout cloudflare error appears
     
  6. brijendrasial

    brijendrasial Active Member

    133
    97
    28
    Mar 21, 2018
    Ratings:
    +153
    Local Time:
    6:41 PM
    1.13.9
    10.0.22-MariaDB
    rename plugins folder to plugins.old and then check if same thing happens. This way you can troubleshoot.
     
  7. eva2000

    eva2000 Administrator Staff Member

    46,451
    10,554
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,383
    Local Time:
    11:11 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Unfortunately, there are many reasons why this is happening including issues with your Wordpress site itself. First thing to do is ensure CSF Firewall, nginx and php-fpm and mariadb services are working
    Code (Text):
    systemctl status csf | sed -e "s|$(hostname)|hostname|g"
    systemctl status lfd | sed -e "s|$(hostname)|hostname|g"
    systemctl status nginx | sed -e "s|$(hostname)|hostname|g"
    systemctl status php-fpm | sed -e "s|$(hostname)|hostname|g"
    systemctl status mariadb | sed -e "s|$(hostname)|hostname|g"
    

    For each of the above service status check commands, copy and paste their output. For posting code or output from commands to keep the formatting, you might want to use CODE tags for code How to use forum BBCODE code tags :)

    If all services are running, then more onto Wordpress site itself troubleshooting. You can setup your own local PC to override Cloudflare DNS by pointing your local PC's DNS for Wordpress site domain to the real server IP so that accessing Wordpress site hits your real IP and bypasses Cloudflare to see what errors are shown behind Cloudflare.

    If you want to view your Wordpress domain on it's real server IP without updating DNS, on Windows PC edit your windows HOSTS file at c:\Windows\System32\Drivers\etc\hosts (see guide at https://www.groovypost.com/howto/edit-hosts-file-windows-10/ or install Hostman app HostsMan which can manage the file too and allows easy dns flushing when you make changes to the hosts file.

    c:\Windows\System32\Drivers\etc\hosts contents to preview without DNS update
    Code:
    centminmodserver-ip-address domain.com
    to disable preview comment it out and flush dns for your system
    Code:
    #centminmodserver-ip-address domain.com
    Hostsman app to flush dns and edit the c:\Windows\System32\Drivers\etc\hosts file

    And for MacOS users there's How to edit your Mac's Hosts file and why you would want to
     
  8. ahmed

    ahmed Active Member

    360
    48
    28
    Feb 21, 2017
    Ratings:
    +62
    Local Time:
    3:11 PM
    Code:
     csf.service - ConfigServer Firewall & Security - csf
       Loaded: loaded (/usr/lib/systemd/system/csf.service; enabled; vendor preset: disabled)
       Active: active (exited) since Wed 2021-01-13 13:00:39 UTC; 6h ago
      Process: 781 ExecStart=/usr/sbin/csf --initup (code=exited, status=0/SUCCESS)
     Main PID: 781 (code=exited, status=0/SUCCESS)
       CGroup: /system.slice/csf.service
    Jan 13 13:00:31 hostname systemd[1]: Starting ConfigServer Firewall & Security - csf...
    Jan 13 13:00:39 hostname csf[781]: (restoring ipsets) (restoring iptables) (restoring ip6tables)
    Jan 13 13:00:39 hostname systemd[1]: Started ConfigServer Firewall & Security - csf.
    Code:
    ● lfd.service - ConfigServer Firewall & Security - lfd
       Loaded: loaded (/usr/lib/systemd/system/lfd.service; enabled; vendor preset: disabled)
       Active: active (running) since Wed 2021-01-13 13:00:40 UTC; 6h ago
      Process: 1281 ExecStart=/usr/sbin/lfd (code=exited, status=0/SUCCESS)
     Main PID: 1294 (lfd - sleeping)
       CGroup: /system.slice/lfd.service
               └─1294 lfd - sleepin
    Jan 13 13:00:39 hostname systemd[1]: Starting ConfigServer Firewall & Security - lfd...
    Jan 13 13:00:40 hostname systemd[1]: Started ConfigServer Firewall & Security - lfd.
    Code:
    [19:54][root@centos-7-1 feedback]# systemctl status nginx | sed -e "s|$(hostname)|hostname|g"
    ● nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
       Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
       Active: active (running) since Wed 2021-01-13 13:00:44 UTC; 6h ago
         Docs: man:systemd-sysv-generator(8)
      Process: 4453 ExecReload=/etc/rc.d/init.d/nginx reload (code=exited, status=0/SUCCESS)
      Process: 1302 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=0/SUCCESS)
     Main PID: 1476 (nginx)
       CGroup: /system.slice/nginx.service
               ├─1476 nginx: master process /usr/local/sbin/nginx -c /usr/local/nginx/conf/nginx.con
               └─4480 nginx: worker process
    Jan 13 16:04:17 hostname systemd[1]: Reloading SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Jan 13 16:04:17 hostname nginx[4246]: nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    Jan 13 16:04:17 hostname nginx[4246]: nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    Jan 13 16:04:17 hostname nginx[4246]: Reloading nginx: [  OK  ]
    Jan 13 16:04:17 hostname systemd[1]: Reloaded SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Jan 13 16:13:21 hostname systemd[1]: Reloading SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Jan 13 16:13:21 hostname nginx[4453]: nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    Jan 13 16:13:21 hostname nginx[4453]: nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    Jan 13 16:13:21 hostname nginx[4453]: Reloading nginx: [  OK  ]
    Jan 13 16:13:21 hostname systemd[1]: Reloaded SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    [19:54][root@centos-7-1 feedback]#

    Code:
    php-fpm.service - PHP FastCGI Process Manager
       Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled; vendor preset: disabled)
      Drop-In: /etc/systemd/system/php-fpm.service.d
               └─limit.conf
       Active: active (running) since Wed 2021-01-13 13:00:42 UTC; 6h ago
     Main PID: 1475 (php-fpm)
       Status: "Processes active: 1, idle: 0, Requests: 3993, slow: 0, Traffic: 0.4req/sec"
       CGroup: /system.slice/php-fpm.service
               ├─1475 php-fpm: master process (/usr/local/etc/php-fpm.conf)
               └─7943 php-fpm: pool www
    Jan 13 13:00:31 hostname systemd[1]: Starting PHP FastCGI Process Manager...
    Jan 13 13:00:42 hostname systemd[1]: php-fpm.service: Supervising process 1475 which is not our child. We'll most likely not notice when it exits.
    Jan 13 13:00:42 hostname systemd[1]: Started PHP FastCGI Process Manager.

    Code:
    mariadb.service - MariaDB 10.3.27 database server
       Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
      Drop-In: /etc/systemd/system/mariadb.service.d
               └─migrated-from-my.cnf-settings.conf, openfileslimit.conf, protecthome.conf
       Active: active (running) since Wed 2021-01-13 13:01:21 UTC; 6h ago
         Docs: man:mysqld(8)
               https://mariadb.com/kb/en/library/systemd/
      Process: 1514 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
      Process: 788 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl set-environment _WSR
    EP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)
      Process: 775 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
     Main PID: 1105 (mysqld)
       Status: "Taking your SQL requests now..."
       CGroup: /system.slice/mariadb.service
               └─1105 /usr/sbin/mysqld
    Jan 13 13:01:20 hostname mysqld[1105]: 2021-01-13 13:01:20 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
    Jan 13 13:01:20 hostname mysqld[1105]: 2021-01-13 13:01:20 0 [Note] InnoDB: Waiting for purge to start
    Jan 13 13:01:20 hostname mysqld[1105]: 2021-01-13 13:01:20 0 [Note] InnoDB: 10.3.27 started; log sequence number 192319850288; transaction id 43921760
    Jan 13 13:01:20 hostname mysqld[1105]: 2021-01-13 13:01:20 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
    Jan 13 13:01:20 hostname mysqld[1105]: 2021-01-13 13:01:20 0 [Note] Plugin 'FEEDBACK' is disabled.
    Jan 13 13:01:20 hostname mysqld[1105]: 2021-01-13 13:01:20 0 [Note] Server socket created on IP: '::'.
    Jan 13 13:01:21 hostname mysqld[1105]: 2021-01-13 13:01:21 0 [Note] /usr/sbin/mysqld: ready for connections.
    Jan 13 13:01:21 hostname mysqld[1105]: Version: '10.3.27-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server
    Jan 13 13:01:21 hostname systemd[1]: Started MariaDB 10.3.27 database server.
    Jan 13 13:01:24 hostname mysqld[1105]: 2021-01-13 13:01:24 0 [Note] InnoDB: Buffer pool(s) load completed at 210113 13:01:24
     
  9. ahmed

    ahmed Active Member

    360
    48
    28
    Feb 21, 2017
    Ratings:
    +62
    Local Time:
    3:11 PM
    Thanks for your help, now I notice when I reboot the server the problem solves by its own,...nprestart doesn't solve it, reboot does
     
  10. ahmed

    ahmed Active Member

    360
    48
    28
    Feb 21, 2017
    Ratings:
    +62
    Local Time:
    3:11 PM
    Code:
    : cURL error 28: Operation timed out after 10001 milliseconds with 0 out of -1 bytes received (http_request_failed)
    
    
    but i notice this error on wordpress chk
     
  11. eva2000

    eva2000 Administrator Staff Member

    46,451
    10,554
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,383
    Local Time:
    11:11 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Probably need to hire someone to investigate.

    what's output for
    Code (Text):
    cat /etc/resolv.conf
     
  12. ahmed

    ahmed Active Member

    360
    48
    28
    Feb 21, 2017
    Ratings:
    +62
    Local Time:
    3:11 PM
    Code:
    # Generated by NetworkManager
    search c.skilled-*****-165023.internal google.internal
    nameserver 169.254.***.***
    this is the output