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, 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
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.
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
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.
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:
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.
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.
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.