admin管理员组

文章数量:1410682

One of our sites keeps going offline and I'm running out of ideas. It's a wordpress site built with the Avada theme and it's goal is to server as a calendar of events using The Events Calendar plugin.

It runs on Ubuntu 16.04 with nginx hosted with Amazon. I've tried a lot of things to improve mysql performance as I think it is the heart of the issue but I cannot be sure. php_log is empty there is some things coming into debug.log however these mostly relate to the database being inaccessible.

The first day the issue appeared (Tuesday) I was able to continue getting into wordpress by restarting mysql from PuTTY. That does not seem to be working anymore. We thought it was due to the number of events in our database (6000+) so I purged everything from wp_posts table that was created prior to 2017.

We get brief moments where the site works, sometimes for up to an hour and then it is taken offline again. I have run linux malware detection on the server and it came up empty handed. I think the issue stems from a plugin most likely the-events-calendar as it is the biggest thing we use but I can't be sure.

Website URL: /

Edit: It is not a plugin as disabling did not fix the issue. Something is up with the database. nginx error and access logs had nothing substantial in them.

One of our sites keeps going offline and I'm running out of ideas. It's a wordpress site built with the Avada theme and it's goal is to server as a calendar of events using The Events Calendar plugin.

It runs on Ubuntu 16.04 with nginx hosted with Amazon. I've tried a lot of things to improve mysql performance as I think it is the heart of the issue but I cannot be sure. php_log is empty there is some things coming into debug.log however these mostly relate to the database being inaccessible.

The first day the issue appeared (Tuesday) I was able to continue getting into wordpress by restarting mysql from PuTTY. That does not seem to be working anymore. We thought it was due to the number of events in our database (6000+) so I purged everything from wp_posts table that was created prior to 2017.

We get brief moments where the site works, sometimes for up to an hour and then it is taken offline again. I have run linux malware detection on the server and it came up empty handed. I think the issue stems from a plugin most likely the-events-calendar as it is the biggest thing we use but I can't be sure.

Website URL: http://calendar.childmags.au/

Edit: It is not a plugin as disabling did not fix the issue. Something is up with the database. nginx error and access logs had nothing substantial in them.

Share Improve this question edited Feb 9, 2017 at 5:22 benikens asked Feb 9, 2017 at 0:54 benikensbenikens 1411 gold badge1 silver badge5 bronze badges 1
  • downvoted as there is no way anyone might have an answer which is not a pure guess. Most likely your server do no have enough memory, but it might be also a badly configure webserver – Mark Kaplun Commented Feb 13, 2018 at 11:32
Add a comment  | 

2 Answers 2

Reset to default 0

If you think a plugin is causing the problem, disable all plugins by renaming the wp-content/plugins folder. Then put the plugins (in the subfolders of wp-content/plugins) back into a new wp-content/plugins folder.

Do a couple/three at a time to see if you can find a bad plugin.

You might also reload WP 4.7.2 via the sites Updates page (even if you are already at 4.7.2). If you were not at 4.7.2 (insert standard 'do your updates!' advice here), then you have some additional work....get up to 4.7.2 first, then ensure all plugins are current.

5xx errors are often server-based, not WP-based (although could be SQL problems), so talk to your host and ask if they are noticing SQL problems on your (possible shared) server.

Updates are important....there are tons of WP sites that are getting hacked via the RESTFUL problem fixed by 4.7.2.

In WordPress specifically, 504: Gateway Timeout messages are sometimes due to corrupted databases. Install plugin such as WP-DBManager and then try the "Repair DB" feature, followed by "Optimize DB" and see if that helps.

php_log is empty because more often than not that 502 and 504 are caused between servers than by the application, nginx error log or access log, or database log might provided more clue than php_log. Restart all your servers and devices, check your proxy setting (I noticed your server is using CloudFlare as cacheing), and also try to change your DNS to see if it is help. Also try curl -I internalIP to see what you would get compare to `curl -I calendar.childmags.au'. Based on limited information that you provided, this is what I could think of.

本文标签: plugins504502 errors plauging our site