Install ZeroMQ 4.2.3 from repository hanging in CentOS 6

General support questions
cen
Posts: 12
Joined: 2018/02/20 15:07:57

Install ZeroMQ 4.2.3 from repository hanging in CentOS 6

Post by cen » 2018/02/20 15:14:38

*Please use this template for reporting suspected bugs or requests for help.*

# Issue description

Install zeromq-devel 4.2.3 from repository hanging in CentOS 6


# Environment

* libzmq version (commit hash if unreleased): zeromq-devel 4.2.3
* OS: CentOS release 6.9 (Final) in Google Cloud Platform

# Minimal test code / Steps to reproduce the issue

exactly follow below link:
https://software.opensuse.org/download. ... romq-devel


# What's the actual result? (include assertion message & call stack if applicable)

Code: Select all

$ yum install zeromq-devel
Loaded plugins: fastestmirror, security
You need to be root to perform this command.
[william@ins-gue1-uat-gt-200 yum.repos.d]$ sudo yum install zeromq-devel
Loaded plugins: fastestmirror, security
Setting up Install Process
Determining fastest mirrors
epel/metalink                                                                                             |  14 kB     00:00     
 * base: mirror.fdcservers.net
 * epel: fedora-epel.mirrors.tds.net
 * extras: mirror.cc.columbia.edu
 * updates: mirrors.rit.edu
base                                                                                                      | 3.7 kB     00:00     
base/primary_db                                                                                           | 4.7 MB     00:01     
centos-sclo-rh                                                                                            | 3.0 kB     00:00     
centos-sclo-rh/primary_db                                                                                 | 2.8 MB     00:00     
centos-sclo-sclo                                                                                          | 2.9 kB     00:00     
centos-sclo-sclo/primary_db                                                                               | 180 kB     00:00     
epel                                                                                                      | 4.7 kB     00:00     
epel/primary_db                                                                                           | 6.0 MB     00:01     
extras                                                                                                    | 3.4 kB     00:00     
extras/primary_db                                                                                         |  30 kB     00:00     
google-cloud-compute/signature                                                                            |  454 B     00:00     
google-cloud-compute/signature                                                                            | 1.4 kB     00:00 ... 
google-cloud-compute/primary                                                                              | 3.4 kB     00:00     
google-cloud-compute                                                                                                         7/7
network_messaging_zeromq_release-stable                                                                   | 1.3 kB     00:00     
network_messaging_zeromq_release-stable/primary                                                           |  11 kB     00:00     
network_messaging_zeromq_release-stable                                                                                    67/67
updates                                                                                                   | 3.4 kB     00:00     
updates/primary_db                                                                                        | 6.4 MB     00:00     
Resolving Dependencies
--> Running transaction check
---> Package zeromq-devel.x86_64 0:4.2.3-7.1 will be installed
--> Processing Dependency: libzmq5 = 4.2.3-7.1 for package: zeromq-devel-4.2.3-7.1.x86_64
--> Processing Dependency: libzmq.so.5()(64bit) for package: zeromq-devel-4.2.3-7.1.x86_64
--> Running transaction check
---> Package libzmq5.x86_64 0:4.2.3-7.1 will be installed
--> Processing Dependency: libsodium.so.18()(64bit) for package: libzmq5-4.2.3-7.1.x86_64
--> Processing Dependency: libpgm-5.2.so.0()(64bit) for package: libzmq5-4.2.3-7.1.x86_64
--> Running transaction check
---> Package libpgm-5_2-0.x86_64 0:5.2.122-17.1 will be installed
---> Package libsodium18.x86_64 0:1.0.11-1.2 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================
 Package                  Arch               Version                   Repository                                           Size
=================================================================================================================================
Installing:
 zeromq-devel             x86_64             4.2.3-7.1                 network_messaging_zeromq_release-stable             430 k
Installing for dependencies:
 libpgm-5_2-0             x86_64             5.2.122-17.1              network_messaging_zeromq_release-stable             166 k
 libsodium18              x86_64             1.0.11-1.2                network_messaging_zeromq_release-stable             165 k
 libzmq5                  x86_64             4.2.3-7.1                 network_messaging_zeromq_release-stable             232 k

Transaction Summary
=================================================================================================================================
Install       4 Package(s)

