{"id":6838,"date":"2018-03-07T13:46:19","date_gmt":"2018-03-07T12:46:19","guid":{"rendered":"https:\/\/www.desertsun.co.uk\/blog\/?p=6838"},"modified":"2018-03-07T13:48:21","modified_gmt":"2018-03-07T12:48:21","slug":"technical-problem-found-and-eventually-solved","status":"publish","type":"post","link":"http:\/\/www.desertsun.co.uk\/blog\/6838\/","title":{"rendered":"Technical problem found and (eventually) solved"},"content":{"rendered":"<p>Last night my website went down for reasons unknown, and gave me a 500 Internal Error. So I got into a chat with Dreamhosts&#8217; customer service people, who <a href=\"https:\/\/www.desertsun.co.uk\/blog\/?p=6724&amp;cpage=1#comment-405222\" target=\"_blank\" rel=\"noopener\">haven&#8217;t been very helpful<\/a> in the past, and this is what happened:<\/p>\n<p><!--more--><\/p>\n<p>[10:22:33] Daniel: seems that your user &#8216;desertsun&#8217; is hitting our process watcher on the server pretty hard. The process watcher is in place to kill any process that runs to high as per the shared instance<br \/>\n[10:23:02] Tim: What would be causing that?<br \/>\n[10:23:14] Daniel: your domain user hit procwatch 3265 times today already which is very high<br \/>\n[10:23:26] Tim: as far as I know, I&#8217;ve only got a standard WordPress blog running<br \/>\n[10:23:40] Daniel: <em>[provides list of IP addresses hitting my site]<\/em><br \/>\n[10:24:03] Daniel: might be a factor ^ the first number is the amount of hits from the following IPs<br \/>\n[10:24:57] Tim: So if too many people visit my blog it gets shut down?!<br \/>\n[10:26:02] Daniel: negative that can be a factor of your spike in resource usage, those IPs are pretty heavy hitting, more than likely a bot . but it will stem down to your optimization for the site itself<br \/>\n[10:26:32] Tim: So how do I solve that? I&#8217;m not doing anything to attract the bots, it&#8217;s just a personal blog with a standard WordPress installation<br \/>\n[10:26:47] Daniel: I would recommend review these guide to look into your usage issue and follow the steps to correct <em>[provides links to various guides on how to sort your own problems out, all of which assumes you have IT skills which go beyond basic]<\/em><br \/>\n[10:27:55] Tim: Okay, look&#8230;I need a web host that can handle hosting a simple blog with 1k visitors per day without my having to teach myself web optimization<\/p>\n<p>The chat gets disconnected. After 10 mins, I get another guy.<\/p>\n<p>[10:49:21] Chris S: Okay so if the site is hitting procwatch, unfortunately some optimization of the site would need to be done. Traffic can be a factor but usually its also whats installed and running on the site. As for any IPs from bots that may be hitting the site too many times, they can be blocked via htaccess file.<br \/>\n[10:50:02] Tim: What&#8217;s installed is a standard WordPress install with a standard template.<br \/>\n[10:50:34] Tim: Is Dreamhost really incapable of handling this sort of install?<br \/>\n[10:51:04] Chris S: Thats not the issue<br \/>\n[10:51:18] Tim: then what is? I&#8217;m not an IT guy.<br \/>\n[10:51:20] Chris S: There is something running under your user desertsun that is hitting the limits of the shared service<br \/>\n[10:51:30] Tim: right, but what it is?<br \/>\n[10:51:35] Chris S: Could be a plugin, script, theme, etc<br \/>\n[10:51:49] Tim: And you can&#8217;t tell me? As I said, it&#8217;s a standard WordPress install. Nothing modified by me or anyone else. Some plugins, though.<br \/>\n[10:52:28] Chris S: Unfortunately the process only comes up as php56.cgi which doesn&#8217;t contain specific information<br \/>\n[10:52:48] Chris S: those type of processes are usually from plugins or theme or any scripts set to run on the server for the site<br \/>\n[10:52:56] Tim: So basically you cannot host my blog on a standard WordPress install, and you&#8217;ll shut it down and tell me to fix it myself?<br \/>\n[10:54:09] Chris S: We can host the site but if there are issues with your user hitting the limits on the shared server, that is up to you to correct. We don&#8217;t optimize site or manage them that is the responsibility of the website owner or whoever manages it<br \/>\n[10:54:56] Chris S: <em>[Provides <a href=\"http:\/\/dhurl.org\/2i2\" target=\"_blank\" rel=\"noopener\">link<\/a> to site which isn&#8217;t very helpful]<\/em><br \/>\n[10:55:12] Chris S: You can find more information regarding the procwatch service on shared at the link above.<br \/>\n[10:55:15] Tim: Yeah, I&#8217;m not an IT guy<br \/>\n[10:55:56] Tim: I&#8217;ve read the link. Sorry, but I&#8217;ve run this blog for years, never a problem until today. Now I hear I need to teach myself web optimisation. This standard of service is absolutely appalling<br \/>\n[10:58:06] Chris S: I do apologize but if the user is hitting limits on the server, optimization would be required and thats not something that we directly handle \ud83d\ude41<br \/>\n[10:58:33] Chris S: I&#8217;ve checked the logs and verified that the user is logging entries on the procwatch logs to confirm<br \/>\n[10:58:34] Tim: No, but you can&#8217;t even tell whether it is an optimisation problem.<br \/>\n[10:59:03] Tim: Which process is causing the problem? Which plugin? It&#8217;s a standard WordPress install!<br \/>\n[11:00:05] Tim: And my site has been down over an hour. How is it still hitting the limits?<br \/>\n[11:00:20] Chris S: Let me see what I can find for you<br \/>\n[11:00:22] Chris S: one moment please<br \/>\n[11:07:16] Chris S: I think its WordFence<br \/>\n[11:07:19] Chris S: Still checking<br \/>\n[11:07:32] Tim: okay. That got installed recently, so could be<br \/>\n[11:07:52] Tim: I was having a lot of brute-force attacks on my site<br \/>\n[11:07:55] Chris S: All the processes I&#8217;m seeing are coming from <em>[provides list of WordFence processes that are running wild]<\/em><br \/>\n[11:08:21] Tim: yes, that would be it I think<br \/>\n[11:08:34] Tim: does WordFence usually cause these problems?<br \/>\n[11:10:33] Chris S: I&#8217;ve seen it cause problems before not necessarily this.<br \/>\n[11:10:59] Tim: Yes, I think it was the live tracking feature of WordFence<\/p>\n<p>And it was. Last week I got a load of warnings of a brute force attack on my site&#8217;s login, so I installed the WordFence plugin. Unbeknownst to me it runs a live IP tracker of everything accessing the site, so when a bunch of MSN bots (!) started pinging me incessantly, it used up all the memory on the (shared) server. I disabled the plugin and everything returned to normal. Had I not persisted with the customer service guy, I&#8217;d have been fobbed off with a load of links telling me to optimise my site, which would have done nothing to solve the problem.<\/p>\n<p>Of course, when similar problems have arisen in the past they&#8217;ve been quick to try to flog me a VPS or some other upgrade, so perhaps they&#8217;re being unhelpful on purpose?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last night my website went down for reasons unknown, and gave me a 500 Internal Error. So I got into a chat with Dreamhosts&#8217; customer service people, who haven&#8217;t been very helpful in the past, and this is what happened:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,105],"tags":[],"_links":{"self":[{"href":"http:\/\/www.desertsun.co.uk\/blog\/wp-json\/wp\/v2\/posts\/6838"}],"collection":[{"href":"http:\/\/www.desertsun.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.desertsun.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.desertsun.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.desertsun.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=6838"}],"version-history":[{"count":2,"href":"http:\/\/www.desertsun.co.uk\/blog\/wp-json\/wp\/v2\/posts\/6838\/revisions"}],"predecessor-version":[{"id":6840,"href":"http:\/\/www.desertsun.co.uk\/blog\/wp-json\/wp\/v2\/posts\/6838\/revisions\/6840"}],"wp:attachment":[{"href":"http:\/\/www.desertsun.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=6838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.desertsun.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=6838"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.desertsun.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=6838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}