Support » Fixing WordPress » WordPress Down After Publishing Article

  • nusagates

    (@nusagates)


    Hi, everyone. Could anyone please help me.

    I got problem with my wordpress site. every time I publish an article, my wordpress site is down and cannot be accessed at all.

    I am using VPS with both CPU and RAM 8GB. OS Ubuntu 18.04. Server using nginx. I have around 10000 articles on the site.

    My site is nusagates.com

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    Please define “down”. What’s in your server logs? Are any processes crashing or core-dumping? MySQL? Nginx? php-fpm?

    • This reply was modified 2 months ago by  Steve Stern.
    nusagates

    (@nusagates)

    I dont know how the server log. But the error message i got is 500 or 504.

    I am using Mariadb latest version, php7.2-fpm. could you please suggest me what to do to know what the cause of error?

    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    I can’t teach you linux sysadmin here. If you don’t know where your log files are, please check your config files and operating system documentation.

    Does anything appear in /var/log/messages when things crash? Anything in the php-fpm logs?

    What do you have to do to get things working again?

    nusagates

    (@nusagates)

    I got this on nginx error log:

    2019/07/17 23:21:05 [error] 21648#21648: *91 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 36.xxx.xx.254, server: nusagates.com, request: "POST /wp-admin/post.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock", host: "nusagates.com", referrer: "https://nusagates.com/wp-admin/post.php?post=xxxxx&action=edit&lang=id&classic-editor&classic-editor__forget"
    

    I have to run service php7.2-fpm restart to make site back to life.

    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    OK, so PHP is crashing. That’s a good clue. Now check /var/log/php-fpm/ and/or /var/log/php

    nusagates

    (@nusagates)

    I got this error from /var/log/php7.2-fpm.log

    [17-Jul-2019 22:53:22] WARNING: [pool www] child 12562 exited on signal 15 (SIGTERM) after 504.894319 seconds from start
    [17-Jul-2019 22:53:22] NOTICE: [pool www] child 14429 started
    [17-Jul-2019 22:53:22] WARNING: [pool www] child 12756 exited on signal 15 (SIGTERM) after 461.852559 seconds from start
    [17-Jul-2019 22:53:22] NOTICE: [pool www] child 14430 started
    [17-Jul-2019 22:55:26] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 22:57:26] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 22:58:29] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:00:41] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:01:15] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:03:25] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:05:50] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:08:22] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:09:17] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:12:34] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:14:27] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:17:32] WARNING: [pool www] child 19294, script '/var/www/nusagates.com/wp-admin/post.php' (request: "POST /wp-admin/post.php") execution timed out (166.654762 sec), terminating
    [17-Jul-2019 23:17:32] WARNING: [pool www] child 18833, script '/var/www/nusagates.com/wp-admin/admin-ajax.php' (request: "POST /wp-admin/admin-ajax.php") execution timed out (163.741289 sec), terminating
    [17-Jul-2019 23:17:32] WARNING: [pool www] child 19294 exited on signal 15 (SIGTERM) after 199.182138 seconds from start
    [17-Jul-2019 23:17:32] NOTICE: [pool www] child 21058 started
    [17-Jul-2019 23:17:32] WARNING: [pool www] child 18833 exited on signal 15 (SIGTERM) after 299.285097 seconds from start
    [17-Jul-2019 23:17:32] NOTICE: [pool www] child 21059 started
    [17-Jul-2019 23:18:22] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:20:00] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:22:51] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:26:36] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:30:02] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:31:52] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:33:31] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:34:54] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:35:59] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:36:10] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:36:56] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:38:12] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:40:09] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:42:00] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:44:40] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    [17-Jul-2019 23:44:53] WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
    

    What is it means and what should i do? Is this couse my site got error 500 or 504?

    Moderator Steve Stern

    (@sterndata)

    Support Team Volunteer

    Add more children in the php-fpm config.

    -Jul-2019 23:18:22] WARNING: [pool www] server reached pm.max_children setting (5),
    consider raising it

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.