Total download size: 993 k
Installed size: 3.3 M
Is this ok [y/N]: y
Downloading Packages:
http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm: [Errno 12] Timeout on http://provo-mirror.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/CentOS_6/x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/libsodium18-1.0.11-1.2.x86_64.rpm: [Errno 12] Timeout on http://provo-mirror.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/CentOS_6/x86_64/libsodium18-1.0.11-1.2.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/libzmq5-4.2.3-7.1.x86_64.rpm: [Errno 12] Timeout on http://provo-mirror.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/CentOS_6/x86_64/libzmq5-4.2.3-7.1.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/zeromq-devel-4.2.3-7.1.x86_64.rpm: [Errno 12] Timeout on http://provo-mirror.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/CentOS_6/x86_64/zeromq-devel-4.2.3-7.1.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.


Error Downloading Packages:
  libzmq5-4.2.3-7.1.x86_64: failure: x86_64/libzmq5-4.2.3-7.1.x86_64.rpm from network_messaging_zeromq_release-stable: [Errno 256] No more mirrors to try.
  zeromq-devel-4.2.3-7.1.x86_64: failure: x86_64/zeromq-devel-4.2.3-7.1.x86_64.rpm from network_messaging_zeromq_release-stable: [Errno 256] No more mirrors to try.
  libsodium18-1.0.11-1.2.x86_64: failure: x86_64/libsodium18-1.0.11-1.2.x86_64.rpm from network_messaging_zeromq_release-stable: [Errno 256] No more mirrors to try.
  libpgm-5_2-0-5.2.122-17.1.x86_64: failure: x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm from network_messaging_zeromq_release-stable: [Errno 256] No more mirrors to try.
# Wget working well with these npm packages

The most weird thing is I can wget all these rpm packages in the box.

e.g.

Code: Select all

$ wget http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm
--2018-02-20 15:00:01--  http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm
Resolving download.opensuse.org... 195.135.221.134, 2001:67c:2178:8::13
Connecting to download.opensuse.org|195.135.221.134|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://provo-mirror.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/CentOS_6/x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm [following]
--2018-02-20 15:00:02--  http://provo-mirror.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/CentOS_6/x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm
Resolving provo-mirror.opensuse.org... 130.57.72.10
Connecting to provo-mirror.opensuse.org|130.57.72.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 170244 (166K) [application/x-redhat-package-manager]
Saving to: “libpgm-5_2-0-5.2.122-17.1.x86_64.rpm.1”

100%[=======================================================================================>] 170,244      530K/s   in 0.3s    

2018-02-20 15:00:03 (530 KB/s) - “libpgm-5_2-0-5.2.122-17.1.x86_64.rpm.1” saved [170244/170244]

But I just cannot use yum to install it.

Any suggestion master?



# What's the expected result?

"yum install zeromq-devel" can be installed sucessfully.

User avatar
TrevorH
Forum Moderator
Posts: 24085
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Install ZeroMQ 4.2.3 from repository hanging in CentOS 6

Post by TrevorH » 2018/02/20 15:37:36

Try using curl not wget to test with as curl is what yum uses under the covers. First thing that occurs to me (without any evidence!) is that perhaps you are accessing the site via ipv6 when using yum and ipv4 when using wget.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

cen
Posts: 12
Joined: 2018/02/20 15:07:57

Re: Install ZeroMQ 4.2.3 from repository hanging in CentOS 6

Post by cen » 2018/02/20 16:01:34

curl working well.

Code: Select all

$ curl http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm -o libpgm-5_2-0-5.2.122-17.1.x86_64.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
104   416  104   416    0     0   1929      0 --:--:-- --:--:-- --:--:--  3816

$ ls -ltr
total 4
-rw-rw-r--. 1 admin admin 416 Feb 20 15:59 libpgm-5_2-0-5.2.122-17.1.x86_64.rpm

Do you think there is anything wrong with the box/network configuration inside Google Cloud Engine?

cen
Posts: 12
Joined: 2018/02/20 15:07:57

Re: Install ZeroMQ 4.2.3 from repository hanging in CentOS 6

Post by cen » 2018/02/20 16:02:53

In the meantime, I am having an email thread about this issue with GCP engineer. If any luck, I will update here.

cen
Posts: 12
Joined: 2018/02/20 15:07:57

Re: Install ZeroMQ 4.2.3 from repository hanging in CentOS 6

Post by cen » 2018/02/20 16:07:58

Update this repo configuration in case:

Code: Select all

$ pwd
/etc/yum.repos.d

