Software Center Takes Minutes to Respond

softwarecenter
v7
updates

(harry) #1

NethServer Version: 7.4.1708
Module: server-manager Software center

I installed a fresh Nethserver installation, and after install, the software center in server-manager takes many minutes to display. The problem sounds similar to a 2015 community post titled “Software Center Empty”.

Nethserver is installed on a Intel server, dual core Core2 Duo, E8400 3.0GHz 8GB RAM. A previous installation on this same hardware was my home gateway, but I removed it after the routing function became unreliable, for reasons I dont understand, replacing it with a Netgear router which has worked fine.

After the fresh Nethserver installation, because Software Center was unresponsive, I did several other Nethserver fresh installs, including on a different machine, although with the same SSD drive, and Software Center took minutes to load.

The first several times I had it configured with only a LAN connection, but this time it is configured as follows:

GBE (red) DHCP -> existing LAN, getting an IP address of 10.20.30.75 from the existing DHCP server

GBE (green) LAN with the Nethserver DHCP server addresses from 10.20.50.51 to 10.20.50.99. Ath moment, there is only one computer via a direct connect cable to the LAN NIC.

My internet connection usually tests (from the diagnostics page in server-manager) ~10 Mbps upload and ~90 Mbps download.

Following suggestions from the earlier post, I did a yum update from the console, and it processed 292 updates. Other than two warnings, which scrolled off before I could capture them, no errors.
I then did:
yum clean all --enablerepo=*

I also disabled IPv6 using:

sysctl -w net.ipv6.conf.default.disable_ipv6=1
sysctl -w net.ipv6.conf.all.disable_ipv6=1

I ran yum repolist -v and curl -v -L ‘http://mirrorlist.nethserver.org/6.7/nethserver?release=6&repo=updates&arch=x86_64’ (suggested in the prior post).

When running “yum repolist -v” the output usually pauses for a long time after the line: “Loading mirror speeds from cached hostfile”

Also, after I rand those commands, after waiting many mninutes for Software Center to complete its display, I selected one package from Software Center to install, and the process is proceding much slower tnan I was used to and is now crawling along at 87% at Event runlevel-adjust.

HERE IS THE SESSION:

login as: root
root@10.20.50.1’s password:
Last login: Sun Feb 11 14:36:23 2018 from 10.20.50.44

************ Welcome to NethServer ************

This is a NethServer installation.

Before editing configuration files, be aware
of the automatic events and templates system.

      http://docs.nethserver.org

[root@roy ~]# yum repolist -v
Loading “changelog” plugin
Loading “fastestmirror” plugin
Loading “nethserver_events” plugin
Config time: 0.018
Yum version: 3.4.3
Loading mirror speeds from cached hostfile

