Issue
In CloudLinux Manager > Users tab, the following error appears:
The data received is wrong. Contact resolution support.
Traceback (most recent call last):
File "/usr/share/l.v.e-manager/utils/cloudlinux-cli.py", line 16, in cloudlinux_cli_admin.main()
File "/usr/share/l.v.e-manager/utils/libcloudlinux.py", line 149, in main endpoint()
File "/usr/share/l.v.e-manager/utils/cloudlinux_cli.py", line 154, in cl_limits cl.run(list_to_request)
File "/opt/alt/python37/lib/python3.7/site-packages/cllimits/lib/limits.py", line 139, in run return self._get_run()
File "/opt/alt/python37/lib/python3.7/site-packages/cllimits/lib/limits.py", line 203, in _get_run return self._get_action_list()
File "/opt/alt/python37/lib/python3.7/site-packages/cllimits/lib/limits.py", line 433, in _get_action_list soft_limit, hard_limit = self._cl_quota.get_inodes_limits_by_uid(uid)
File "/opt/alt/python37/lib/python3.7/site-packages/cllimits/clquota_lib.py", line 89, in get_inodes_limits_by_uid self._load_users_info()
File "/opt/alt/python37/lib/python3.7/site-packages/cllimits/clquota_lib.py", line 177, in _load_users_info self._inode_user_limits[uid] = (int(limits[1][1]), int(limits[2][1]))KeyError: 1
Environment
- CloudLinux 6/7/8
- WHM/cPanel
Solution
Run the following script to fix quotas:
/usr/local/cpanel/scripts/fixquotas
In case fixquotas
did not help:
- Run
cl-quotas
to identify affected UID. In the given example, UID 9452 is affected:
# cl-quota
id inodes_used inodes_soft inodes_hard
--------------------------------------------------------------------------------
[...]
9452 6285 150000 300000
ERROR: not all arguments converted during string formatting - Get the next UID after '9452' from
/etc/passwd
.# cut -f1,3 -d : /etc/passwd | sort -t':' -k2 | grep -A2 9452
- In cPanel identify the package and reset quota for the package or for the affected account.
- Re-run
cl-quota
again.
Cause
Unavailability to read quotas information from the system. The script provided in the solution section fixes the most common issues with quotas on cPanel.
Comments
0 comments
Please sign in to leave a comment.