One or more immutable files are preventing cPanel and WHM from updating on your...

Bdzzld

Well-Known Member
Apr 3, 2004
410
5
168
Hello,

We've received the following message on three of our cPanel servers :

The find-immutable-files script, run by the cPanel & WHM update process (/scripts/upcp), found 11 files distributed by cPanel marked as immutable on your server.


cPanel & WHM cannot update until you make these files mutable. The list of immutable files is located on your server at "/var/cpanel/immutable_files".


The files found are:


/usr/local/cpanel/cgi-sys/Count.cgi
/usr/local/cpanel/cgi-sys/realsignup.cgi
/usr/local/cpanel/cgi-sys/helpdesk.cgi
/usr/local/cpanel/cgi-sys/realhelpdesk.cgi
/usr/local/cpanel/cgi-sys/FormMail-clone.cgi
/usr/local/cpanel/cgi-sys/FormMail.cgi
/usr/local/cpanel/cgi-sys/formmail.pl
/usr/local/cpanel/cgi-sys/formmail.cgi
/usr/local/cpanel/cgi-sys/signup.cgi
/usr/local/cpanel/cgi-sys/FormMail.pl
/usr/local/cpanel/cgi-sys/guestbook.cgi

The find-immutable-files script was run, because there was no record of it ever having run before..
Please note: This refers to completely different files than mentioned in the other post about this subject.

Please advise.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

Hello :)

The listed files are different, however the same principle applies here. These files should not be immutable. You can remove the immutable attribute via the following command:

Code:
chattr -V -i /path/to/file
Thank you.
 

Bdzzld

Well-Known Member
Apr 3, 2004
410
5
168
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

Hi CpanelMichael,

I do understand how the problem can be solved, but the other post refers to ASSP as being the product that changed the attribute. As this is not installed on our servers, something else should be the product/script (or whatever) this time. Maybe this can be looked at by cPanel?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

The files listed in the message you provided are not set immutable by cPanel & WHM. The immutable attribute would have been set manually, or by a third-party application/plugin.

You can use the following command to determine when a file was last modified:

Code:
# stat /path/to/file
This may be helpful in determining when the immutable attribute was applied.

If you would like us to take a look, feel free to open a support ticket via:

Submit A Ticket

Thank you.
 

Bdzzld

Well-Known Member
Apr 3, 2004
410
5
168
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

Thanks for responding SoftDux, but I was aware of it, as the link's also included in my first post.
 

SoftDux

Well-Known Member
May 27, 2006
1,024
5
168
Johannesburg, South Africa
cPanel Access Level
Root Administrator
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

well, i merely pointed the other thread cause the solution in that thread could very well be similar to your problem. ASSP in that case caused the problem.

What 3rd party scripts do you have, or what custom modifications have you made? Those are all CGI scripts, which makes me thing something like Installatron or another 3rd party script installer which you're using could cause the problem.
 

Bdzzld

Well-Known Member
Apr 3, 2004
410
5
168
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

The files were last altered somewhere in 2007. Ages ago in computer life time.
We're only running CSF/LFD and Fantastico which are not by cPanel. Don't think either of them could have changed the bit.
 

SoftDux

Well-Known Member
May 27, 2006
1,024
5
168
Johannesburg, South Africa
cPanel Access Level
Root Administrator
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

The files were last altered somewhere in 2007. Ages ago in computer life time.
We're only running CSF/LFD and Fantastico which are not by cPanel. Don't think either of them could have changed the bit.

Why not? Fantastico is a script installer, isn't it? Have you considered the possibilities?

CSF doesn't change those files though. We use CSF on all our servers and I haven't seen those files changed, only the ones listed in my other thread.
 

Bdzzld

Well-Known Member
Apr 3, 2004
410
5
168
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

Simple. Ony some of our servers reported this problem and all of them have Fantastico installed.
If I recall correctly the attribute was set due to a vulnerabilty in those files during that time.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

As the other thread mentions, the immutable file check does not actually stop the cPanel update itself. That update will still continue. Here is the quote from this location:

The email states the immutable bit blocks cPanel & WHM from upgrading. This is erroneous and is in the process of being changed. The message should really state something like "cPanel & WHM cannot update these files until...." This change is being handled in case 49604.
If you do not wish to make the files mutable, then the update is still going to proceed, only those set files will not be updated.
 

Sash

Well-Known Member
Feb 18, 2003
252
0
166
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

Is there a way to disable this check?
 

Bdzzld

Well-Known Member
Apr 3, 2004
410
5
168
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

Why would you like to disable this check? (It will only run once every ten days according to the logs.)
It may point you into the direction of files which may cause problems being updated by cPanel.
 

alpinist

Member
Jun 9, 2011
14
5
53
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

To exclude every file in a directory from being updated, can I enter just the directory path in cpanelsync.exclude, or do I have to enter the entire path of every file in the directory? In other words, will the following work?

echo "/usr/local/cpanel/base/3rdparty/somedir/" >> /etc/cpanelsync.exclude

or do I have to use

echo "/usr/local/cpanel/base/3rdparty/somedir/file1.php" >> /etc/cpanelsync.exclude
echo "/usr/local/cpanel/base/3rdparty/somedir/file2.php" >> /etc/cpanelsync.exclude
echo "/usr/local/cpanel/base/3rdparty/somedir/file3.php" >> /etc/cpanelsync.exclude
etc.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Re: One or more immutable files are preventing cPanel and WHM from updating on your..

The immutable file check only runs periodically and it does not stop the upgrade. It only stops the files set immutable from updating. There is no reason to exclude the files, since nothing is happening to those files and nothing is stopping the actual cPanel upgrade.