immutable files are preventing cPanel and WHM from updating

luxrum

Member
Feb 28, 2009
6
0
51
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
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
38
248
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.
 

luxrum

Member
Feb 28, 2009
6
0
51
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
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
38
248
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.