• Resolved studio1337

    (@studio1337)


    Hi folks,

    We’re having issues with sites displaying intermittent 500 errors to users, and the set of circumstances surrounding these errors makes diagnosing them extremely frustrating. Replicating the issue requires no more than visiting a site, but it happens so infrequently, you might have to refresh 1,000+ times (not an exaggeration) to see it.

    1) Intermittent = one or two instances per day, with 99.9%+ traffic operating fine. Sometimes it’s happening once or twice a week – very hard to pin down.

    2) It happens on multiple hosts. We run our own servers, and we’ve received complaints for three sites we host. We’ve also received complaints for a site we manage but is hosted by a 3rd party. It’s not limited to our server configuration.

    3) It will fail in one browser, and immediately work fine in another a few seconds later. There is no browser pattern (it will fail for someone in Firefox and work fine in Safari, fail in Safari for someone else and work in Chrome, etc.).

    4) Nothing shows up in hosting account error logs, and nothing shows up in WP error logs with WP DEBUG enabled.

    5) The sites that have reported the issue receive anywhere from 100 to ~1,500 visitors per day – enough that over time the issue will appear – not enough to stress a server, particularly with caching in place. We limit servers to 50 accounts each, and they rarely surpass a load of 2.00 (typically run around 1.00 on 8 cores). Rarely is more than 1/2 of the server’s memory in use. IOW, the server is not choking on requests.

    6) All themes are custom-programmed. Each one is completely unique, built from the ground up. There isn’t a theme base that’s consistent between them, with the exception of some common functions used here and there on most sites we build. We never use deprecated functions, and all sites experiencing issues are less than 2 years old.

    7) Every site that’s reported an issue is running WP 4.8. We’ve held off on upgrading most accounts we manage to WP 4.8; we tend to leave a little lag time, typically a week or two, updating major and minor releases (4.x to 4.x – we allow micro-updates). We’ve only upgraded about a half-dozen sites, and only these have reported issues.

    8) Common plug-ins we’re using across all sites: iThemes Security Pro, BackupBuddy, iThemes Sync, Gravity Forms, WP Rocket, Yoast SEO and Advanced Custom Fields Pro. These are all very well established, mature products with strong support teams and histories of handling bug/fix releases very quickly. While a plug-in could be the problem, I can’t find a single relevant complaint among their support forums anywhere that matches our issue.

    9) We’ve tried recreating .htaccess files in case the issue is file corruption. This did not improve the situation.

    10) It may be happening to all of our sites, but traffic is low enough that it’s not happened yet, or is not being reported.

    Replicating the issue requires a steady volume of requests and anywhere from a day to a week to replicate. Creating a test account eliminates the traffic, and turning off plug-ins or switching themes for up to a week on a heavily trafficked site is not an option. This makes troubleshooting maddening.

    I’m hoping someone else has seen a similar issue and stumbled on a solution they might share, or can give me additional pointers for trying to troubleshoot or solve this issue. Any assistance would be most appreciated.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have Problem before Intermittent 500 Internal Error Messages, But I fixed this go to your webhosting control panel reissued your ssl certificate and go back to your wordpress go to setting permalinks save again.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    What’s in the system message log (/var/log/messages) on the servers? You might be hitting some resource limit from time to time.

    Thread Starter studio1337

    (@studio1337)

    Hi guys,

    Thank you very much for the suggestions. As Steve suggested, I needed to dig further into server logs to find the root cause. The fact that it was happening on another host’s servers at the same time (and it was the first time that client had an issue in almost 3 years) put me off the scent. Looks like a bad PHP rebuild while we were installing some new modules. We found PHP segfault errors around the same time of the most recent error sighting, and sure enough, it seems to happen once or twice per day.

    Thanks again for the help – we’re getting things sorted now ??

    Hi,

    I am having some hard times with some of my sites, error 502.
    When I rename iThemes security plugin site comes live without any issue.

    Issue comes only with Chrome. By Safari and Firefox it is ok.

    Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Intermittent 500 Internal Error Messages’ is closed to new replies.