Fatal error when trying to restart services: multiple versions of nscd installed

veronicabend

Well-Known Member
Feb 25, 2005
76
2
158
Today when I go to WHM >> Restart Services no matter which service it is, I get a red sign saying

"A fatal error occured while processing this directive"

When I click show it shows:

Multiple versions of the nscd are installed: 2.12-1.166.el6_7.7
2.12-1.192.el6 at /usr/local/cpanel/Cpanel/SysPkgs/YUM.pm line 422.
at /usr/local/cpanel/Cpanel/SysPkgs/YUM.pm line 422.
Cpanel::SysPkgs::YUM::installed_package_version(Cpanel::SysPkgs::YUM=HASH(0x2551350), "nscd") called at /usr/local/cpanel/Cpanel/NSCD/Recommended.pm line 40
Cpanel::NSCD::Recommended::get_report() called at /usr/local/cpanel/Cpanel/Services.pm line 34
Cpanel::Services::_get_services() called at /usr/local/cpanel/Cpanel/Services.pm line 86
Cpanel::Services::get_service_list() called at /usr/local/cpanel/Cpanel/Services/Installed/State.pm line 129
Cpanel::Services::Installed::State::_get_handled_services() called at /usr/local/cpanel/Cpanel/Services/Installed/State.pm line 23
Cpanel::Services::Installed::State::get_installed_services_state() called at whostmgr/bin/whostmgr.pl line 5118
main::srvmng() called at whostmgr/bin/whostmgr.pl line 429

Please tell me how I can resolve this.

WHM version is 56.0 (build 21).

Thanks.

Edit:
- I used this ok on tuesday so I'm thinking cpanel must have updated since then
- I noticed the same issue on two different servers so far.
- I also get the same red sign and error if I go to Service Configuration >> Service Manager
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

I'm happy to see the issue was resolved after removing the duplicate nscd RPM. I suggest running "yum update" on your system to verify the duplicate RPM is not coming from a custom YUM repo. You can use this command after running "yum update" to verify only one nscd RPM is installed:

Code:
rpm -qa|grep nscd
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

Verify your operating system and architecture with the following commands:

Code:
cat /etc/redhat-release
arch
Also, use the "yum info" command on each package to see additional information. EX:

Code:
yum info  nscd-2.12-1.192.el6.x86_64
Then, delete the duplicate RPM that doesn't match your OS version, YUM repo, or architecture with a command such as:

Code:
rpm -e --nodeps nscd-2.12-1.192.el6.x86_64
Thank you.
 

giorgino

Registered
May 14, 2013
4
1
3
cPanel Access Level
Website Owner
Hello,

Verify your operating system and architecture with the following commands:

Code:
cat /etc/redhat-release
arch
Also, use the "yum info" command on each package to see additional information. EX:

Code:
yum info  nscd-2.12-1.192.el6.x86_64
Then, delete the duplicate RPM that doesn't match your OS version, YUM repo, or architecture with a command such as:

Code:
rpm -e --nodeps nscd-2.12-1.192.el6.x86_64
Thank you.
Same issue here, but I don't know which package remove...

Code:
[email protected] [~]# rpm -qa|grep nscd
nscd-2.12-1.166.el6_7.7.x86_64
nscd-2.12-1.192.el6.x86_64
[email protected] [~]# cat /etc/redhat-release
CentOS release 6.8 (Final)
[email protected] [~]# yum info nscd-2.12-1.166.el6_7.7.x86_64
Plugin abilitati:fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.prometeus.net
 * elrepo: mirrors.evowise.com
 * extras: mirrors.prometeus.net
 * rpmforge: mirror.de.leaseweb.net
 * updates: mirrors.prometeus.net
Pacchetti installati
Nome         : nscd
Arch         : x86_64
Versione     : 2.12
Rilascio     : 1.166.el6_7.7
Dimensione   : 180 k
Repo         : installed
Dal repo     : updates
Sommario     : A Name Service Caching Daemon (nscd).
URL          : http://sources.redhat.com/glibc/
Licenza      : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Descrizione  : Nscd caches name service lookups and can dramatically improve
             : performance with NIS+, and may help with DNS as well.

