Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'General Discussion' started by veronicabend, May 26, 2016.

Tags:
  1. veronicabend

    veronicabend Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    60
    Likes Received:
    1
    Trophy Points:
    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
     
    #1 veronicabend, May 26, 2016
    Last edited: May 26, 2016
  2. veronicabend

    veronicabend Well-Known Member

    Joined:
    Feb 25, 2005
    Messages:
    60
    Likes Received:
    1
    Trophy Points:
    158
    The hosting company has fixed this by reinstalling nscd.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,363
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Abhijit Banik

    Abhijit Banik Member

    Joined:
    Jun 25, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Same error I found and

    After running the given code


    rpm -qa|grep nscd

    I found below result.

    nscd-2.12-1.192.el6.x86_64
    nscd-2.12-1.166.el6_7.7.x86_64

    Then Next what have to do?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,363
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. giorgino

    giorgino Registered

    Joined:
    May 14, 2013
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Same issue here, but I don't know which package remove...

    Code:
    root@server04 [~]# rpm -qa|grep nscd
    nscd-2.12-1.166.el6_7.7.x86_64
    nscd-2.12-1.192.el6.x86_64
    root@server04 [~]# cat /etc/redhat-release
    CentOS release 6.8 (Final)
    root@server04 [~]# 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.
    
    root@server04 [~]# 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.
    
    root@server04 [~]# cat /etc/redhat-release
    CentOS release 6.8 (Final)
    root@server04 [~]# arch
    x86_64
    
    
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,363
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

    Code:
    yum clean all
    yum update
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. giorgino

    giorgino Registered

    Joined:
    May 14, 2013
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Hi Michel, this is the shell log

    Code:
    root@server04 [~]# 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
    root@server04 [~]# 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
    root@server04 [~]# rpm -qa|grep nscd
    nscd-2.12-1.166.el6_7.7.x86_64
    nscd-2.12-1.192.el6.x86_64
    root@server04 [~]# 
    
    Still a couple of files...
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,363
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. giorgino

    giorgino Registered

    Joined:
    May 14, 2013
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Hi Michael this is the output

    Code:
    root@server04 [~]# 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.
    
    root@server04 [~]# 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.
    
    
    
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,363
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    giorgino likes this.
  12. giorgino

    giorgino Registered

    Joined:
    May 14, 2013
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
  13. Jazz123

    Jazz123 Registered

    Joined:
    Nov 13, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Jordan
    cPanel Access Level:
    Website Owner

    Would you please share some visuals for yum update. I am unable to update it. Please guide to me to get through it. thanks
    .
     
    #13 Jazz123, Nov 13, 2016
    Last edited: Nov 13, 2016
  14. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,363
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. PPNSteve

    PPNSteve Well-Known Member

    Joined:
    Mar 13, 2003
    Messages:
    404
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Somewhere in Ilex Forest
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm seeing this error in some current cPanel/WHM versions why is it happening?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,363
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. jpswade

    jpswade Active Member

    Joined:
    Jun 8, 2012
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    root@svr [~]# rpm -qa|grep nscd


    nscd-2.12-1.149.el6_6.9.x86_64

    nscd-2.12-1.166.el6_7.3.x86_64

    root@svr [~]# cat /etc/redhat-release

    CentOS release 6.7 (Final)

    root@svr [~]# arch

    x86_64

    root@svr [~]# cat /usr/local/cpanel/version

    11.64.0.29

    root@svr [~]# 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
     
  18. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,363
    Likes Received:
    1,855
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice