"Unable to set quota for user 'someuser'" error when trying to delete domain or change quota settings in Plesk

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:44:23 UTC

Modified:

2016-12-21 19:06:07 UTC

0

Was this article helpful?


Have more questions?

Submit a request

"Unable to set quota for user 'someuser'" error when trying to delete domain or change quota settings in Plesk

Symptoms

The following error occurs in Plesk when you try to change domain physical quota settings or remove domain/subdomain:

    Error: Unable to delete SysUser: SysUser->systemRemove() failed: usermng failed: usermng: Unable to set quota for user 'someuser'

The following can be found in the /var/log/plesk/panel.log :

    usermng: /usr/sbin/setquota execution failed:
setquota: Cannot find mountpoint for device /dev/simfs
setquota: No correct mountpoint specified.
setquota: Cannot initialize mountpoint scan.
usermng: Unable to set quota for user 'testplesk'

in spite of quota is disabled on hardware node for this Virtuozzo container.

Cause

Plesk uses mount command output to find out if quota is supported in the system. The error occurs in case if Plesk founds that quota is supported ( usrquota option is listed in /etc/mtab ), but actually it is not.

Resolution

  1. It is necessary to check if the quotaugidlimit parameter is defined for the Container ( quotaugidlimit > 0 in the respective .conf file)

  2. In case of the quotaugidlimit parameter is defined ( > 0), then the /etc/mtab file in the Container should be a regular file with configured usrquota value for the "/" folder

  3. But if the quotaugidlimit parameter is not defined or equals 0, then /etc/mtab file should be a link to the /proc/mounts file.

  4. If mtab file is not a link – it can be fixed with the following commands:

    # mv  /etc/mtab /etc/mtab_old
    # ln -s /proc/mounts /etc/mtab
Have more questions? Submit a request
Please sign in to leave a comment.