0
Welcome Guest! Login
0 items Join Now

SOLVED Gantry 5 + Hydrogen: 500 / 503 Errors

  • SOLVED Gantry 5 + Hydrogen: 500 / 503 Errors

    Posted 6 years 9 months ago
    • Hey guys,

      Hoping you can assist with a very strange error we're having with Gantry. Particularly strange since it seems intermittent and is 'fixed' by a restart of some server processes (and doesn't seem to be reported by other users). Also strange since attempts at isolation testing yield almost-but-not-exact results. Highly frustrating! :)

      Initial Scenario

      Deployed a new site a couple of months ago with the latest Joomla 3.x (think it was 3.4.3) at the time as well as most recent Gantry package and Hydrogen theme. While on our internal server (PHP: 5.4.34, MySQL 5.1.73-log, meets both Joomla and Gantry 5 requirements) everything worked fine.

      Once deployed onto our staging server (PHP: 5.5.29, MySQL 5.5.46-cll, meets both Joomla and Gantry 5 requirements), it immediately caused a "500 Internal Server" error message.

      500 / 503 Errors

      1) The front end of the site shows the 500 error.
      • Waiting a while (~5-10min) will sometimes allow the page to load again, but will show another 500 error once navigating to an internal page.
      2) Accessing Components -> Gantry 5 Themes (or the template through Template Manager):
      • Sometimes triggers the 500 error.
      • If it doesn't, sometimes going into a setting will cause a 503 Service Unavailable instead.

      Browser, Joomla Cache and Joomla Expired Caches have been cleared.

      The 'Fix'

      The only thing that seems to 'fix' the issue is when our systems administrator restarts the PHP handler PHP-FPM. Initially, this will fix (1), but not necessary (2) until PHP-FPM is restarted for a second time.

      No other sites on the server experience either the 503 or 500 error, only site(s) running Gantry 5.

      Repeating Triggers

      Once PHP-FPM has been restarted twice, it seems that the site behaves normally until Gantry 5 / Hydrogen require updating. Once that happens (either through the web updater or via uploaded package/theme files), the scenario described above in (1) and (2) occurs again.

      Additional/Isolation Testing

      For further testing, I've created a copy of the client site referred to in "Initial Scenario" as well as a clean copy of our distro to see if something more can be found on our server environment. The strange part is each test case results in the 500/503, but then might/might not when the steps are immediately repeated.

      Client Site:
      • Moving a site from our local development server to our staging server that has Hydrogen as the active theme causes the 500 error to occur instantly.
      • Updating Gantry 5 & Hydrogen (web updater) triggers it. Occured 100% of the time when a new update is detected.
      • Updating Gantry 5 (manual upload/re-upload) when Hydrogen is the active theme seems to trigger it sometimes.
      • Updating Hydrogen (manual upload/re-upload) seems to trigger it sometimes.
      • Changing to another non-Gantry template allow the site to work, but changing back has the 500.

      Clean Testing Site:
      • Gantry 5 with Hydrogen = Same issues as described above in (1) and (2).
      • Gantry 5 with Kraken, Requiem & Hydrogen = Same issues as described above in (1) and (2).
      • Gantry 5 with Kraken = OK. Initial install and updates of either package or template.
      • Gantry 5 with Requiem = OK. Initial install and updates of either package or template.
      • Gantry 5 with both Kraken & Requiem = OK. Initial install and updates of either package or template.

      Something else strange is that when a 500 is caused within the testing site, the client site copy also experiences it (same server). Other sites on the same server are OK.

      Help?

      It seems that there's something specificly with Gantry 5 and Hydrogen that causes this issue on our staging/production server environment, and whatever it is causes the error across all Gantry 5 sites when triggered. Other RT templates using Gantry 5 seem fine.
      • Do you know what may be different about the Hydrogen combo that could cause issues?
      • Any further settings to look at that might be causing this issue?

      Many thanks!
    • Precedence, Cairns' Local Website Developer - http://www.precedence.com.au
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 98528
    • Thanks: 13099
    • Web Designer/Developer

    Re: SOLVED Gantry 5 + Hydrogen: 500 / 503 Errors

    Posted 6 years 9 months ago
    • Please look in the apache error log and tell use the message associated with the server500. Make sure you have php opcache off too.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: SOLVED Gantry 5 + Hydrogen: 500 / 503 Errors

    Posted 6 years 9 months ago
    • Hi Mark,

      Thanks for your response. Apache error log:

      # Oct 23 07:33:20 cp13 httpd[678698]: [proxy_fcgi:error] [pid 678698] [client 0.0.0.0:54773] AH01067: Failed to read FastCGI header, referer: www.client-site.tld/any-page.html
      # Oct 23 07:33:20 cp13 httpd[678698]: [proxy_fcgi:error] [pid 678698] (104)Connection reset by peer: [client 0.0.0.0:54773] AH01075: Error dispatching request to : , referer: www.client-site.tld/any-page.html

      (I've hidden the IP and domain)

      Opcache is still on at the moment. I will report back once our systems administrator is available to disable this for further testing.

      Cheers,

      Joyce
    • Precedence, Cairns' Local Website Developer - http://www.precedence.com.au
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 98528
    • Thanks: 13099
    • Web Designer/Developer

    Re: SOLVED Gantry 5 + Hydrogen: 500 / 503 Errors

    Posted 6 years 9 months ago
    • Your gettings timeouts then - you need to discuss this with your host... http://serverfault.com/questions/500467/apache2-proxy-timeout

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
  • Re: SOLVED Gantry 5 + Hydrogen: 500 / 503 Errors

    Posted 6 years 8 months ago
    • Hi Mark,

      My apologies for the delay in response. Your previous suggestion didn't work for us as we don't use ProxyPassMatch, but we've found a different solution.

      At the time of our initial troubleshooting, were were in the process of setting up a new server so I opted to wait until that was up and running before testing further and reporting back to you with findings. The new server's configuration is very similar to the one that I initially reported earlier in this thread, but with the key difference being a different PHP handler.

      The site (and all test cases listed previously) work in this environment.

      So it looks like the end result of testing is, affecting Hydrogen Theme only:

      Old Server:

      - PHP-FPM, with opcache on = Errors.
      - PHP-FPM, with opcache off = OK.

      New Server:

      - PHP-LSPHP, with opcache on (or off) = OK.

      Thank you for your assistance.

      Cheers,

      Joyce
    • Last Edit: 6 years 8 months ago by RuttenTech.
    • Precedence, Cairns' Local Website Developer - http://www.precedence.com.au

Time to create page: 0.097 seconds