{"id":2738,"date":"2019-10-23T11:08:49","date_gmt":"2019-10-23T03:08:49","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&#038;p=2738"},"modified":"2022-10-05T08:01:59","modified_gmt":"2022-10-05T00:01:59","slug":"527-railgun-listener-to-origin-error","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/527-railgun-listener-to-origin-error","title":{"rendered":"527 Railgun Listener to Origin Error"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2738\" class=\"elementor elementor-2738\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-45608314 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"45608314\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-25a2ab68\" data-id=\"25a2ab68\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-096d81a elementor-widget elementor-widget-heading\" data-id=\"096d81a\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">527 Railgun Listener to Origin<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-14d83c4c elementor-widget elementor-widget-text-editor\" data-id=\"14d83c4c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<article id=\"article-body\" class=\"article-body\">For requests being optimized by Railgun, any interruption or failure in the WAN connection from Railgun&#8217;s sender. At Cloudflare&#8217;s edge and the Railgun Listener at the customer&#8217;s. Origin will result in the following error page being displayed in the browser:<br \/><br \/><p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-2741\" src=\"https:\/\/www.mondoze.com\/guide\/wp-content\/uploads\/2021\/03\/ER1-300x273.png\" alt=\"\" width=\"300\" height=\"273\" \/><\/p><p>A 527 error indicates that the connection between Cloudflare and the origin&#8217;s Railgun server (rg-listener) was interrupted. This could result from a firewall block or other network incident between rg-listener and Cloudflare. Such as packet loss on the line.<\/p><p>It may be required to\u00a0increase logging for Railgun\u00a0in order to troubleshoot further, and see what rg-listener is reporting.<\/p><p>Below are details on common scenarios where a 527 error would be presented to a user, and the associated.\u00a0 Railgun error that would be found in the local Railgun logs.<\/p><h3><strong>Common Railgun Log Errors<\/strong><\/h3><h4><strong>Connection Timeouts<\/strong><\/h4><p>If the Railgun Listener is unable to establish or complete a TCP handshake with the origin server. Then the following errors would be produced within the Railgun logs for requests:<\/p><p>connection failed 0.0.0.0:443\/example.com: dial tcp 0.0.0.0:443: i\/o timeout<\/p><p>no response from origin (timeout) 0.0.0.0:80\/example.com<\/p><p>*What to do if connection timeouts are seen: If these errors are being seen. Then it is recommended to confirm and test if the server hosting the Listener is able to connect to the origin directly.<\/p><p>This can be done by using commands like\u00a0<code>cURL<\/code>,\u00a0<code>ping<\/code>,\u00a0<code>nc<\/code>, or running\u00a0<code>traceroute<\/code>\/<code>mtr<\/code>\u00a0against the web server&#8217;s source IP.<\/p><p>Some example commands would be:<\/p><p>curl -svo \/dev\/null &#8211;resolve example.com:PORT:SERVERIP &#8216;http[s]:\/\/example.com\/&#8217;<\/p><p>This cURL would need to be run on port 80 for HTTP and port 443 for HTTPS tests. Depending on the protocol used for the expected traffic.<\/p><h4><strong>ping SERVERIP<\/strong><\/h4><p>nc -vz SERVERIP PORT<\/p><p>Using\u00a0<code>ping<\/code>\u00a0or\u00a0<code>nc<\/code>\u00a0is helpful to confirm the web server&#8217;s ports are open and accepting traffic from the Listener.<\/p><p>This will help determine if the connection is being accepted from the site&#8217;s origin server. Or if an issue is present that is impacting the webserver from accepting requests.<\/p><p>If a problem at the webserver can be confirmed, then next steps would be to contact. The host provider to assist in resolving the issue local to the origin server.<\/p><h4><strong>LAN Timeout is Exceeded\u00a0<\/strong><\/h4><p>By default, the timeout limit for the origin server to send an HTTP response to the Listener is thirty seconds. This value is determined by the\u00a0<code>lan.timeout<\/code>\u00a0parameter found in the\u00a0<code>railgun.conf<\/code> file. If the origin server does not respond within the specified timeout limit. Then the following error would be seen in the Listener logs:<\/p><p>connection failed 0.0.0.0:443\/example.com: dial tcp 0.0.0.0:443: i\/o timeout<\/p><p>*What to do when the LAN timeout limit is exceeded:<\/p><p>It is advised to either increase the timeout limit. Or review the webserver configuration as to why the origin is taking a long time to respond to requests from the Listener. In most scenarios, it is also helpful to check the current load\/bandwidth received on the webserver to confirm. If the server is overloaded and unable to respond efficiently for requests.<\/p><h4><strong>Connection Refusals<\/strong><\/h4><p>If requests from the Railgun Listener are being outright refused, then the following errors would be seen in the Railgun logs:<\/p><p>Error getting page: dial tcp 0.0.0.0:80:connection refused<\/p><p>*What to do if requests are being refused:<\/p><p>If these errors are being observed, then next steps would be to ensure the Listener&#8217;s server IP is whitelisted from the origin server&#8217;s access control settings (such as\u00a0<code>IPtables<\/code>\u00a0or\u00a0<code>Fail2ban<\/code>\u00a0rules).<\/p><h4><strong>TLS\/SSL Related Errors<\/strong><\/h4><p>If TLS requests fail to complete or connect to the origin server from the Railgun Listener, then the following errors could be seen within the Railgun Logs:<\/p><p>0.0.0.0:443\/example.com: remote error : handshake failure<\/p><p>0.0.0.0:443\/example.com: dial tcp 0.0.0.0:443 : connection refused<\/p><p>127.0.0.1:443\/www.example.com: x509 : certificate is valid for example.com, not www.example.com<\/p><p>*How to doif HTTPS requests are failing:If any TLS\/SSL errors are being seen in the logs, then the following checks should be conducted on the origin server:<\/p><ul><li>Port 443 is open.<\/li><li>A certificate is present at the origin to serve HTTPS requests.<\/li><li>Confirm the SSL setting in your CF account is set to at least FULL or FULL (Strict) if the origin expects HTTPS traffic.<\/li><\/ul><p>If you are troubleshooting certificate validation errors, then you will want to confirm that the SSL certificate. Installed at the origin contains the requested hostname in the SAN\/common name and is a valid certificate (meaning it is not expired or self-signed). Otherwise, there is the option to disable <code>validate.cert<\/code>\u00a0within the\u00a0<code>railgun.conf<\/code>, which will stop Railgun from checking against the origin certificate.<\/p><h4><strong>Submitting a Support Ticket for 527 Errors<\/strong><\/h4><p>If a support ticket is to be filed in the event further assistance is needed, please submit the following pieces of information from the Railgun Listener. so that Cloudflare Support can troubleshoot further in reviewing the the Railgun configuration.<\/p><ul><li>The\u00a0<code>railgun.conf<\/code>\u00a0file.<\/li><li>If internal addressing is in use for the host environment, then the\u00a0<code>railgun-nat.conf<\/code>\u00a0file should be submitted in the ticket.<\/li><li>Any Railgun log files that detail the errors being seen from the Listener.<\/li><\/ul><\/article>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>527 Railgun Listener to Origin For requests being optimized by Railgun, any interruption or failure in the WAN connection from Railgun&#8217;s sender. At Cloudflare&#8217;s edge and the Railgun Listener at the customer&#8217;s. Origin will result in the following error page being displayed in the browser: A 527 error indicates that the connection between Cloudflare and &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.mondoze.com\/guide\/kb\/527-railgun-listener-to-origin-error\"> <span class=\"screen-reader-text\">527 Railgun Listener to Origin Error<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[53],"kbtag":[110],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2738"}],"collection":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/comments?post=2738"}],"version-history":[{"count":13,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2738\/revisions"}],"predecessor-version":[{"id":18305,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2738\/revisions\/18305"}],"wp:attachment":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/media?parent=2738"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=2738"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtag?post=2738"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=2738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}