How to fix immutable_files error

If you are getting the above error while executing upcp on your server then just remove the immutable attribute for the file listed in the error.

Below is the command to remove the immutable attributes

chattr -V -i /path/to/file

To check for the immutable attributes on a file run the below command

[email protected][~]# /usr/local/cpanel/scripts/check_immutable_files

1 immutable files were found on the system, update cannot proceed.

Now just check the file name for which immutable attributes are placed


[email protected] [~]# cat /var/cpanel/immutable_files

 

/usr/local/cpanel/bin/ftpupdate
 

To remove the immutable attributes for the file “/usr/local/cpanel/bin/ftpupdate” run the below command


[email protected][~]# chattr -V -i /usr/local/cpanel/bin/ftpupdate
chattr 1.39 (29-May-2006)
Flags of /usr/local/cpanel/bin/ftpupdate set as -u—a-A–

 

Now, just again check for the immutable files


[email protected][~]# /usr/local/cpanel/scripts/check_immutable_files
OK: No immutable files were found on the system.

 

That’s all you are done.