[email protected] [~]# yum info nscd-2.12-1.192.el6.x86_64
Plugin abilitati:fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.prometeus.net
 * elrepo: mirrors.evowise.com
 * extras: mirrors.prometeus.net
 * rpmforge: mirror.de.leaseweb.net
 * updates: mirrors.prometeus.net
Pacchetti installati
Nome         : nscd
Arch         : x86_64
Versione     : 2.12
Rilascio     : 1.192.el6
Dimensione   : 180 k
Repo         : installed
Sommario     : A Name Service Caching Daemon (nscd).
URL          : http://sources.redhat.com/glibc/
Licenza      : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Descrizione  : Nscd caches name service lookups and can dramatically improve
             : performance with NIS+, and may help with DNS as well.

[email protected] [~]# cat /etc/redhat-release
CentOS release 6.8 (Final)
[email protected] [~]# arch
x86_64
 

giorgino

Registered
May 14, 2013
4
1
3
cPanel Access Level
Website Owner
Hello,

Please let us know if the following commands help to address this issue:

Code:
yum clean all
yum update
Thank you.
Hi Michel, this is the shell log

Code:
[email protected] [~]# yum clean all
Plugin abilitati:fastestmirror, security
Pulizia dei repository:base elasticsearch-2.x elrepo extras rpmforge updates
Pulizia completa
Cleaning up list of fastest mirrors
[email protected] [~]# yum update
Plugin abilitati:fastestmirror, security
Impostazione processo di aggiornamento
Determining fastest mirrors
 * base: it.centos.contactlab.it
 * elrepo: mirror.imt-systems.com
 * extras: it.centos.contactlab.it
 * rpmforge: mirror.de.leaseweb.net
 * updates: it.centos.contactlab.it
base                                                                                                                                                  | 3.7 kB     00:00    
base/primary_db                                                                                                                                       | 4.7 MB     00:00    
elasticsearch-2.x                                                                                                                                     | 2.9 kB     00:00    
elasticsearch-2.x/primary_db                                                                                                                          | 7.7 kB     00:00    
elrepo                                                                                                                                                | 2.9 kB     00:00    
elrepo/primary_db                                                                                                                                     | 730 kB     00:00    
extras                                                                                                                                                | 3.4 kB     00:00    
extras/primary_db                                                                                                                                     |  37 kB     00:00    
rpmforge                                                                                                                                              | 1.9 kB     00:00    
rpmforge/primary_db                                                                                                                                   | 2.7 MB     00:00    
updates                                                                                                                                               | 3.4 kB     00:00    
updates/primary_db                                                                                                                                    | 2.6 MB     00:00    
Nessun pacchetto marcato per l'aggiornamento
[email protected] [~]# rpm -qa|grep nscd
nscd-2.12-1.166.el6_7.7.x86_64
nscd-2.12-1.192.el6.x86_64
[email protected] [~]#
Still a couple of files...
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
You can use the "yum info" command to see which YUM Repo the package is coming from so you can then exclude it from that Repo. EX:

Code:
yum info nscd-2.12-1.166.el6_7.7.x86_64
yum info nscd-2.12-1.192.el6.x86_64
Let us know the output.

Thanks!
 

giorgino

Registered
May 14, 2013
4
1
3
cPanel Access Level
Website Owner
You can use the "yum info" command to see which YUM Repo the package is coming from so you can then exclude it from that Repo. EX:

Code:
yum info nscd-2.12-1.166.el6_7.7.x86_64
yum info nscd-2.12-1.192.el6.x86_64
Let us know the output.

Thanks!
Hi Michael this is the output

Code:
[email protected] [~]# yum info nscd-2.12-1.166.el6_7.7.x86_64
Plugin abilitati:fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: it.centos.contactlab.it
 * elrepo: mirror.imt-systems.com
 * extras: it.centos.contactlab.it
 * rpmforge: mirror.de.leaseweb.net
 * updates: it.centos.contactlab.it
