Applicable to:
- Plesk for Linux
Symptoms
-
On a Plesk for Linux server, different operations like:
- renaming the subscription's system user in Domains > example.com > Hosting & DNS > Web Hosting Access;
- modifying settings of an additional FTP user in Domains > example.com > FTP Access;
- renaming a domain;
- restoring a Plesk backup;
- deleting a web user;
fail with the error like below which can be also found in the log file
/var/log/plesk/panel.log
:SysUser::update() failed: Unable to execute usermng: usermng: /usr/sbin/usermod execution failed: usermod: user johndoe is currently used by process 4758 usermng: Unable to modify user: johndoe
Unable to execute usermng: usermng: /usr/sbin/userdel execution failed: userdel: user johndoe is currently used by process 4382 usermng: Unable to delete user: johndoe
usermod: user johndoe is currently used by process 2367804
usermng: Unable to modify user: johndoe -
PHP-FPM is set as a PHP handler in Domains > example.com > PHP Settings.
Cause
Plesk bug PPPM-10717.
Resolution
Until the bug is fixed, use the workaround:
-
Go to Domains > example.com > PHP Settings and switch the PHP handler from FPM to CGI/FastCGI one.
Note: If only FPM by nginx is present in Domains > example.com > PHP Settings, enable the option Proxy Mode in Domains > example.com > Apache and nginx Settings.
- Perform the operation that was failing.
-
Set PHP-FPM handler back in Domains > example.com > PHP Settings
- If the issue still persists, temporarily suspend the subscription and try again.
Comments
2 comments
Sorry but the resolution in the article is misleading. usedmod fails because the user has active processes.
Resolution:
ssh into plesk and execute the following command to terminate user processes.
After user processes are terminated usermod won't fail anymore.
None of the solutions in this article worked for us. It appears that Plesk is spawning a user process *just* prior to trying to change the username on the subscription/system user. Selman's solution above only worked when we triggered the username change, then repeatedly ran the command while the change was in progress and did so until success.
Please sign in to leave a comment.