Unable to install or uninstall Plesk Migrator: extension Plesk Migrator can not be removed: filemng failed: filemng: Error occurred during /bin/rm command

Created:

2017-01-13 16:20:15 UTC

Modified:

2017-08-08 13:21:58 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to install or uninstall Plesk Migrator: extension Plesk Migrator can not be removed: filemng failed: filemng: Error occurred during /bin/rm command

Issue Symptoms

Unable to install or uninstall Plesk Migrator:

The extension Plesk Migrator can not be removed: filemng failed: filemng: Error occurred during /bin/rm command

The following error appears in /var/log/plesk/panel.log:

ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/filemng' 'root' 'rm' '-rf' '/opt/psa/admin/plib/modules/panel-migrator' '--allow-root'] with exit code [1]
ERR [1] '/opt/psa/admin/bin/filemng' 'root' 'rm' '-rf' '/opt/psa/admin/plib/modules/panel-migrator' '--allow-root' failed with code 1.
stdout:
rm: cannot remove ‘/opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/confixx/extras/pmm/Dumper.pm’: Operation not permitted
filemng: Error occurred during /bin/rm command.

File Dumper.pm has the following permissions:

# ls -l /opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/confixx/extras/pmm/Dumper.pm
-r-------- 1 root root 16272 Dez 13 22:02 /opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/confixx/extras/pmm/Dumper.pm

File Dumper.pm has the following attributes:

# lsattr  /opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/confixx/extras/pmm/Dumper.pm
-----a-------e-- /opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/confixx/extras/pmm/Dumper.pm

Unable to change permissions for Dumper.pm to correct ones:

# chmod 644 /opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/confixx/extras/pmm/Dumper.pm
chmod: changing permissions of  »/opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/confixx/extras/pmm/Dumper.pm“: Operation not permitted

Conditions

Plesk Migrator could not remove it's file due to 'a' immutable flag set. 'a' stands for 'append' - the file can be appended only.

Resolution

1. Remove 'a' flag:

# chattr -a /opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/confixx/extras/pmm/Dumper.pm

2. The file attributes should be:

# lsattr  /opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/confixx/extras/pmm/Dumper.pm
-------------e-- /opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/confixx/extras/pmm/Dumper.pm

3. Change permissions to correct ones:

# chmod 644 /opt/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/plesk/source/confixx/extras/pmm/Dumper.pm
Have more questions? Submit a request
Please sign in to leave a comment.