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.

setup.noarch upgrade problem

Discussion in 'General Discussion' started by Bdzzld, Sep 29, 2008.

  1. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Hi,

    On all cPanel servers I've the following problem during /scripts/upcp :

    Code:
    ...
    ...
    Nothing to do
    ...Done
    Updating system packages...Setting up Update Process
    Setting up repositories
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Package setup.noarch 0:2.5.37-1.7 set to be updated
    --> Running transaction check
    
    
    Dependencies Resolved
    
    
    =============================================================================
     Package                 Arch       Version          Repository        Size 
    =============================================================================
    Updating:
     setup                   noarch     2.5.37-1.7       base               31 k
    
    
    Transaction Summary
    =============================================================================
    Install      0 Package(s)         
    Update       1 Package(s)         
    Remove       0 Package(s)         
    Total download size: 31 k
    Downloading Packages:
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    
    
      Updating  : setup                        ######################### [1/2]error: unpacking of archive failed on file /etc/bashrc: cpio: rename
     
    
    
    Updated: setup.noarch 0:2.5.37-1.7
    Complete!
    ...Done
    ...
    ...
    
    This is being repeated on a daily basis (as setup.noarch is not updated at all) on all our cPanel servers.
    Any one had this too and solved it?

    Thanks.
     
  2. alpc360

    alpc360 Active Member

    Joined:
    Mar 30, 2007
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    6
    Hello Bdzzld.

    I am view that it is update the system, It depend of the O.S

    Greetings.
     
  3. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Hi,

    Thanks for responding.
    I know this has to do with /scripts/upcp/ executing yum, but because this problem is occurring on all our cPanel servers, someone must have seen this error too and already dealt with it...

    Using :
    Code:
    WHM 11.23.2 cPanel 11.23.6-S27698
    CENTOS Enterprise 4.7 x86_64 on standard - WHM X v3.1.0
     
  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
    If you install the RPM manually (e.g. yum install setup) does it complete? Does yum then still attempt to install it during upcp?
     
  5. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Hi Kenneth,

    Thanks for your reply. The same problem applies to the manual process.
    It says it's been upgraded while it has not :

    Code:
    # yum install setup
    Setting up Install Process
    Setting up repositories
    addons                    100% |=========================|  951 B    00:00
    base                      100% |=========================| 1.1 kB    00:00
    update                    100% |=========================|  951 B    00:00
    extras                    100% |=========================| 1.1 kB    00:00
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Parsing package install arguments
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Package setup.noarch 0:2.5.37-1.7 set to be updated
    --> Running transaction check
    
    Dependencies Resolved
    
    =============================================================================
     Package                 Arch       Version          Repository        Size
    =============================================================================
    Updating:
     setup                   noarch     2.5.37-1.7       base               31 k
    
    Transaction Summary
    =============================================================================
    Install      0 Package(s)
    Update       1 Package(s)
    Remove       0 Package(s)
    Total download size: 31 k
    Is this ok [y/N]: y
    Downloading Packages:
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Updating  : setup                        ######################### [1/2]
    error: unpacking of archive failed on file /etc/csh.cshrc: cpio: rename
    
    Updated: setup.noarch 0:2.5.37-1.7
    Complete!
    
     
  6. lngtanseco

    lngtanseco Well-Known Member

    Joined:
    Jun 9, 2006
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    You had errors on your yum setup as shown below.

    Code:
    error: unpacking of archive failed on file /etc/csh.cshrc: cpio: rename
    
    What does the following code show you?

    Code:
    ls -l  /etc/csh.cshrc
    lsattr /etc/csh.cshrc
    
     
  7. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Hi lngtanseco,

    Thanks for your reply. Hereby as requested :

    Code:
    [~]# ls -l /etc/csh.cshrc
    -rw-r--r--  1 root root 675 Aug 22  2005 /etc/csh.cshrc
    [~]# lsattr /etc/csh.cshrc
    ----i-------- /etc/csh.cshrc
    
    Regards.
     
  8. lngtanseco

    lngtanseco Well-Known Member

    Joined:
    Jun 9, 2006
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    Please do:

    Code:
    chattr -i /etc/csh.cshrc
    Then do

    Code:
    lsattr /etc/csh.cshrc
    this should give you
    Code:
    ------------- /etc/csh.cshrc
    Now, try again,

    Code:
    yum install setup
    if it spits out errors similar to what you had earlier, then just do 'chattr' command to the file in error like what you did above.
     
  9. Bdzzld

    Bdzzld Well-Known Member

    Joined:
    Apr 3, 2004
    Messages:
    356
    Likes Received:
    1
    Trophy Points:
    18
    Hi lngtanseco,

    It responded with the same error for the file /etc/csh.login. After removing the "immutable bit" for that file too the upgrade seemed to go fine, except for some warnings :

    Code:
    # yum install setup
    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Parsing package install arguments
    Resolving Dependencies
    --> Populating transaction set with selected packages. Please wait.
    ---> Package setup.noarch 0:2.5.37-1.7 set to be updated
    --> Running transaction check
    
    Dependencies Resolved
    
    =============================================================================
     Package                 Arch       Version          Repository        Size
    =============================================================================
    Updating:
     setup                   noarch     2.5.37-1.7       base               31 k
    
    Transaction Summary
    =============================================================================
    Install      0 Package(s)
    Update       1 Package(s)
    Remove       0 Package(s)
    Total download size: 31 k
    Is this ok [y/N]: y
    Downloading Packages:
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Updating  : setup                        ##                        [1/2]warning: /etc/csh.cshrc created as /etc/csh.cshrc.rpmnew
      Updating  : setup                        #####                     [1/2]warning: /etc/passwd created as /etc/passwd.rpmnew
      Updating  : setup                        ######################### [1/2]
      Cleanup   : setup                        ######################### [2/2]
    
    Updated: setup.noarch 0:2.5.37-1.7
    Complete!
    #
    
    Does something need to be changed afterwards or is the upgrade done this way?

    Thanks for helping me out.
     
  10. lngtanseco

    lngtanseco Well-Known Member

    Joined:
    Jun 9, 2006
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    You may want to do forced cpanel update now just to make sure everything is fine.

    Code:
    /scripts/upcp --force
     
Loading...

Share This Page