cPanel - Unlimited Quota issue in OpenVZ Containers



The Following Two Cases Have the Same Fix:-


Error-Case 1:-

safe_userchgid error in WHM

If you are using OpenVZ container(VPS) you may encounter the following error in WHM when you create new accounts.

safe_userchgid: chown: /home/vps/etc: Permission denied at /usr/local/cpanel/Cpanel/SafetyBits.pm line 93.
Cpanel::SafetyBits::safe_userchgid(517, 12, '/home/vps/etc') called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 846
Whostmgr::Accounts::Create::_wwwacct('dkim', 1, 'mxcheck', 'auto', 'spf', 1, 'maxftp', 'n', ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 1849
Whostmgr::Accounts::Create::__createaccount('mxcheck', 'auto', 'dkim', 1, 'spf', 1, 'language', 'en', ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 1899
Whostmgr::Accounts::Create::_createaccount('mxcheck', 'auto', 'dkim', 1, 'spf', 1, 'language', 'en', ...) called at whostmgr/bin/whostmgr5 line 565
main::wwwacct() called at whostmgr/bin/whostmgr5 line 214

It is the issue in settings the quotaugidlimit value for your VPS. You have to increase quotaugidlimit value to solve this issue.


Error-Case 2:-

When you create new accounts in cPanel/WHM its Quota is shown as Unlimited.
It will not change even if you run /scripts/fixquotas.


Solution:

It is the issue in setting up the quotaugidlimit value for that particular VPS.
In order to fix the issues shown above, you need root access to the Hardware Node (HN) of that particular VPS.

You can fix this issue by following the steps shown below.

1. Login to HN as root user.

2. [root@HN ~] # vzlist -a | grep <IP of VPS>
                  <VPSID>         59 running   <IP>  server.example.com

3. [root@HN ~] # vzctl stop <VPSID>

4. [root@HN ~] # vzctl set <VPSID> --quotaugidlimit 1000 --save
                  CT configuration saved to /etc/vz/conf/<VPSID>.conf

5. [root@HN ~] # vzctl start <VPSID>

If you are facing Case1 issue only, try creating new accounts.

If you are facing Case2 issue you have to do the following steps too.

6. [root@HN ~] # vzctl enter <VPSID>

7. [root@vps ~] # /scripts/fixquotas

Verify the Quota in WHM whether it is updates or not.


Reference:-
http://wiki.openvz.org/User_Guide/Managing_Resources
 
 

One thought on “cPanel - Unlimited Quota issue in OpenVZ Containers”

Leave a Reply