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.

immutable files are preventing cPanel and WHM from updating

Discussion in 'General Discussion' started by luxrum, Jul 22, 2011.

  1. luxrum

    luxrum Member

    Joined:
    Feb 28, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I the dedicated server we are getting mails from cPanel past few days like
    One or more immutable files are preventing cPanel and WHM from updating on your server.

    In the mails it mentioned to follow the steps like
    1. For each immutable file, execute the following commands:
    chattr -i /path/to/file
    echo "/path/to/file" >> /etc/cpanelsync.exclude
    2. Re-sync the files in your cPanel & WHM installation by executing the following command:
    /usr/local/cpanel/scripts/upcp --sync

    In the mail immutable file mentioned is /usr/local/cpanel/bin/startmelange
    When I check the attribute for the above file it show = "----ia-A-----"

    Queries:
    1) Should I leave this mail without following any steps considering it will not harm the cPanel? Or we have to perform for sure?
    2) I have already excluded the file in cpanelsync.exclude without "upcp --sync". Which will not take effect?
    3) Is it compulsery to run "upcp --sync". I have no idea what this command will do. Will it change manythings in cPanel? afraid !!!!

    Please ADVICE

    Thanks,
    Lux
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello Lux,

    You can either make the file mutable or you can instead exclude the file. If you make the file mutable, you would issue:

    Code:
    chattr -ia /usr/local/cpanel/bin/startmelange
    If you exclude the file, it would be:

    Code:
    echo "/usr/local/cpanel/bin/startmelange" >> /etc/cpanelsync.exclude
    You would not have to do both. Doing one will preclude the other triggering the alert.

    As for /scripts/upcp --sync, this simply runs a cPanel update and syncs the files. It's the same as running a forced cPanel update. It will change components in cPanel because it updates everything to the latest versions for your tier.
     
  3. luxrum

    luxrum Member

    Joined:
    Feb 28, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hello,


    Thanks for responding :)

    I got it , AND

    Another question :
    After following one of the step for mutable. Is it compulsery to run "/scripts/upcp --sync"?

    Thanks in advance.
    Lux
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Yes, it is compulsory to run "/scripts/upcp --sync" or "/scripts/upcp --force" after making the file mutable so that it can update.
     
Loading...

Share This Page