file_get_contents, get_headers, and curl have stopped working with error: Connection refused





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















At some point yesterday the functions: file_get_contents, get_headers, and curl have stopped working with error: Connection refused. Ex:



Curl: (7) Failed to connect to www.alebalweb.com port 443: Connection refused.


I do not understand why, I was just uploading files and no one touched anything on the server. Until a moment before everything worked and it worked for years.
With Curl, I do the cronjob of my site once a day, and never had any problems.
I thought the SSL certificates had expired, but it seems not. The site is online and it works, if I try to access the site via curl from my local PC, curl works smoothly. I thought I was banned at UFW or fail2ban for some reason, but I changed my local IP and nothing changed. And anyway I see a lot of errors in the Apache logs, from many different IPs.
The problem occurs on all sites on my server.



I really can't understand what could have happened, everything worked perfectly until yesterday afternoon.



The Server is Ubuntu 18.04 on vultr.



I also found some strange errors in syslog, probably related.



Apr  8 06:25:03 Vultr_LA_18 rsyslogd:  [origin software="rsyslogd" swVersion="8.32.0" x-pid="689" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Apr 8 06:25:07 Vultr_LA_18 popularity-contest: unable to submit report to https://popcon.ubuntu.com/popcon-submit.cgi.
Apr 8 06:25:07 Vultr_LA_18 popularity-contest: unable to submit report.


Apr 8 06:32:04 Vultr_LA_18 rsyslogd: unexpected GnuTLS error -53 - this could be caused by a broken connection. GnuTLS reports: Error in the push function. [v8.32.0$
Apr 8 06:32:04 Vultr_LA_18 rsyslogd: omfwd: TCPSendBuf error -2078, destruct TCP Connection to log.nixstats.com:10514 [v8.32.0 try http://www.rsyslog.com/e/2078 ]
Apr 8 06:32:04 Vultr_LA_18 rsyslogd: action 'action 1' suspended (module 'builtin:omfwd'), retry 0. There should be messages before this one giving the reason for sus$
Apr 8 06:32:04 Vultr_LA_18 rsyslogd: action 'action 1' resumed (module 'builtin:omfwd') [v8.32.0 try http://www.rsyslog.com/e/2359 ]

Apr 8 06:36:06 Vultr_LA_18 systemd-resolved[631]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced $









share|improve this question































    0















    At some point yesterday the functions: file_get_contents, get_headers, and curl have stopped working with error: Connection refused. Ex:



    Curl: (7) Failed to connect to www.alebalweb.com port 443: Connection refused.


    I do not understand why, I was just uploading files and no one touched anything on the server. Until a moment before everything worked and it worked for years.
    With Curl, I do the cronjob of my site once a day, and never had any problems.
    I thought the SSL certificates had expired, but it seems not. The site is online and it works, if I try to access the site via curl from my local PC, curl works smoothly. I thought I was banned at UFW or fail2ban for some reason, but I changed my local IP and nothing changed. And anyway I see a lot of errors in the Apache logs, from many different IPs.
    The problem occurs on all sites on my server.



    I really can't understand what could have happened, everything worked perfectly until yesterday afternoon.



    The Server is Ubuntu 18.04 on vultr.



    I also found some strange errors in syslog, probably related.



    Apr  8 06:25:03 Vultr_LA_18 rsyslogd:  [origin software="rsyslogd" swVersion="8.32.0" x-pid="689" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
    Apr 8 06:25:07 Vultr_LA_18 popularity-contest: unable to submit report to https://popcon.ubuntu.com/popcon-submit.cgi.
    Apr 8 06:25:07 Vultr_LA_18 popularity-contest: unable to submit report.


    Apr 8 06:32:04 Vultr_LA_18 rsyslogd: unexpected GnuTLS error -53 - this could be caused by a broken connection. GnuTLS reports: Error in the push function. [v8.32.0$
    Apr 8 06:32:04 Vultr_LA_18 rsyslogd: omfwd: TCPSendBuf error -2078, destruct TCP Connection to log.nixstats.com:10514 [v8.32.0 try http://www.rsyslog.com/e/2078 ]
    Apr 8 06:32:04 Vultr_LA_18 rsyslogd: action 'action 1' suspended (module 'builtin:omfwd'), retry 0. There should be messages before this one giving the reason for sus$
    Apr 8 06:32:04 Vultr_LA_18 rsyslogd: action 'action 1' resumed (module 'builtin:omfwd') [v8.32.0 try http://www.rsyslog.com/e/2359 ]

    Apr 8 06:36:06 Vultr_LA_18 systemd-resolved[631]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced $









    share|improve this question



























      0












      0








      0








      At some point yesterday the functions: file_get_contents, get_headers, and curl have stopped working with error: Connection refused. Ex:



      Curl: (7) Failed to connect to www.alebalweb.com port 443: Connection refused.


      I do not understand why, I was just uploading files and no one touched anything on the server. Until a moment before everything worked and it worked for years.
      With Curl, I do the cronjob of my site once a day, and never had any problems.
      I thought the SSL certificates had expired, but it seems not. The site is online and it works, if I try to access the site via curl from my local PC, curl works smoothly. I thought I was banned at UFW or fail2ban for some reason, but I changed my local IP and nothing changed. And anyway I see a lot of errors in the Apache logs, from many different IPs.
      The problem occurs on all sites on my server.



      I really can't understand what could have happened, everything worked perfectly until yesterday afternoon.



      The Server is Ubuntu 18.04 on vultr.



      I also found some strange errors in syslog, probably related.



      Apr  8 06:25:03 Vultr_LA_18 rsyslogd:  [origin software="rsyslogd" swVersion="8.32.0" x-pid="689" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
      Apr 8 06:25:07 Vultr_LA_18 popularity-contest: unable to submit report to https://popcon.ubuntu.com/popcon-submit.cgi.
      Apr 8 06:25:07 Vultr_LA_18 popularity-contest: unable to submit report.


      Apr 8 06:32:04 Vultr_LA_18 rsyslogd: unexpected GnuTLS error -53 - this could be caused by a broken connection. GnuTLS reports: Error in the push function. [v8.32.0$
      Apr 8 06:32:04 Vultr_LA_18 rsyslogd: omfwd: TCPSendBuf error -2078, destruct TCP Connection to log.nixstats.com:10514 [v8.32.0 try http://www.rsyslog.com/e/2078 ]
      Apr 8 06:32:04 Vultr_LA_18 rsyslogd: action 'action 1' suspended (module 'builtin:omfwd'), retry 0. There should be messages before this one giving the reason for sus$
      Apr 8 06:32:04 Vultr_LA_18 rsyslogd: action 'action 1' resumed (module 'builtin:omfwd') [v8.32.0 try http://www.rsyslog.com/e/2359 ]

      Apr 8 06:36:06 Vultr_LA_18 systemd-resolved[631]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced $









      share|improve this question
















      At some point yesterday the functions: file_get_contents, get_headers, and curl have stopped working with error: Connection refused. Ex:



      Curl: (7) Failed to connect to www.alebalweb.com port 443: Connection refused.


      I do not understand why, I was just uploading files and no one touched anything on the server. Until a moment before everything worked and it worked for years.
      With Curl, I do the cronjob of my site once a day, and never had any problems.
      I thought the SSL certificates had expired, but it seems not. The site is online and it works, if I try to access the site via curl from my local PC, curl works smoothly. I thought I was banned at UFW or fail2ban for some reason, but I changed my local IP and nothing changed. And anyway I see a lot of errors in the Apache logs, from many different IPs.
      The problem occurs on all sites on my server.



      I really can't understand what could have happened, everything worked perfectly until yesterday afternoon.



      The Server is Ubuntu 18.04 on vultr.



      I also found some strange errors in syslog, probably related.



      Apr  8 06:25:03 Vultr_LA_18 rsyslogd:  [origin software="rsyslogd" swVersion="8.32.0" x-pid="689" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
      Apr 8 06:25:07 Vultr_LA_18 popularity-contest: unable to submit report to https://popcon.ubuntu.com/popcon-submit.cgi.
      Apr 8 06:25:07 Vultr_LA_18 popularity-contest: unable to submit report.


      Apr 8 06:32:04 Vultr_LA_18 rsyslogd: unexpected GnuTLS error -53 - this could be caused by a broken connection. GnuTLS reports: Error in the push function. [v8.32.0$
      Apr 8 06:32:04 Vultr_LA_18 rsyslogd: omfwd: TCPSendBuf error -2078, destruct TCP Connection to log.nixstats.com:10514 [v8.32.0 try http://www.rsyslog.com/e/2078 ]
      Apr 8 06:32:04 Vultr_LA_18 rsyslogd: action 'action 1' suspended (module 'builtin:omfwd'), retry 0. There should be messages before this one giving the reason for sus$
      Apr 8 06:32:04 Vultr_LA_18 rsyslogd: action 'action 1' resumed (module 'builtin:omfwd') [v8.32.0 try http://www.rsyslog.com/e/2359 ]

      Apr 8 06:36:06 Vultr_LA_18 systemd-resolved[631]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced $






      curl






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago







      alebal

















      asked 2 days ago









      alebalalebal

      439




      439






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I reset Fail2ban, and something seems to have come back to work...



          But I have absolutely no idea how the server managed to block itself via Fail2ban...



          Any ideas? Above all, any ideas to prevent this from happening again in the future?






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132196%2ffile-get-contents-get-headers-and-curl-have-stopped-working-with-error-connec%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I reset Fail2ban, and something seems to have come back to work...



            But I have absolutely no idea how the server managed to block itself via Fail2ban...



            Any ideas? Above all, any ideas to prevent this from happening again in the future?






            share|improve this answer




























              0














              I reset Fail2ban, and something seems to have come back to work...



              But I have absolutely no idea how the server managed to block itself via Fail2ban...



              Any ideas? Above all, any ideas to prevent this from happening again in the future?






              share|improve this answer


























                0












                0








                0







                I reset Fail2ban, and something seems to have come back to work...



                But I have absolutely no idea how the server managed to block itself via Fail2ban...



                Any ideas? Above all, any ideas to prevent this from happening again in the future?






                share|improve this answer













                I reset Fail2ban, and something seems to have come back to work...



                But I have absolutely no idea how the server managed to block itself via Fail2ban...



                Any ideas? Above all, any ideas to prevent this from happening again in the future?







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 2 days ago









                alebalalebal

                439




                439






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1132196%2ffile-get-contents-get-headers-and-curl-have-stopped-working-with-error-connec%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    香粉寮

                    GameSpot