Hard disk quota is not enabled correctly: quotacheck: Cannot stat() given mountpoint / -vunfm: No such file or directory

Created:

2017-03-09 11:50:37 UTC

Modified:

2017-08-17 03:09:13 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Hard disk quota is not enabled correctly: quotacheck: Cannot stat() given mountpoint / -vunfm: No such file or directory

Applicable to:

  • Plesk Onyx for Linux

Note: This article has the reference to the issue with the fix available:

  • #PPPM-5898 "Plesk failed to correctly respond to subscriptions exceeding the hard disk quota configured."
    Fixed in:
Please consider updating your server:

Symptoms

  • Hard disk quota is enabled on the server (or on a Multi Server service node):

    # yum list installed | grep quota
    quota.x86_64 1:4.01-14.el7 @base
    quota-nls.noarch 1:4.01-14.el7 @base
    # plesk db
    MariaDB [psa]> select * from ServiceNodeEnvironment where name='isHardQuotaEnabled';
    +---------------+---------+--------------------+-------+
    | serviceNodeId | section | name | value |
    +---------------+---------+--------------------+-------+
    | 1 | os | isHardQuotaEnabled | true |
    +---------------+---------+--------------------+-------+
    1 row in set (0.00 sec)
  • Overuse policy in a service plan is set to Overuse is not allowed .

  • When creating a new subscription, the quota is not set correctly:

    # /usr/local/psa/bin/subscription -i example.com | grep 'quota'
    Hard disk quota: 2.44 GB
    # quota -us exampleuser
    Disk quotas for user exampleuser (uid 10002):
    Filesystem space quota limit grace files quota limit grace
    /dev/mapper/centos-root
    404K 0K 2500M 54 0 0
  • Also, the following error could be found in the /var/log/plesk/panel.log on a server or on a Multi Server service node:

    ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/quotacheck_wrapper.sh' ' / -vunfm'] with exit code [2]
    ERR [1] '/usr/local/psa/admin/bin/quotacheck_wrapper.sh' ' / -vunfm' failed with code 2.
    stdout:
    stderr:
    quotacheck: Cannot stat() given mountpoint / -vunfm: No such file or directory
    Skipping...
    quotacheck: No correct mountpoint specified.
    quotacheck: Cannot initialize mountpoint scan.

Cause

This is Plesk bug PPPM-5898 which was fixed in Plesk Onyx 17.5.3 .

Resolution

Upgrade to the latest Plesk version .

As a workaround:

  1. Download and unpack the fixed file to the server:

    # wget https://plesk.zendesk.com/hc/article_attachments/115002052629/ExecuteQuotacheck.php.tar.gz
    # tar -xvf ExecuteQuotacheck.php.tar.gz
    ExecuteQuotacheck.php
  2. Backup the exisiting file and replace it with the patched one:

    # cp /usr/local/psa/admin/plib/DailyMaintainance/Task/ExecuteQuotacheck.php{,.orig}
    # cp ExecuteQuotacheck.php /usr/local/psa/admin/plib/DailyMaintainance/Task/ExecuteQuotacheck.php

Note: the fix is applicable only in Plesk Onyx on CentOS 7

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.