[Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"

Issues related to configuring your network
Post Reply
darb
Posts: 3
Joined: 2020/02/21 18:41:23

[Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"

Post by darb » 2020/02/21 18:51:22

I am having problems and am getting: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host" error.

running release 7.7.1908; can ping out with both IP and FQDN; have checked /etc/resolv.conf and it has a valid DNS.

Any suggestions?

thanks

hunter86_bg
Posts: 2016
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"

Post by hunter86_bg » 2020/02/22 20:00:03

Try with curl.

Do you use proxy ? If yes, configure yum.conf properly

darb
Posts: 3
Joined: 2020/02/21 18:41:23

Re: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"

Post by darb » 2020/02/22 22:03:45

sorry, just a noob trying to troubleshoot my first webserver.

no, not using a proxy.

Code: Select all

curl example.com
returns the website code without any errors.

so both DNS and curl are working fine?

ran:

Code: Select all

sudo yum clean all
sudo rm -r /var/cache/yum
sudo yum update
yum update returns:

Code: Select all

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                                                                             |  18 kB  00:00:00
 * base: mirror2.evolution-host.com
 * epel: mirror.dst.ca
 * extras: mirror2.evolution-host.com
 * updates: mirror2.evolution-host.com
base                                                                                                                                             | 3.6 kB  00:00:00
copr:copr.fedorainfracloud.org:copart:restic                                                                                                     | 3.3 kB  00:00:00
extras                                                                                                                                           | 2.9 kB  00:00:00
ius                                                                                                                                              | 1.3 kB  00:00:00
litespeed                                                                                                                                        | 3.6 kB  00:00:00
litespeed-update                                                                                                                                 | 3.6 kB  00:00:00
lux                                                                                                                                              | 2.9 kB  00:00:00
mariadb                                                                                                                                          | 2.9 kB  00:00:00
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; Operation now in progress"
Trying other mirror.
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
Trying other mirror.
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
Trying other mirror.
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
Trying other mirror.
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
Trying other mirror.
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
Trying other mirror.
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
Trying other mirror.
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
Trying other mirror.
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
Trying other mirror.
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
Trying other mirror.


 One of the configured repositories failed (PowerDNS repository for PowerDNS Authoritative Server - version 4.2.X),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=powerdns-auth-42 ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable powerdns-auth-42
        or
            subscription-manager repos --disable=powerdns-auth-42

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=powerdns-auth-42.skip_if_unavailable=true

failure: repodata/repomd.xml from powerdns-auth-42: [Errno 256] No more mirrors to try.
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; Operation now in progress"
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
http://repo.powerdns.com/centos/x86_64/7/auth-42/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"
my webserver seems to be running fine (80/443) but when I try to update the wordpress WAF rule set in the WP control panel, it returns

Code: Select all

Error: Unable to connect to the remote server (cURL error 7: Failed connect to updates.nintechnet.com:443; Operation now in progress)
my firewall log is showing

Code: Select all

Feb 22 16:06:31 new lfd[78468]: Unable to retrieve blocklist BFB - Unable to download: Can't connect to danger.rulez.sk:80 (timeout)
Feb 22 16:10:38 new lfd[78468]: Unable to retrieve blocklist TOR - Unable to download: Can't connect to check.torproject.org:443
Feb 22 16:14:41 new lfd[78972]: Unable to retrieve blocklist BDE - Unable to download: Can't connect to api.blocklist.de:443
Feb 22 16:16:14 new lfd[78972]: Unable to retrieve blocklist BFB - Unable to download: Can't connect to danger.rulez.sk:80 (timeout)
Feb 22 16:16:17 new lfd[79322]: Child : *Lock Error* [BLOCKLISTS] still active - section skipped
Feb 22 16:20:21 new lfd[78972]: Unable to retrieve blocklist TOR - Unable to download: Can't connect to check.torproject.org:443
Feb 22 16:25:02 new lfd[79592]: Unable to retrieve blocklist BDE - Unable to download: Can't connect to api.blocklist.de:443

aks
Posts: 3005
Joined: 2014/09/20 11:22:14

Re: [Errno 14] curl#7 - "Failed connect to repo.powerdns.com:80; No route to host"

Post by aks » 2020/02/25 17:51:19

"Failed connect to repo.powerdns.com:80; No route to host" error.
You got an ICMP denied message there. Usually a firewall of some sort, or possibly routing.
Unable to retrieve blocklist BFB - Unable to download: Can't connect to danger.rulez.sk:80 (timeout)
You got no message there, anybody's guess. Some firewalls respond, some don't (most routers do).

curl's error 7 is "Failed to connect to host."

I think your DNS was (at that time)/is working - otherwise you'd have different error messages, but TCP is not getting there (note: ping is not TCP it's ICMP by default).

You can use telnet (or any line based TCP client) to validate as in:
telnet danger.rulez.sk 80
Trying 188.40.39.38...
Connected to danger.rulez.sk.
Escape character is '^]'.
^]
telnet> cl
Connection closed.

Strongly suspect firewall(s) - either yours (fairly high probability) or somebody else's along the network path.
Edited because I'm often dumb ....

Post Reply

Return to “CentOS 7 - Networking Support”