Repo-id : centos-sclo-rh/x86_64
Repo-name : CentOS-7 - SCLo rh
Repo-revision: 1516787578
Repo-updated : Wed Jan 24 01:54:34 2018
Repo-pkgs : 6,640
Repo-size : 5.2 G
Repo-baseurl : http://mirror.centos.org/centos/7/sclo/x86_64/rh/
Repo-expire : 21,600 second(s) (last: Sun Feb 11 14:33:13 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo

Repo-id : centos-sclo-sclo/x86_64
Repo-name : CentOS-7 - SCLo sclo
Repo-revision: 1517216728
Repo-updated : Mon Jan 29 01:05:31 2018
Repo-pkgs : 500
Repo-size : 104 M
Repo-baseurl : http://mirror.centos.org/centos/7/sclo/x86_64/sclo/
Repo-expire : 21,600 second(s) (last: Sun Feb 11 14:33:13 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-SCLo-scl.repo

Repo-id : epel/x86_64
Repo-name : Extra Packages for Enterprise Linux 7 - x86_64
Repo-revision: 1518203943
Repo-updated : Fri Feb 9 11:20:46 2018
Repo-pkgs : 12,278
Repo-size : 13 G
Repo-metalink: https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=x86_64
Updated : Fri Feb 9 11:20:46 2018
Repo-baseurl : https://mirrors.xmission.com/fedora-epel/7/x86_64/ (42 more)
Repo-expire : 21,600 second(s) (last: Sun Feb 11 14:33:43 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/epel.repo

Repo-id : extras/7/x86_64
Repo-name : CentOS-7 - Extras
Repo-revision: 1517306939
Repo-updated : Tue Jan 30 02:16:03 2018
Repo-pkgs : 388
Repo-size : 809 M
Repo-mirrors : http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=extras&infra=stock
Repo-baseurl : http://mirror.ash.fastserv.com/centos/7/extras/x86_64/ (9 more)
Repo-expire : 21,600 second(s) (last: Sun Feb 11 14:34:26 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

Repo-id : nethforge/7/x86_64
Repo-name : NethForge 7
Repo-revision: 1512898019
Repo-updated : Sun Dec 10 01:27:00 2017
Repo-pkgs : 29
Repo-size : 30 M
Repo-mirrors : http://mirrorlist.nethserver.org/7/nethserver?release=7&repo=nethforge&arch=x86_64
Repo-baseurl : https://mirror.alpix.eu/nethserver/7/nethforge/x86_64/ (12 more)
Repo-expire : 21,600 second(s) (last: Sun Feb 11 14:34:27 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NethForge.repo

Repo-id : nethserver-base/7/x86_64
Repo-name : NethServer-7 - Base
Repo-revision: 1509031675
Repo-updated : Thu Oct 26 08:27:59 2017
Repo-pkgs : 250
Repo-size : 830 M
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=base&arch=x86_64&nsrelease=$nsrelease
Repo-baseurl : https://mirror.alpix.eu/nethserver/7/base/x86_64/ (12 more)
Repo-expire : 21,600 second(s) (last: Sun Feb 11 14:34:27 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id : nethserver-updates/7/x86_64
Repo-name : NethServer-7 - Updates
Repo-revision: 1517993697
Repo-updated : Wed Feb 7 00:55:11 2018
Repo-pkgs : 230
Repo-size : 1.0 G
Repo-mirrors : http://mirrorlist.nethserver.org/?release=7&repo=updates&arch=x86_64&nsrelease=$nsrelease
Repo-baseurl : https://mirror.alpix.eu/nethserver/7/updates/x86_64/ (12 more)
Repo-expire : 21,600 second(s) (last: Sun Feb 11 14:34:27 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/NethServer.repo

Repo-id : updates/7/x86_64
Repo-name : CentOS-7 - Updates
Repo-revision: 1517505016
Repo-updated : Thu Feb 1 09:23:37 2018
Repo-pkgs : 1,929
Repo-size : 6.2 G
Repo-mirrors : http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates&infra=stock
Repo-baseurl : http://mirror.ash.fastserv.com/centos/7/updates/x86_64/ (9 more)
Repo-expire : 21,600 second(s) (last: Sun Feb 11 14:34:43 2018)
Filter : read-only:present
Repo-filename: /etc/yum.repos.d/CentOS-Base.repo

repolist: 31,835
[root@roy ~]# curl -v -L ‘http://mirrorlist.nethserver.org/6.7/nethserver?release=6&repo=updates&arch=x86_64

GET /6.7/nethserver?release=6&repo=updates&arch=x86_64 HTTP/1.1
User-Agent: curl/7.29.0
Host: mirrorlist.nethserver.org
Accept: /

< HTTP/1.1 200 OK
< Date: Sun, 11 Feb 2018 22:40:43 GMT
< Server: Apache/2.4.6 (CentOS) PHP/5.4.16
< X-Powered-By: PHP/5.4.16
< Content-Length: 60
< Content-Type: text/plain; charset=UTF-8
<
http://mirror.nethserver.org/nethserver/6.7/updates/x86_64/


(Markus Neuberger) #2

Hello @harry,

I tested it on NS6 now and Software Center and yum are working properly. Do you still face the issues?

Another thing to try:

rm -rf /var/cache/yum
yum clean all
yum --disableplugin=fastestmirror update

(harry) #3

@mrmarkuz,

Thank you. I had also done the removal of the yum cache previously, but did again. I didn’t disable the fastestmirror, because after changing DNS servers, the installation started working. I don’t know enough about how DNS caching works to make a better guess, but I think my problem was in that area. In any case, I went back and did a clean install again, and it is working.

This issues can be closed.


(Markus Neuberger) #4

Thanks for clarifying, you are able to close the topic yourself. Just mark your answer about changing DNS as solution so others with Software Center problems are able to see what was your solution.