The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Suspend problem when Quota Exceed

Discussion in 'General Discussion' started by musioc, Dec 13, 2013.

  1. musioc

    musioc Well-Known Member

    Aug 4, 2011
    Likes Received:
    Trophy Points:
    I think this is a bug in cPanel

    cPanel Uses .htaccess to redirect disabled sites to suspended page.
    When we suspend an account, if that account quota is exceeded, cPanel return error without any change in htaccess

    Locking Password...Locking password for user username.
    passwd: Success
    1Suspending email account logins for .... Failed to write lock file: /home/username/etc/ Disk quota exceeded at /usr/local/cpanel/Cpanel/ line 17.
    [2013-12-13 15:29:53 +0430] warn [suspendacct] could not acquire a lock for '/home/username/etc/' at /usr/local/cpanel/Cpanel/ line 256
    	Cpanel::SafeFile::_safe_open(GLOB(0x3f01c50), '<', '/home/username/etc/', CODE(0x1eec370), 'safeopen') called at /usr/local/cpanel/Cpanel/ line 32
    	Cpanel::SafeFile::safeopen(GLOB(0x3f01c50), '<', '/home/username/etc/') called at /usr/local/cpanel/scripts/suspendacct line 298
    	scripts::suspendacct::_suspendshadowfile('/home/username/etc/') called at /usr/local/cpanel/scripts/suspendacct line 291
    	scripts::suspendacct::__ANON__(CODE(0x3f752a0)) called at /usr/local/cpanel/Cpanel/ line 94
    	Cpanel::AccessIds::__ANON__(CODE(0x3f752a0)) called at /usr/local/cpanel/Cpanel/ line 134
    	Cpanel::AccessIds::do_as_current_user(CODE(0x3f752a0)) called at /usr/local/cpanel/Cpanel/ line 97
    	Cpanel::AccessIds::do_as_user_group('username', 782, CODE(0x3f747f0), 'username', CODE(0x3f747f0)) called at /usr/local/cpanel/Cpanel/ line 67
    	Cpanel::AccessIds::do_as_user('username', CODE(0x3f747f0)) called at /usr/local/cpanel/scripts/suspendacct line 291
    	scripts::suspendacct::suspendshadowfile('username', '/home/username/etc/') called at /usr/local/cpanel/scripts/suspendacct line 145
    	scripts::suspendacct::run('username', 'Suspended as one of reseller mobinho1’s accounts') called at /usr/local/cpanel/scripts/suspendacct line 34
    Failed to read /home/username/etc/ Disk quota exceeded at /usr/local/cpanel/scripts/suspendacct line 306.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    This is currently by design per internal case 61826. The workaround to this problem is to increase the quota of the account prior to suspending it. I suggest opening a feature request if you would like to see a change to this behavior:

    Submit A Feature Request

    Thank you.

Share This Page