zamboni
(Stefano)
November 12, 2015, 3:35pm
41
ok, so I’d apologize, shouldn’t I?
BTW, please remember another thing: here there are people coming from all the world, not native english speakers… and all we are just reading black words on a white background… they have no “sound” and a reader can misunderstand the meaning
in any case, sorry for the misunderstanding
1 Like
Adam
(Adam)
November 12, 2015, 3:35pm
42
yum repolist -v
Loading "changelog" plugin
Loading "fastestmirror" plugin
Loading "nethserver_events" plugin
Loading "presto" plugin
Config time: 0.187
Yum Version: 3.2.29
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/
* nethserver-base: mirror1.nethserver.org
* nethserver-updates: mirror1.nethserver.org
Setting up Package Sacks
pkgsack time: 0.062
Repo-id : centos-base
Repo-name : CentOS-6 Base
Repo-revision: 1438723315
Repo-updated : Tue Aug 4 17:24:45 2015
Repo-pkgs : 6,575
Repo-size : 5.4 G
Repo-baseurl : http://mirror.centos.org/centos/6/os/x86_64/
Repo-mirrors : http://mirrorlist.nethserver.org/6.7/centos?release=6&repo=os&arch=x86_64
Repo-expire : 21,600 second(s) (last: Thu Nov 12 09:31:31 2015)
Repo-id : centos-updates
Repo-name : CentOS-6 Updates
Repo-revision: 1447188368
Repo-updated : Tue Nov 10 15:48:54 2015
Repo-pkgs : 652
Repo-size : 3.3 G
Repo-baseurl : http://mirror.centos.org/centos/6/updates/x86_64/
Repo-mirrors : http://mirrorlist.nethserver.org/6.7/centos?release=6&repo=updates&arch=x86_64
Repo-expire : 21,600 second(s) (last: Thu Nov 12 09:31:32 2015)
Repo-id : nethserver-base
Repo-name : NethServer 6.7 base
Repo-revision: 1445525368
Repo-updated : Thu Oct 22 10:49:32 2015
Repo-pkgs : 446
Repo-size : 417 M
Repo-mirrors : http://mirrorlist.nethserver.org/6.7/nethserver?release=6&repo=base&arch=x86_64
Repo-baseurl : http://mirror1.nethserver.org/nethserver/6.7/base/x86_64/ (7
: more)
Repo-expire : 21,600 second(s) (last: Thu Nov 12 09:31:35 2015)
Repo-id : nethserver-updates
Repo-name : NethServer 6.7 updates
Repo-revision: 1447256812
Repo-updated : Wed Nov 11 10:46:53 2015
Repo-pkgs : 22
Repo-size : 30 M
Repo-mirrors : http://mirrorlist.nethserver.org/6.7/nethserver?release=6&repo=updates&arch=x86_64
Repo-baseurl : http://mirror1.nethserver.org/nethserver/6.7/updates/x86_64/ (7
: more)
Repo-expire : 21,600 second(s) (last: Thu Nov 12 09:31:35 2015)
repolist: 7,695
Here Error YumRepo Error: we found a problem with ipv6.
Could you try to disable ipv6?
sysctl -w net.ipv6.conf.default.disable_ipv6=1
sysctl -w net.ipv6.conf.all.disable_ipv6=1
Adam
(Adam)
November 12, 2015, 3:46pm
44
I ran those two commands and rebooted. Still seeing the same errors when running any yum commands.
I ran ifconfig and ipv6 addresses are still listed. Is that normal?
Please, don’t reboot after running those commands.
Adam
(Adam)
November 12, 2015, 3:50pm
46
LOL! Oops! OK. ifconfig looks as expected without rebooting. Still seeing the same errors though.
In the meantime I did check again that ipv6 is working as expected on mirrorlist.nethserver.org .
Could you please run the following curl command?
curl -v -L 'http://mirrorlist.nethserver.org/6.7/nethserver?release=6&repo=updates&arch=x86_64'
Here’s my output
* About to connect() to mirrorlist.nethserver.org port 80 (#0)
* Trying 2a00:1a48:7805:111:c9b1:34ca:ff08:516... connected
* Connected to mirrorlist.nethserver.org (2a00:1a48:7805:111:c9b1:34ca:ff08:516) port 80 (#0)
> GET /6.7/nethserver?release=6&repo=updates&arch=x86_64 HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: mirrorlist.nethserver.org
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.2.4
< Date: Thu, 12 Nov 2015 15:51:12 GMT
< Content-Type: text/plain; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Powered-By: PHP/5.3.19
<
http://mirror.nethserver.org/nethserver/6.7/updates/x86_64/
http://mirror1.nethserver.org/nethserver/6.7/updates/x86_64/
http://mirror2.nethserver.org/nethserver/6.7/updates/x86_64/
http://mirror.nethesis.it/nethserver/6.7/updates/x86_64/
http://nethserver.de-labrusse.fr/6.7/updates/x86_64/
http://nethserver.antani.co/nethserver/6.7/updates/x86_64/
http://mirror.framassa.org/nethserver/6.7/updates/x86_64/
http://mirror.imao-fr.com/nethserver/6.7/updates/x86_64/
* Connection #0 to host mirrorlist.nethserver.org left intact
* Closing connection #0
Looking again at repolist output, you may have problems reaching centos mirror, not nethserver mirrors.
Adam
(Adam)
November 12, 2015, 3:56pm
49
curl -v -L 'http://mirrorlist.nethserver.org/6.7/nethserver?release=6&repo=updates&arch=x86_64'
* About to connect() to mirrorlist.nethserver.org port 80 (#0)
* Trying 95.138.187.145... connected
* Connected to mirrorlist.nethserver.org (95.138.187.145) port 80 (#0)
> GET /6.7/nethserver?release=6&repo=updates&arch=x86_64 HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.19.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: mirrorlist.nethserver.org
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/1.2.4
< Date: Thu, 12 Nov 2015 15:55:09 GMT
< Content-Type: text/plain; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< X-Powered-By: PHP/5.3.19
<
http://mirror.nethserver.org/nethserver/6.7/updates/x86_64/
http://mirror1.nethserver.org/nethserver/6.7/updates/x86_64/
http://mirror2.nethserver.org/nethserver/6.7/updates/x86_64/
http://mirror.nethesis.it/nethserver/6.7/updates/x86_64/
http://nethserver.de-labrusse.fr/6.7/updates/x86_64/
http://nethserver.antani.co/nethserver/6.7/updates/x86_64/
http://mirror.framassa.org/nethserver/6.7/updates/x86_64/
http://mirror.imao-fr.com/nethserver/6.7/updates/x86_64/
* Connection #0 to host mirrorlist.nethserver.org left intact
* Closing connection #0
I agree… but I can ping mirror.centos.org just fine from the server.
Adam
(Adam)
November 12, 2015, 4:03pm
50
I hard coded the distro version, release and arch in /etc/yum.repos.d/NethServer.repo for the two repos that are having problems and I’m no longer seeing errors.
New:
[centos-base]
name=CentOS-$releasever Base
mirrorlist=http://mirrorlist.nethserver.org/6.7/centos?release=6&repo=os&arch=x86_64
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1
enablegroups=0
[centos-updates]
name=CentOS-$releasever Updates
mirrorlist=http://mirrorlist.nethserver.org/6.7/centos?release=6&repo=updates&arch=x86_64
baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1
enablegroups=0
Old:
[centos-base]
name=CentOS-$releasever Base
mirrorlist=http://mirrorlist.nethserver.org/$distroversion/centos?release=$releasever&repo=os&arch=$basearch
baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1
enablegroups=0
[centos-updates]
name=CentOS-$releasever Updates
mirrorlist=http://mirrorlist.nethserver.org/$distroversion/centos?release=$releasever&repo=updates&arch=$basearch
baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
enabled=1
enablegroups=0
So why would it not pull these values correctly just for these two repositories?
I reproduced the problem. It seems that mirrorlist.centos.org has problems with ipv6.
See using ipv6:
# curl -L 'http://mirrorlist.centos.org/?release=6.7&arch=x86_64&repo=updates'
Invalid release
Forcing ipv4:
# curl -4 -L 'http://mirrorlist.centos.org/?release=6.7&arch=x86_64&repo=updates'
http://mirror.cov.ukservers.com/centos/6.7/updates/x86_64/
http://mirror.ukhost4u.com/centos/6.7/updates/x86_64/
Adam
(Adam)
November 12, 2015, 4:28pm
52
I see the same results you posted, but I don’t see how it’s related. Did you see the post above? For some reason it’s not resolving the $distoversion, $releasever, or $basearch variables. I didn’t try hard coding them individually… hmmm…
Adam
(Adam)
November 12, 2015, 4:36pm
53
OK. I did more testing and found that disabling IPv6 is required, even with the variables hard coded for distro version, release & architecture. Then tried changing from hard coded values back to the variables and everything is still working… wtf? lol
Maybe I needed to run yum clear all again after disabling ipv6?
I added the two lines @filippo_carletti mentioned to /etc/sysctl.conf and rebooted. Confirmed that everything is still working.
davidep
(Davide Principi)
November 12, 2015, 6:00pm
54
This issue already came out in the past. We’ll left it behind when we stop asking the minor version to mirrorlist.centos.org (release=6.7 should be release=6). Their servers behave differently for ipv4 and ipv6.
Yes @davidep , I’ve a plan to switch to relver=6 soon (you know, coffee machine chit-chat).
Meanwhile, I’m trying to understand if centos team is keen on considering a bug they server behaving differently over different protocols.
davidep
(Davide Principi)
November 12, 2015, 6:10pm
56
I’ve read about this issue on their forums since years, I don’t think they’ll fix it soon
Adam
(Adam)
November 16, 2015, 6:01pm
57
Just to keep everyone updated, I installed another NS instance at a customer’s site today and had this same problem again. I ran the two commands Filippo mentioned and then the software center worked. Rebooted and it continued working… so there was no need to mess with repos or any of that mess. Not sure why it is happening in the first place or why it was so much easier to resolve this time.