The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Easyapache Fails Due to Coreutils and Findutils

Discussion in 'EasyApache' started by BlackRain, Jun 26, 2009.

  1. BlackRain

    BlackRain Well-Known Member

    Joined:
    May 28, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Today, while trying to update apache/PHP via Cpanel's EasyApache module, the update halts due to a failure of the Yum to update Coreutils and Findutils.

    I have tried to install each via RPM and forced upcp and no luck.

    Any ideas on what is causing this to happen?

    Log of the failed update.

    Code:
    !
    !! Creating backup of working apache in '/usr/local/apache.backup'. !!
    !! Backup of working apache complete. !!
    Checking that all tarballs are present and up to date.
    Checking that all packages are present and up to date.
    Excluding Packages in global exclude list
    Finished
    Setting up Install Process
    Parsing package install arguments
    No package automake19 available.
    Package gettext-0.14.6-4.el5.i386 already installed and latest version
    Package 2:libpng-devel-1.2.10-7.1.el5_3.2.i386 already installed and latest version
    Package readline-devel-5.1-1.1.i386 already installed and latest version
    Package openssl-0.9.8e-7.el5.i686 already installed and latest version
    No package libpng-dev available.
    Package zlib-devel-1.2.3-3.i386 already installed and latest version
    No package autoconf261 available.
    Package libidn-devel-0.6.5-1.1.i386 already installed and latest version
    No package gmake available.
    Package libidn-0.6.5-1.1.i386 already installed and latest version
    Package libXpm-3.5.5-3.i386 already installed and latest version
    Package openssl-devel-0.9.8e-7.el5.i386 already installed and latest version
    Package automake-1.9.6-2.1.noarch already installed and latest version
    Package patch-2.5.4-29.2.3.el5.i386 already installed and latest version
    No package libstdc++-dev available.
    No package libltdl3-devel available.
    No package libltdl available.
    No package libopenssl0.9.7-static-devel available.
    No package readline-dev available.
    Package libtool-ltdl-devel-1.5.22-6.1.i386 already installed and latest version
    Package libXpm-devel-3.5.5-3.i386 already installed and latest version
    Package sed-4.1.5-5.fc6.i386 already installed and latest version
    No package libXpm-dev available.
    Package lsof-4.78-3.i386 already installed and latest version
    No package krb5-dev available.
    Package flex-2.5.4a-41.fc6.i386 already installed and latest version
    No package glibc-dev available.
    No package expat-dev available.
    Package krb5-devel-1.6.1-31.el5_3.3.i386 already installed and latest version
    No package xorg-x11-devel available.
    Package libtool-ltdl-1.5.22-6.1.i386 already installed and latest version
    No package libssl-dev available.
    Package bzip2-devel-1.0.3-4.el5_2.i386 already installed and latest version
    Package pam-devel-0.99.6.2-4.el5.i386 already installed and latest version
    No package libopenssl0-devel available.
    No package zlib1-devel available.
    Package expat-devel-1.95.8-8.2.1.i386 already installed and latest version
    No package libopenssl0-dev available.
    Package glibc-devel-2.5-34.i386 already installed and latest version
    Package gcc-c++-4.1.2-44.el5.i386 already installed and latest version
    Package expat-1.95.8-8.2.1.i386 already installed and latest version
    Package libstdc++-4.1.2-44.el5.i386 already installed and latest version
    Package zlib-1.2.3-3.i386 already installed and latest version
    Package bison-2.3-2.1.i386 already installed and latest version
    Package libstdc++-devel-4.1.2-44.el5.i386 already installed and latest version
    Package libjpeg-devel-6b-37.i386 already installed and latest version
    No package libtool-libltdl-devel available.
    Package libtool-1.5.22-6.1.i386 already installed and latest version
    No package openssl-dev available.
    No package libopenssl0 available.
    Package bzip2-libs-1.0.3-4.el5_2.i386 already installed and latest version
    No package libz-devel available.
    No package libjpeg-dev available.
    No package pam-dev available.
    No package libltdl-devel available.
    No package libopenssl0.9.7-devel available.
    Package e2fsprogs-devel-1.39-20.el5.i386 already installed and latest version
    Package 1:make-3.81-3.el5.i386 already installed and latest version
    Package libX11-devel-1.0.3-9.el5.i386 already installed and latest version
    Package gd-2.0.33-9.4.el5_1.1.i386 already installed and latest version
    Package cpp-4.1.2-44.el5.i386 already installed and latest version
    No package xorg-x11-dev available.
    Package gcc-4.1.2-44.el5.i386 already installed and latest version
    No package ssl-dev available.
    Package autoconf-2.59-12.noarch already installed and latest version
    No package lex available.
    Resolving Dependencies
    --> Running transaction check
    ---> Package coreutils.i386 0:5.97-19.el5 set to be updated
    --> Processing Dependency: findutils for package: coreutils
    --> Running transaction check
    ---> Package findutils.i386 1:4.2.27-5.el5 set to be updated
    --> Finished Dependency Resolution
    Dependencies Resolved
    ================================================================================
    Package            Arch          Version                   Repository     Size
    ================================================================================
    Installing:
    coreutils          i386          5.97-19.el5               base          3.6 M
    Installing for dependencies:
    findutils          i386          1:4.2.27-5.el5            base          294 k
    Transaction Summary
    ================================================================================
    Install      2 Package(s)        
    Update       0 Package(s)        
    Remove       0 Package(s)        
    Total size: 3.9 M
    Downloading Packages:
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing     : findutils                                         [1/2]Error unpacking rpm package 1:findutils-4.2.27-5.el5.i386
    
    error: unpacking of archive failed on file /usr/bin/find: cpio: rename
      Installing     : coreutils                                         [2/2]Error unpacking rpm package coreutils-5.97-19.el5.i386
    
    error: unpacking of archive failed on file /bin/ls: cpio: rename
    Installed: coreutils.i386 0:5.97-19.el5
    Dependency Installed: findutils.i386 1:4.2.27-5.el5
    Complete!
    !! ensure() rc was '0', exit status was '256', perl '$?' was '0', exit sig '0', core dump: '0', shell '$?' was '1' !!
    
    !! Simulating failed Cpanel::SysPkgs as per 'simulate-failed-syspkgs' flag !!
    
    !! Could not ensure pkglist 'automake19, gettext, libpng-devel, readline-devel, openssl, libpng-dev, zlib-devel, autoconf261, libidn-devel, gmake, libidn, libXpm, openssl-devel, automake, coreutils, patch, libstdc++-dev, libltdl3-devel, libltdl, libopenssl0.9.7-static-devel, readline-dev, libtool-ltdl-devel, libXpm-devel, sed, libXpm-dev, lsof, krb5-dev, flex, glibc-dev, expat-dev, krb5-devel, xorg-x11-devel, libtool-ltdl, libssl-dev, bzip2-devel, pam-devel, libopenssl0-devel, zlib1-devel, expat-devel, libopenssl0-dev, glibc-devel, gcc-c++, expat, libstdc++, zlib, bison, libstdc++-devel, libjpeg-devel, libtool-libltdl-devel, libtool, openssl-dev, libopenssl0, bzip2-libs, libz-devel, libjpeg-dev, pam-dev, fileutils, libltdl-devel, libopenssl0.9.7-devel, e2fsprogs-devel, make, libX11-devel, gd, cpp, xorg-x11-dev, gcc, ssl-dev, autoconf, lex' !!
    !! The server's system package manager, 'YUM', failed. !!
    
    !!
    This is the command that failed: yum --exclude=kernel* -y install automake19 gettext libpng-devel readline-devel openssl libpng-dev zlib-devel autoconf261 libidn-devel gmake libidn libXpm openssl-devel automake coreutils patch libstdc++-dev libltdl3-devel libltdl libopenssl0.9.7-static-devel readline-dev libtool-ltdl-devel libXpm-devel sed libXpm-dev lsof krb5-dev flex glibc-dev expat-dev krb5-devel xorg-x11-devel libtool-ltdl libssl-dev bzip2-devel pam-devel libopenssl0-devel zlib1-devel expat-devel libopenssl0-dev glibc-devel gcc-c++ expat libstdc++ zlib bison libstdc++-devel libjpeg-devel libtool-libltdl-devel libtool openssl-dev libopenssl0 bzip2-libs libz-devel libjpeg-dev pam-dev fileutils libltdl-devel libopenssl0.9.7-devel e2fsprogs-devel make libX11-devel gd cpp xorg-x11-dev gcc ssl-dev autoconf lex !!
    
    !!
    Since EasyApache was unable to resolve it automatically you should: 1) Manually run the failed YUM command (shown above) via SSH 2) See if your particular error is addressed at http://www.cpanel.net/support/could_not_ensurepkgs.htm 3) Resolve the YUM problem manually 4) Re-run EasyApache !!
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Do you see the failure to replace the files in /usr/bin and /bin?

    At first glance, I would suspect those are set immutable on your server (chattr +i)

    If they are, try removing the immutable flag and see if you are able to install
     
  3. BlackRain

    BlackRain Well-Known Member

    Joined:
    May 28, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I tried changing Chown/Group via SSH for the file find to 'root'. The error says that I do not have permission to do so even though I am logged in as root. The file is 644.

    The file 'find' owner is 112/114. I have not had this problem before. To I have to shut down apache first?
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    As Spiral mentioned, the files in question are immutable, meaning nothing and no one can change them. To change them you need to remove the immutable bit from the file. For example:

    Code:
    chattr -i /usr/bin/find
    
    Once you perform that for all the files that are immutable, the update will succeed.
     
  5. BlackRain

    BlackRain Well-Known Member

    Joined:
    May 28, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I followed your advice and it did not fix the upgrade issue.

    Here is a log of the results. Perhaps, I am missing something?

     
    #5 BlackRain, Jun 29, 2009
    Last edited: Jun 29, 2009
  6. BlackRain

    BlackRain Well-Known Member

    Joined:
    May 28, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    It seems that even by using the chattr command the file is still immutable.

    a = 'Append only. Files with this attribute set can only be added to. '
    s = 'When a file with this attribute is set its blocks on the disk are zeroed first.'

    And Many thanks for replying to my questions!
     
    #6 BlackRain, Jun 29, 2009
    Last edited: Jun 29, 2009
  7. BlackRain

    BlackRain Well-Known Member

    Joined:
    May 28, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Just updated to the latest CURRENT version of cPanel 11.24.4-C36939 to see if Easy::Apache v3.2.0 Build 4744 would help solve this barrier to upgrading MySQl, PHP, and Apache via Cpanel and no luck.

    I tried changing the file attributes by creating a user 122 and a group 114, but that failed as well.


    I guess I am stuck as no one has any idea how to solve this.
     
    #7 BlackRain, Jul 1, 2009
    Last edited: Jul 1, 2009
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Please open a support ticket with your license provider, or at https://tickets.cpanel.net/submit/index.cgi?reqtype=tickets
     
  9. BlackRain

    BlackRain Well-Known Member

    Joined:
    May 28, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Things I have learned.

    1) This server was completely configured by installing Cpanel/WHM on to a fresh hard drive and using Cpanel EasyApache. Some how three files (/usr/bin/find, /usr/bin/ls, etc) were installed using user 122 and group 114.

    2) These files are unable of being modified by root. They are not immutable since no chattr command was used.

    3) SU to user 122 does not allow the file to be modified or deleted.

    4) There is no user 122 in my root wheel.

    5) By not being able to modify find and ls; Easyapache can not be run successfully as Cpanel requires Coreutils and Findutils to be installed. Findutils and Coreutils can't install because find and ls won't allow it.

    No one knows how to correct this short of a reinstall recommendation.

    Sigh.

    My solution was to add coreutils and findutils to my yum.conf exclude and do an EasyApache run. This is not ideal as these two packages are not installed.

    When looking back at find and ls in my /bin directory; it appears that there are multitude of failed cpanel/yum upgrades of those files due to permission errors.
     
Loading...

Share This Page