$ cat network:messaging:zeromq:release-stable.repo
[network_messaging_zeromq_release-stable]
name=Latest released versions, no DRAFT apis (CentOS_6)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/CentOS_6/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/CentOS_6/repodata/repomd.xml.key
enabled=1


User avatar
TrevorH
Forum Moderator
Posts: 24085
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Install ZeroMQ 4.2.3 from repository hanging in CentOS 6

Post by TrevorH » 2018/02/20 16:22:18

Experiment with curl -6 and curl -4 and see if it breaks.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

cen
Posts: 12
Joined: 2018/02/20 15:07:57

Re: Install ZeroMQ 4.2.3 from repository hanging in CentOS 6

Post by cen » 2018/02/20 16:30:53

You rock !

IPv4:

Code: Select all

$ curl -4 http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm -o libpgm-5_2-0-5.2.122-17.1.x86_64.rpm
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
104   416  104   416    0     0   1936      0 --:--:-- --:--:-- --:--:--  3851

IPv6:

Code: Select all

$ curl -6 http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm -o libpgm-5_2-0-5.2.122-17.1.x86_64.rpm

curl: (7) Failed to connect to 2001:67c:2178:8::13: Network is unreachable
What should I do now? In the meantime, I will reach Google grandpa. :)

cen
Posts: 12
Joined: 2018/02/20 15:07:57

Re: Install ZeroMQ 4.2.3 from repository hanging in CentOS 6

Post by cen » 2018/02/20 16:46:57

quick search all about disable system-wide ipv6 in centOS.

I don't want to assume that I am not going to use ipv6 in the near future.

Is there a way to disable ipv6 inside yum or even inside a specific repository?

User avatar
TrevorH
Forum Moderator
Posts: 24085
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Install ZeroMQ 4.2.3 from repository hanging in CentOS 6

Post by TrevorH » 2018/02/20 16:48:12

One way is to tell yum not to use ipv6 by setting ip_resolve=4 in yum.conf though that's probably a bandaid and you should investigate why ipv6 is not working for you. I tested here with your failing command and it works for me.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

cen
Posts: 12
Joined: 2018/02/20 15:07:57

Re: Install ZeroMQ 4.2.3 from repository hanging in CentOS 6

Post by cen » 2018/02/20 17:15:50

Very strange it doesn't work for me

Code: Select all

$ sudo cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=19&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
ip_resolve=4
# ip_resolve=IPv4

#  This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
#  It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

Code: Select all

...

Downloading Packages:
http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm: [Errno 12] Timeout on http://provo-mirror.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/CentOS_6/x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/libsodium18-1.0.11-1.2.x86_64.rpm: [Errno 12] Timeout on http://provo-mirror.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/CentOS_6/x86_64/libsodium18-1.0.11-1.2.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/libzmq5-4.2.3-7.1.x86_64.rpm: [Errno 12] Timeout on http://provo-mirror.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/CentOS_6/x86_64/libzmq5-4.2.3-7.1.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
http://download.opensuse.org/repositories/network%3A/messaging%3A/zeromq%3A/release-stable/CentOS_6/x86_64/zeromq-devel-4.2.3-7.1.x86_64.rpm: [Errno 12] Timeout on http://provo-mirror.opensuse.org/repositories/network:/messaging:/zeromq:/release-stable/CentOS_6/x86_64/zeromq-devel-4.2.3-7.1.x86_64.rpm: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.


Error Downloading Packages:
  libzmq5-4.2.3-7.1.x86_64: failure: x86_64/libzmq5-4.2.3-7.1.x86_64.rpm from network_messaging_zeromq_release-stable: [Errno 256] No more mirrors to try.
  zeromq-devel-4.2.3-7.1.x86_64: failure: x86_64/zeromq-devel-4.2.3-7.1.x86_64.rpm from network_messaging_zeromq_release-stable: [Errno 256] No more mirrors to try.
  libsodium18-1.0.11-1.2.x86_64: failure: x86_64/libsodium18-1.0.11-1.2.x86_64.rpm from network_messaging_zeromq_release-stable: [Errno 256] No more mirrors to try.
  libpgm-5_2-0-5.2.122-17.1.x86_64: failure: x86_64/libpgm-5_2-0-5.2.122-17.1.x86_64.rpm from network_messaging_zeromq_release-stable: [Errno 256] No more mirrors to try.
I tried both 4 and IPv4, and even reboot os. No luck.

By the way, I checked man page for yum.conf, didn't see anything about ip_resolve parameter. So it is a hidden parameter or else?

:(

Post Reply