Yum fails after Subscription


(Hector Perez) #1

I upgraded the system until I have to check “the safe rpms” a the surprise:
Can’t install tree package.

Repos not available i had to http://docs.nethserver.org/en/latest/subscription.html#removing-a-subscription and the system came back to live.

I haven’t see the benefits of the safe repositories. I know that is a long and heavy work for a FreeServer, but a client will be upset for this kind of failures. I’m not in a hurry, is the third problem of this week, ¿any body helps?


(Davide Principi) #2

Once you complete the registration, can you attach the output of

 yum repolist -v

Also

 yum check-update

And

 rpm -qf /etc/yum.repos.d/*

(Hector Perez) #3
[root@nethserver /]# yum repolist -v
Loading "auto-update-debuginfo" plugin
Loading "changelog" plugin
Loading "fastestmirror" plugin
Loading "nethserver_events" plugin
Config time: 0.026
Yum version: 3.4.3
rpmdb time: 0.000
Found 7 installed debuginfo package(s)
Determining fastest mirrors
sb-base                                                  | 3.6 kB     00:00
sb-centos-sclo-rh                                        | 3.0 kB     00:00
sb-centos-sclo-sclo                                      | 2.9 kB     00:00
sb-epel                                                  | 3.2 kB     00:00
sb-extras                                                | 3.4 kB     00:00
sb-nethserver-base                                       | 2.9 kB     00:00
sb-nethserver-updates                                    | 4.1 kB     00:00
sb-updates                                               | 3.4 kB     00:00
(1/12): sb-epel/x86_64/group_gz                            |  88 kB   00:01
(2/12): sb-base/x86_64/group_gz                            | 166 kB   00:01
(3/12): sb-centos-sclo-sclo/x86_64/primary_db              | 205 kB   00:01
(4/12): sb-epel/x86_64/updateinfo                          | 932 kB   00:01
(5/12): sb-centos-sclo-rh/x86_64/primary_db                | 3.5 MB   00:03
(6/12): sb-nethserver-base/x86_64/primary_db               | 294 kB   00:00
(7/12): sb-epel/x86_64/primary                             | 3.5 MB   00:02
(8/12): sb-nethserver-updates/x86_64/group_gz              |  20 kB   00:00
(9/12): sb-nethserver-updates/x86_64/primary_db            |  39 kB   00:00
(10/12): sb-extras/x86_64/primary_db                       | 147 kB   00:03
(11/12): sb-updates/x86_64/primary_db                      | 2.0 MB   00:01
(12/12): sb-base/x86_64/primary_db                         | 5.9 MB   00:06
sb-epel                                                             12585/12585
Setting up Package Sacks
pkgsack time: 0.019
Repo-id      : sb-base/x86_64
Repo-name    : Stable mirror: CentOS Base 7
Repo-revision: 1525378614
Repo-updated : Thu May  3 15:17:37 2018
Repo-pkgs    : 9,911
Repo-size    : 8.2 G
Repo-mirrors : https://mirrorlist.nethserver.com/?repo=base&arch=x86_64&nsversion=7.5.1804&usetier=$YUM0
Repo-baseurl : https://m1.nethserver.com/stable/7.5.1804/base/x86_64/
Repo-expire  : 7,200 second(s) (last: Tue Jun 19 15:53:42 2018)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/subscription.repo

Repo-id      : sb-centos-sclo-rh/x86_64
Repo-name    : Stable mirror: SCLo rh 7
Repo-revision: 1527163724
Repo-updated : Thu May 24 07:10:49 2018
Repo-pkgs    : 7,467
Repo-size    : 6.6 G
Repo-mirrors : https://mirrorlist.nethserver.com/?repo=centos-sclo-rh&arch=x86_64&nsversion=7.5.1804&usetier=$YUM0
Repo-baseurl : https://m1.nethserver.com/stable/7.5.1804/centos-sclo-rh/x86_64/
Repo-expire  : 7,200 second(s) (last: Tue Jun 19 15:53:42 2018)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/subscription.repo

Repo-id      : sb-centos-sclo-sclo/x86_64
Repo-name    : Stable mirror: SCLo sclo 7
Repo-revision: 1526296152
Repo-updated : Mon May 14 06:09:15 2018
Repo-pkgs    : 521
Repo-size    : 109 M
Repo-mirrors : https://mirrorlist.nethserver.com/?repo=centos-sclo-sclo&arch=x86_64&nsversion=7.5.1804&usetier=$YUM0
Repo-baseurl : https://m1.nethserver.com/stable/7.5.1804/centos-sclo-sclo/x86_64/
Repo-expire  : 7,200 second(s) (last: Tue Jun 19 15:53:43 2018)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/subscription.repo

Repo-id      : sb-epel/x86_64
Repo-name    : Stable mirror: EPEL 7
Repo-revision: 1528116085
Repo-updated : Mon Jun  4 08:01:23 2018
Repo-pkgs    : 12,585
Repo-size    : 13 G
Repo-mirrors : https://mirrorlist.nethserver.com/?repo=epel&arch=x86_64&nsversion=7.5.1804&usetier=$YUM0
Repo-baseurl : https://m1.nethserver.com/stable/7.5.1804/epel/x86_64/
Repo-expire  : 7,200 second(s) (last: Tue Jun 19 15:53:43 2018)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/subscription.repo

Repo-id      : sb-extras/x86_64
Repo-name    : Stable mirror: CentOS Extras 7
Repo-revision: 1527610607
Repo-updated : Tue May 29 11:18:56 2018
Repo-pkgs    : 305
Repo-size    : 545 M
Repo-mirrors : https://mirrorlist.nethserver.com/?repo=extras&arch=x86_64&nsversion=7.5.1804&usetier=$YUM0
Repo-baseurl : https://m1.nethserver.com/stable/7.5.1804/extras/x86_64/
Repo-expire  : 7,200 second(s) (last: Tue Jun 19 15:53:43 2018)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/subscription.repo

Repo-id      : sb-nethserver-base/x86_64
Repo-name    : Stable mirror: NethServer Base 7
Repo-revision: 1527497768
Repo-updated : Mon May 28 03:56:18 2018
Repo-pkgs    : 283
Repo-size    : 1.0 G
Repo-mirrors : https://mirrorlist.nethserver.com/?repo=nethserver-base&arch=x86_64&nsversion=7.5.1804&usetier=$YUM0
Repo-baseurl : https://m1.nethserver.com/stable/7.5.1804/nethserver-base/x86_64/
Repo-expire  : 7,200 second(s) (last: Tue Jun 19 15:53:44 2018)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/subscription.repo

Repo-id      : sb-nethserver-updates/x86_64
Repo-name    : Stable mirror: NethServer Updates 7
Repo-revision: 1528116727
Repo-updated : Mon Jun  4 07:52:09 2018
Repo-pkgs    : 14
Repo-size    : 15 M
Repo-mirrors : https://mirrorlist.nethserver.com/?repo=nethserver-updates&arch=x86_64&nsversion=7.5.1804&usetier=$YUM0
Repo-baseurl : https://m1.nethserver.com/stable/7.5.1804/nethserver-updates/x86_64/
Repo-expire  : 7,200 second(s) (last: Tue Jun 19 15:53:44 2018)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/subscription.repo

Repo-id      : sb-updates/x86_64
Repo-name    : Stable mirror: CentOS Updates 7
Repo-revision: 1527864102
Repo-updated : Fri Jun  1 09:46:22 2018
Repo-pkgs    : 654
Repo-size    : 2.3 G
Repo-mirrors : https://mirrorlist.nethserver.com/?repo=updates&arch=x86_64&nsversion=7.5.1804&usetier=$YUM0
Repo-baseurl : https://m1.nethserver.com/stable/7.5.1804/updates/x86_64/
Repo-expire  : 7,200 second(s) (last: Tue Jun 19 15:53:44 2018)
  Filter     : read-only:present
Repo-filename: /etc/yum.repos.d/subscription.repo

rpm -qf /etc/yum.repos.d/*

[root@nethserver /]# rpm -qf /etc/yum.repos.d/*
centos-release-7-5.1804.el7.centos.2.x86_64
centos-release-7-5.1804.el7.centos.2.x86_64
centos-release-7-5.1804.el7.centos.2.x86_64
centos-release-7-5.1804.el7.centos.2.x86_64
centos-release-7-5.1804.el7.centos.2.x86_64
centos-release-scl-2-2.el7.centos.noarch
centos-release-scl-rh-2-2.el7.centos.noarch
centos-release-7-5.1804.el7.centos.2.x86_64
centos-release-7-5.1804.el7.centos.2.x86_64
epel-release-7-11.noarch
epel-release-7-11.noarch
nethserver-mrmarkuz-0.0.1-2.ns7.noarch
file /etc/yum.repos.d/msprod.repo is not owned by any package
file /etc/yum.repos.d/mssql-server.repo is not owned by any package
nethserver-nethforge-release-7-2.ns7.noarch
nethserver-release-7-8.ns7.noarch
nethserver-release-7-8.ns7.noarch
ocsinventory-release-7-4.el7.ocs.noarch
remi-release-7.5-1.el7.remi.noarch
remi-release-7.5-1.el7.remi.noarch
remi-release-7.5-1.el7.remi.noarch
remi-release-7.5-1.el7.remi.noarch
remi-release-7.5-1.el7.remi.noarch
remi-release-7.5-1.el7.remi.noarch
remi-release-7.5-1.el7.remi.noarch
remi-release-7.5-1.el7.remi.noarch
remi-release-7.5-1.el7.remi.noarch
nethserver-stephdl-1.0.6-1.ns7.sdl.noarch
file /etc/yum.repos.d/subscription.repo is not owned by any package
[root@nethserver /]# [root@nethserver /]# yum repolist -v
sb-centos-sclo-rh                                        | 3.0 kB     00:00
sb-centos-sclo-sclo                                      | 2.9 kB     00:00
sb-epel                                                  | 3.2 kB     00:00
sb-extras                       -bash: [root@nethserver: command not found
                        | 3.4 kB     00:00
sb-nethserver-base                                       | 2.9 kB     00:00
sb-nethserver-updates                                    | 4.1 kB     00:00
sb-updates                                               | 3.4 kB     00:00
(1/12): sb-epel/x86_64/group_gz                            |  88 kB   00:01
(2/12): sb-base/x86_64/group_gz                            | 166 kB   00:01
(3/12): sb-centos-sclo-sclo/x86_64/primary_db              | 205 kB   00:01
(4/12): sb-epel/x86_64/updateinfo                          | 932 kB   00:01
(5/12): sb-centos-sclo-rh/x86_64/primary_db                | 3.5 MB   00:03
(6/12): sb-nethserver-base/x86_64/primary_db               | 294 kB   00:00
(7/12): sb-epel/x86_64/primary                             | 3.5 MB   00:02
(8/12): sb-nethserver-updates/x86_64/group_gz              |  20 kB   00:00
(9/12): sb-nethserver-updates/x86_64/primary_db            |  39 kB   00:0[

Now is working :smile: (after the RE-subscription, of course) I saw librabbitq 08 for update not the last kernel. thanks @davidep for Your help.


(Davide Principi) #4

I’m happy you solved.

a support specialist will be upset if the client is upset for this kind of failures :slight_smile:

Lesson learned: don’t be upset.

…and remi markuz ocsinventory… How many third parties repos did you install? Please consider to remove any additional package that comes from those repositories: problems are difficult to track and debug in a such environment! As the link above states:

The subscription provider may not accept support requests for the contents of custom repositories.


(Hector Perez) #5

Okdoky, I need a SQLserver repositories for SQL-Server database That we have on work (just for check-backups on another server) OCS Inventory for machine info, mrmarkuz for OnlyOffice.

Now everything is back to normal way.