Uptime Monitoring Server 500 error when I run updates

Hi, I seem to get an email for every site with Uptime Monitoring
Based on the HTTP response from your monitor, it appears that your child site is DOWN.
Status Code: 500 - Internal Server Error

These come through for all sites when I run updates from the dashboard.

Can you advise what I may have configured wrong please.

Thank you

Hey @ShortTech

If you are getting these emails only when you run updates, it’s possible they are being sent out because of this MainWP setting:

To understand exactly why the server goes down after performing updates, you would have to check the server or debug logs of those child sites.

If these errors are temporary, then the most likely cause is that the server resources were temporarily exhausted.

Thank you, yes I have that setting on. I will disable and see if the issues resolves. It did only happen when I did updates using MainWP and sites were never down so a false positive. Thanks again

1 Like

The sites don’t need to be really down, but if the update process encounters an error for a small part of it, there’s something wrong anyway and you should not see these signals as really downtime alerts. It does let you know to investigate the logs (both on dashboard as on child sites) to see what happened. Disabling the alerts only hides the alerts, but the problem would still exist and can have other less visible consequences.

2 Likes

Thanks for this… In fact I made the change Bojan suggested but have continued to receive notifications. Can you help direct me to how I investigate individual ones to help me figure out what’s wrong?
Is there a help article? I have looked about but nothing obvious leaping out at me.
Thank you

1 Like

As I said, you need to check the PHP error logs of both an affected child site and the dashboard site. If you don’t know where to find them, you can ask your web host.

Based on the found error we can help to investigate the error.

More (general) information about investigating 500 errors can be found via wordpress 500 internal server error debug - Google Suche

1 Like

Hey @ShortTech

If you are continuing to receive notifications, then they are likely coming from the Basic Uptime Monitoring feature of the MainWP Dashboard as opposed to the previous feature, which checks the site after an update.

Basic Uptime Monitoring can be disabled for a single site on the Edit page of a site:

Or for all sites in the MainWP Settings.

However, @josklever has a very good point.
I would again suggest looking at the error logs to identify the underlying cause of these 500 errors.

Since you observe that the site is actually not down, these 500 errors are just temporary and the website might be offline very briefly, but I think it’s something worth investigating further.

1 Like

When WordPress does an update, it puts the site into maintenance mode and locks it down while files are being removed/added/updated.
A normal person would see the “maintenance” message if they visit the site exactly at that time.
The uptime monitor is likely trying to communicate with the MainWP plugin or some API and perhaps it is still in a maintenance mode state, being perceived as an error 500.

To be fair, the maintenance mode does not create error 500 responses, but I wonder if the uptime monitor, via MainWP plugin or APIs or something, would simply fail and come across with error 500.

Probably the uptime monitor is checking too soon, or too frequently. If you had a 1 second check or even 5 second or 15 second, and MainWP is trying to run updates, it could check at the exact wrong time.

That’s just a big theory, I don’t know what a solution would be. Perhaps don’t check uptime before running updates, and resume checking a minute after updates are done. I don’t know if that can be configured though.

1 Like

Thanks for you response. I agree with your thoughts that this is likely, but surprised that not everyone has this issue…

I have Check site HTTP response after update to OFF
I have Basic Uptime monitoring set to Twice a Day

These emails come through as notifications to me immediately I set some updates to run from my MainWP dashboard.

When the previous people suggested checking the error logs. Is this in my hosting provider error logs or something in MainWP?

I’d appreciate any other help you can offer

Thanks

So these logs are not from MainWP but on the server (in your hosting account). You need to check the logs of both your dashboard as of your child sites.

As @josklever suggested, the logs would be on the server where the sites are hosted.

Those logs should reveal additional information as to why Error 500 is happening on the site.

It is, however, odd that you are still receiving these email notifications immediately. So please feel free to open a private Help Desk ticket so we can check that everything is configured properly on your Dashboard.

And please refer to this Managers thread by its URL in the ticket.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.