{"id":1578,"date":"2020-06-07T22:14:46","date_gmt":"2020-06-07T14:14:46","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=1578"},"modified":"2026-01-12T13:58:54","modified_gmt":"2026-01-12T05:58:54","slug":"527-railgun-listener-to-origin-error","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/527-railgun-listener-to-origin-error","title":{"rendered":"527 Railgun Listener to Origin Error"},"content":{"rendered":"<h3><strong>527 Railgun Listener to Origin Error<\/strong><\/h3>\n<p>For requests being optimized by Railgun, any interruption or failure in the WAN connection from Railgun\u2019s sender. At Cloudflare\u2019s edge and the Railgun Listener at the customer\u2019s . Origin will result in the following error page being displayed in the browser:<\/p>\n<p>&nbsp;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/s3.amazonaws.com\/cdn.freshdesk.com\/data\/helpdesk\/attachments\/production\/14047643855\/original\/O2_SvCJOBSbNSRDlBzQGbYyqKDQ6OzOPIw.png?1557881868\" alt=\"527 Railgun Listener to Origin Error\" width=\"1240\" height=\"1129\" \/><\/p>\n<p>A 527 error indicates that the connection between Cloudflare and the origin\u2019s 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>\n<p>&nbsp;<\/p>\n<p>It may be required to\u00a0increase logging for Railgun\u00a0in order to troubleshoot further, and see what rg-listener is reporting.<\/p>\n<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>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h6 class=\"mkb-anchor__title\"><u>Common Railgun Log Errors<\/u><\/h6>\n<\/div>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h6 class=\"mkb-anchor__title\"><strong>Connection Timeouts<\/strong><\/h6>\n<\/div>\n<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>\n<p>connection failed 0.0.0.0:443\/example.com: dial tcp 0.0.0.0:443: i\/o timeout<\/p>\n<p>no response from origin (timeout) 0.0.0.0:80\/example.com<\/p>\n<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>\n<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\u2019s source IP.<\/p>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h6 class=\"mkb-anchor__title\">Some example commands would be:<\/h6>\n<\/div>\n<p>curl -svo \/dev\/null \u2013resolve example.com:PORT:SERVERIP \u2018http[s]:\/\/example.com\/\u2019<\/p>\n<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>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h6 class=\"mkb-anchor__title\">ping SERVERIP<\/h6>\n<\/div>\n<p>nc -vz SERVERIP PORT<\/p>\n<p>Using\u00a0<code>ping<\/code>\u00a0or\u00a0<code>nc<\/code>\u00a0is helpful to confirm the web server\u2019s ports are open and accepting traffic from the Listener.<\/p>\n<p>This will help determine if the connection is being accepted from the site\u2019s origin server. Or if an issue is present that is impacting the webserver from accepting requests.<\/p>\n<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>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h6 class=\"mkb-anchor__title\"><strong>LAN Timeout is Exceeded\u00a0<\/strong><\/h6>\n<\/div>\n<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>\u00a0file. If the origin server does not respond within the specified timeout limit. Then the following error would be seen in the Listener logs:<\/p>\n<p>connection failed 0.0.0.0:443\/example.com: dial tcp 0.0.0.0:443: i\/o timeout<\/p>\n<p>*What to do when the LAN timeout limit is exceeded:<\/p>\n<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>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h6 class=\"mkb-anchor__title\"><strong>\u00a0<\/strong><\/h6>\n<\/div>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h6 class=\"mkb-anchor__title\"><strong>Connection Refusals<\/strong><\/h6>\n<\/div>\n<p>If requests from the Railgun Listener are being outright refused, then the following errors would be seen in the Railgun logs:<\/p>\n<p>Error getting page: dial tcp 0.0.0.0:80:connection refused<\/p>\n<p>*What to do if requests are being refused:<\/p>\n<p>If these errors are being observed, then next steps would be to ensure the Listener\u2019s server IP is whitelisted from the origin server\u2019s access control settings (such as\u00a0<code>IPtables<\/code>\u00a0or\u00a0<code>Fail2ban<\/code>\u00a0rules).<\/p>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h6 class=\"mkb-anchor__title\"><strong>TLS\/SSL Related Errors<\/strong><\/h6>\n<\/div>\n<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>\n<p>0.0.0.0:443\/example.com: remote error : handshake failure<\/p>\n<p>0.0.0.0:443\/example.com: dial tcp 0.0.0.0:443 : connection refused<\/p>\n<p>127.0.0.1:443\/www.example.com: x509 : certificate is valid for example.com, not www.example.com<\/p>\n<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>\n<ul>\n<li>Port 443 is open.<\/li>\n<li>A certificate is present at the origin to serve HTTPS requests.<\/li>\n<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>\n<\/ul>\n<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\u00a0<code>validate.cert<\/code>\u00a0within the\u00a0<code>railgun.conf<\/code>, which will stop Railgun from checking against the origin certificate.<\/p>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h6 class=\"mkb-anchor__title\"><strong>\u00a0<\/strong><\/h6>\n<\/div>\n<div class=\"mkb-anchor mkb-clearfix mkb-back-to-top-inline\">\n<h6 class=\"mkb-anchor__title\"><strong>Submitting a Support Ticket for 527 Errors<\/strong><\/h6>\n<\/div>\n<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 <a href=\"https:\/\/www.cloudflare.com\/\" rel=\"nofollow noopener\" target=\"_blank\">Cloudflare<\/a> Support can troubleshoot further in reviewing the the Railgun configuration.<\/p>\n<ul>\n<li>The\u00a0<code>railgun.conf<\/code>\u00a0file.<\/li>\n<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>\n<li>Any Railgun log files that detail the errors being seen from the Listener.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>527 Railgun Listener to Origin Error For requests being optimized by Railgun, any interruption or failure in the WAN connection from Railgun\u2019s sender. At Cloudflare\u2019s edge and the Railgun Listener at the customer\u2019s . Origin will result in the following error page being displayed in the browser: &nbsp; A 527 error indicates that the connection between Cloudflare and the origin\u2019s&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[43],"kbtag":[1425,1424],"class_list":["post-1578","kb","type-kb","status-publish","hentry","kbtopic-cloudflare","kbtag-527-railgun-listener","kbtag-error"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=1578"}],"version-history":[{"count":4,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1578\/revisions"}],"predecessor-version":[{"id":6025,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1578\/revisions\/6025"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=1578"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=1578"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=1578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}