file_get_contents, get_headers, and curl have stopped working with error: Connection refused The 2019 Stack Overflow Developer Survey Results Are InCurl with ipv6 not working by defaultA mystic curl error on Ubuntucurl: (7) Failed to connect to 127.0.0.1 port 5000: Connection refused when using Flaskcurl: (7) Failed to connect to [external site] port 8080: Connection refusedProblems with Curl and VariablesSSL certificate error with curlDifference between curl and aria2?Elastic search curl -X GET “localhost:9200/” Connection RefusedConnection timed out installing curlUbuntu 16.04 openssl s_client write:errno=104
Is "plugging out" electronic devices an American expression?
Falsification in Math vs Science
Can a flute soloist sit?
slides for 30min~1hr skype tenure track application interview
What to do when moving next to a bird sanctuary with a loosely-domesticated cat?
How to type this arrow in math mode?
What is the accessibility of a package's `Private` context variables?
Time travel alters history but people keep saying nothing's changed
How to deal with fear of taking dependencies
Why not take a picture of a closer black hole?
How are circuits which use complex ICs normally simulated?
Why did Acorn's A3000 have red function keys?
Have you ever entered Singapore using a different passport or name?
Why is the maximum length of OpenWrt’s root password 8 characters?
FPGA - DIY Programming
Does a dangling wire really electrocute me if I'm standing in water?
Can one be advised by a professor who is very far away?
Apparent duplicates between Haynes service instructions and MOT
The difference between dialogue marks
A poker game description that does not feel gimmicky
Resizing object distorts it (Illustrator CC 2018)
Which Sci-Fi work first showed weapon of galactic-scale mass destruction?
How come people say “Would of”?
Output the Arecibo Message
file_get_contents, get_headers, and curl have stopped working with error: Connection refused
The 2019 Stack Overflow Developer Survey Results Are InCurl with ipv6 not working by defaultA mystic curl error on Ubuntucurl: (7) Failed to connect to 127.0.0.1 port 5000: Connection refused when using Flaskcurl: (7) Failed to connect to [external site] port 8080: Connection refusedProblems with Curl and VariablesSSL certificate error with curlDifference between curl and aria2?Elastic search curl -X GET “localhost:9200/” Connection RefusedConnection timed out installing curlUbuntu 16.04 openssl s_client write:errno=104
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom: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 $
curl
add a comment |
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
add a comment |
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
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
curl
edited 2 days ago
alebal
asked 2 days ago
alebalalebal
439
439
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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?
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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?
add a comment |
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?
add a comment |
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?
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?
answered 2 days ago
alebalalebal
439
439
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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