base                                                                                                                                                  | 3.7 kB     00:00    
elasticsearch-2.x                                                                                                                                     | 2.9 kB     00:00    
elrepo                                                                                                                                                | 2.9 kB     00:00    
extras                                                                                                                                                | 3.4 kB     00:00    
rpmforge                                                                                                                                              | 1.9 kB     00:00    
updates                                                                                                                                               | 3.4 kB     00:00    
Pacchetti installati
Nome         : nscd
Arch         : x86_64
Versione     : 2.12
Rilascio     : 1.166.el6_7.7
Dimensione   : 180 k
Repo         : installed
Dal repo     : updates
Sommario     : A Name Service Caching Daemon (nscd).
URL          : http://sources.redhat.com/glibc/
Licenza      : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Descrizione  : Nscd caches name service lookups and can dramatically improve
             : performance with NIS+, and may help with DNS as well.

[email protected] [~]# yum info nscd-2.12-1.192.el6.x86_64
Plugin abilitati:fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: it.centos.contactlab.it
 * elrepo: mirror.imt-systems.com
 * extras: it.centos.contactlab.it
 * rpmforge: mirror.de.leaseweb.net
 * updates: it.centos.contactlab.it
Pacchetti installati
Nome         : nscd
Arch         : x86_64
Versione     : 2.12
Rilascio     : 1.192.el6
Dimensione   : 180 k
Repo         : installed
Sommario     : A Name Service Caching Daemon (nscd).
URL          : http://sources.redhat.com/glibc/
Licenza      : LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Descrizione  : Nscd caches name service lookups and can dramatically improve
             : performance with NIS+, and may help with DNS as well.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

You can remove nscd-2.12-1.192.el6.x86_64 via a command such as:

Code:
rpm -e --nodeps nscd-2.12-1.192.el6.x86_64
Thank you.
 
  • Like
Reactions: giorgino

Jazz123

Registered
Nov 13, 2016
1
0
1
Jordan
cPanel Access Level
Website Owner
Hello,

I'm happy to see the issue was resolved after removing the duplicate nscd RPM. I suggest running "yum update" on your system to verify the duplicate RPM is not coming from a custom YUM repo. You can use this command after running "yum update" to verify only one nscd RPM is installed:

Code:
rpm -qa|grep nscd
Thank you.

Would you please share some visuals for yum update. I am unable to update it. Please guide to me to get through it. thanks
.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Would you please share some visuals for yum update. I am unable to update it. Please guide to me to get through it. thanks
Could you provide some more information on the specific issue you are currently facing so we can guide you with the best solution/steps?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
I'm seeing this error in some current cPanel/WHM versions why is it happening?
Hello,

Could you run the following commands on an affected system and let us know the output?

Code:
rpm -qa|grep nscd
cat /etc/redhat-release
arch
cat /usr/local/cpanel/version
ls /etc/yum.repos.d
Thank you.
 

jpswade

Active Member
Jun 8, 2012
25
0
51
cPanel Access Level
Root Administrator
[email protected] [~]# rpm -qa|grep nscd


nscd-2.12-1.149.el6_6.9.x86_64

nscd-2.12-1.166.el6_7.3.x86_64

[email protected] [~]# cat /etc/redhat-release

CentOS release 6.7 (Final)

[email protected] [~]# arch

x86_64

[email protected] [~]# cat /usr/local/cpanel/version

11.64.0.29

[email protected] [~]# ls /etc/yum.repos.d

./ CentOS-Debuginfo.repo CentOS-fasttrack.repo vz.repo

../ CentOS-Media.repo MariaDB100.repo

CentOS-Base.repo CentOS-Vault.repo cPAddons.repo
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
[email protected] [~]# rpm -qa|grep nscd


nscd-2.12-1.149.el6_6.9.x86_64

nscd-2.12-1.166.el6_7.3.x86_64
Hello,

This often happens when a YUM transaction fails to complete. Try running the following command to see if it allows YUM to finish the transaction, and erase the older RPM:

Code:
yum-complete-transaction
Thank you.