Centralised logging with custom logs

Table of ContentsFile Read UDP Stream FormatYou may have some applications that you wish to be centrally logged (along with the MageStack core applications). You can send any type of file/stream to your central logging server using two methods. Be aware that sending Magento system/exception logs, whilst possible, isn't always desirable if you have any … Continue reading

Debugging with response headers

Table of ContentsEnabling Debug Mode Enabling Whitelist Debug Mode Headers MageStack-Debug MageStack-Area MageStack-Cache MageStack-Cacheable MageStack-Cache-Lifetime MageStack-Cache-Status MageStack-Web-Node MageStack-Tag MageStack-Spdy MageStack-Whitelist-Debug MageStack-Whitelisted-Http-Host MageStack-Whitelisted-Uri MageStack-Whitelisted-Ip MageStack-Whitelisted-Useragent MageStack-PageSpeedMageStack sets a number of different response headers to help you identify how a request is being treated. Those marked with a ¹ are only shown when debug mode is enabled … Continue reading

504 Gateway Timeout

Table of ContentsDefault timeouts Common issues Poorly written/slow PHP code Locked session Excessive traffic/high load Blocking requests Incorrectly tagged trafficThis is caused by the load balancer being unable to obtain a request from a web server in a reasonable amount of time. MageStack will interpret requests destined for the back-end (admin) or the front-end (customer) … Continue reading

The importance of monitoring 404 errors

Table of ContentsConfiguring a 404 error page for static content Configuring a 404 error page for dynamic content Finding 404 errors Via KibanaMunin will graph any virtualhost 404 errors, as well as the centralised logging - which is a very important tool for keeping up high performance on a Magento store. 404 errors on static … Continue reading

Troubleshooting HAProxy

If you see the following message We've detected too many requests coming from your IP address and as a result you have been temporarily blocked until your traffic subsides. Please try again within the next few minutes. It is likely you have triggered the DOS (denial of service) rule. This can happen if your multiple … Continue reading

Troubleshooting OpenVPN

If you cannot connect to the OpenVPN and are receiving the following error TLS Error: TLS key negotiation failed to occur within 60 seconds” Please see https://s.onas.si/ahvd for a resolution If you can connect but cannot ping any hosts on the internal network and are using Windows Vista or above, please disable IPv6 on the … Continue reading

Troubleshooting Varnish/HAProxy/Nginx

Table of ContentsTesting Nginx Testing HAProxy Testing VarnishGiven there are 3 reverse proxies, if one is causing an issue, finding the cause can sometimes be difficult. Testing Nginx This can be tested by overwriting the IP address for the domain in your hosts file to be 172.16.0.71 (regardless of the domain name) This will put … Continue reading