Connection errors when installing from official YUM server with CentOS 7

Hello,

When I try to install the opennms repo I get the below error

Any ideas?

[root@opennms opt]# dnf -y install https://yum.opennms.org/repofiles/opennms-repo-stable-rhel7.noarch.rpm
Extra Packages for Enterprise Linux 7 - x86_64                                                                                    0.0  B/s |   0  B     00:00    
CentOS-7 - Base                                                                                                                   0.0  B/s |   0  B     00:00    
CentOS-7 - Updates                                                                                                                0.0  B/s |   0  B     00:00    
RPMs Common to All OpenNMS Architectures (stable)                                                                                 0.0  B/s |   0  B     00:00    
CentOS-7 - Extras                                                                                                                 0.0  B/s |   0  B     00:00    
RedHat Enterprise Linux 7.x and CentOS 7.x (stable)                                                                               0.0  B/s |   0  B     00:00    
Failed to synchronize cache for repo 'epel', ignoring this repo.
Failed to synchronize cache for repo 'base', ignoring this repo.
Failed to synchronize cache for repo 'updates', ignoring this repo.
Failed to synchronize cache for repo 'opennms-repo-stable-common', ignoring this repo.
Failed to synchronize cache for repo 'extras', ignoring this repo.
Failed to synchronize cache for repo 'opennms-repo-stable-rhel7', ignoring this repo.
[MIRROR] opennms-repo-stable-rhel7.noarch.rpm: Curl error (6): Couldn't resolve host name for https://yum.opennms.org/repofiles/opennms-repo-stable-rhel7.noarch.rpm [Could not resolve host: yum.opennms.org; Unknown error]
[FAILED] opennms-repo-stable-rhel7.noarch.rpm: Curl error (6): Couldn't resolve host name for https://yum.opennms.org/repofiles/opennms-repo-stable-rhel7.noarch.rpm [Could not resolve host: yum.opennms.org; Unknown error]
Curl error (6): Couldn't resolve host name for https://yum.opennms.org/repofiles/opennms-repo-stable-rhel7.noarch.rpm [Could not resolve host: yum.opennms.org; Unknown error]

Thank you

It seems like you have connection issues to yum.opennms.org where our packages are hosted. Reading more detailed your error message, it says

Couldn't resolve the hostname for https://yum.opennms.org` indicates you had name resolution (DNS) issues.

So it looks like you have name resolution issues with DNS. If you got this solved, I can give you already the hint, CentOS 7 does not come with a current enough PostgreSQL server version. You need at least PostgreSQL 10.x or higher. CentOS 7 gives you PostgreSQL 9.x. Easiest solution is to use CentOS 8 which gives you PostgreSQL 10 or if you have to stay with CentOS 7 you have to use the PostgreSQL repository instead.

Hi,

even with IP I got no connection

[root@opennms opt]# dnf -y install https://18.185.60.100/repofiles/opennms-repo-stable-rhel7.noarch.rpm 
Extra Packages for Enterprise Linux 7 - x86_64                                                                                    0.0  B/s |   0  B     00:00    
CentOS-7 - Base                                                                                                                   0.0  B/s |   0  B     00:00    
CentOS-7 - Updates                                                                                                                0.0  B/s |   0  B     00:00    
RPMs Common to All OpenNMS Architectures (stable)                                                                                 0.0  B/s |   0  B     00:00    
CentOS-7 - Extras                                                                                                                 0.0  B/s |   0  B     00:00    
RedHat Enterprise Linux 7.x and CentOS 7.x (stable)                                                                               0.0  B/s |   0  B     00:00    
Failed to synchronize cache for repo 'epel', ignoring this repo.
Failed to synchronize cache for repo 'base', ignoring this repo.
Failed to synchronize cache for repo 'updates', ignoring this repo.
Failed to synchronize cache for repo 'opennms-repo-stable-common', ignoring this repo.
Failed to synchronize cache for repo 'extras', ignoring this repo.
Failed to synchronize cache for repo 'opennms-repo-stable-rhel7', ignoring this repo.
[MIRROR] opennms-repo-stable-rhel7.noarch.rpm: Curl error (28): Timeout was reached for https://18.185.60.100/repofiles/opennms-repo-stable-rhel7.noarch.rpm [Connection timed out after 30000 milliseconds]
[FAILED] opennms-repo-stable-rhel7.noarch.rpm: Curl error (28): Timeout was reached for https://18.185.60.100/repofiles/opennms-repo-stable-rhel7.noarch.rpm [Connection timed out after 30000 milliseconds]
Curl error (28): Timeout was reached for https://18.185.60.100/repofiles/opennms-repo-stable-rhel7.noarch.rpm [Connection timed out after 30000 milliseconds]

Anyway, i will give it a go with centos8 since its better for postgres

Thank you

The IP resolves depending on your geolocation to get you to a server closest to where you are. The IP is a mirror in Frankfurt in Germany. If you use just the IP address, this is a little bit tricky, cause the SSL certificate is set to the yum.opennms.org hostname. Iā€™m here near Stuttgart and just tested it and have no issues getting to content on https://yum.opennms.org

Let us know if you still have issues. If so, you can try https://yum.opennms.eu/ which is a sponsored mirror in Germany as well and does not use geolocation DNS features. It would be interesting to us what solved your problem to avoid it in the future :slight_smile:

The mirror setup will change in the future and we migrate our repositories to Cloudsmith with package mirrors close to your location.