Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Error when suspending account

Discussion in 'General Discussion' started by Leslie de Groot, Jul 28, 2017.

  1. Leslie de Groot

    Joined:
    Jul 13, 2017
    Messages:
    14
    Likes Received:
    4
    Trophy Points:
    3
    Location:
    The Netherlands
    cPanel Access Level:
    Root Administrator
    After some more testing i've spotted a error again:

    Code:
    Changing Shell to /bin/false...Done
    Locking Password...Done
    Error while adding 'USER' to 'cpanelsuspended' at /usr/local/cpanel/Cpanel/Sys/Group.pm line 216.
       Cpanel::Sys::Group::_croak("Error while adding 'USER' to 'cpanelsuspended'") called at /usr/local/cpanel/Cpanel/Sys/Group.pm line 154
       Cpanel::Sys::Group::add_member(Cpanel::Sys::Group=HASH(0x2042488), "USER") called at /usr/local/cpanel/Whostmgr/Accounts/Suspension/SSH.pm line 38
       Whostmgr::Accounts::Suspension::SSH::suspend("USER") called at /usr/local/cpanel/Whostmgr/Accounts/CommandQueue.pm line 76
       Whostmgr::Accounts::CommandQueue::__ANON__() called at /usr/local/cpanel/Cpanel/CommandQueue.pm line 61
       Cpanel::CommandQueue::__ANON__() called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 98
       eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 89
       Try::Tiny::try(CODE(0x1ac3bd8), Try::Tiny::Catch=REF(0xe518d0)) called at /usr/local/cpanel/Cpanel/CommandQueue.pm line 76
       Cpanel::CommandQueue::run(Cpanel::CommandQueue=HASH(0x1d5c160)) called at /usr/local/cpanel/Whostmgr/Accounts/CommandQueue.pm line 82
       Whostmgr::Accounts::CommandQueue::_init_and_do_action("Whostmgr::Accounts::Suspend", "username", "USER", "action", "suspend", "undo_action", "unsuspend") called at /usr/local/cpanel/Whostmgr/Accounts/Suspend.pm line 23
       Whostmgr::Accounts::Suspend::new("Whostmgr::Accounts::Suspend", "USER") called at /usr/local/cpanel/scripts/suspendacct line 200
       scripts::suspendacct::__ANON__() called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 98
       eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 89
       Try::Tiny::try(CODE(0x1ac32f0), Try::Tiny::Catch=REF(0x1979e18)) called at /usr/local/cpanel/scripts/suspendacct line 204
       scripts::suspendacct::run("USER", "", "") called at /usr/local/cpanel/scripts/suspendacct line 49
    Suspending mysql users
    Suspending websites...
    Suspending FTP accounts...
    Suspending outgoing email....Done
    USER's account has been suspended
    
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Leslie de Groot,

    I've moved this post to it's own thread.

    I'm unable to reproduce that error message when suspending an account on a server using cPanel version 66.0.7. Could you let us know the specific steps you are using to reproduce this issue, and confirm if it's happening for all accounts?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Leslie de Groot

    Joined:
    Jul 13, 2017
    Messages:
    14
    Likes Received:
    4
    Trophy Points:
    3
    Location:
    The Netherlands
    cPanel Access Level:
    Root Administrator
    Hello @cPanelMichael ,

    I am on v66.0.7 now.

    I've tried to reproduce this, it doesn't happen that often, but when it does happen:

    1. Unsuspend an account
    2. Wait for some time until the website is visible again
    3. Visit the website
    4. Suspend the account
    Additional info: This happens with all accounts.

    Code:
    Changing Shell to /bin/false...Done
    Locking Password...Done
    Error while adding 'USER' to 'cpanelsuspended' at /usr/local/cpanel/Cpanel/Sys/Group.pm line 216.
        Cpanel::Sys::Group::_croak("Error while adding 'USER' to 'cpanelsuspended'") called at /usr/local/cpanel/Cpanel/Sys/Group.pm line 154
        Cpanel::Sys::Group::add_member(Cpanel::Sys::Group=HASH(0x393a2f0), "USER") called at /usr/local/cpanel/Whostmgr/Accounts/Suspension/SSH.pm line 38
        Whostmgr::Accounts::Suspension::SSH::suspend("USER") called at /usr/local/cpanel/Whostmgr/Accounts/CommandQueue.pm line 76
        Whostmgr::Accounts::CommandQueue::__ANON__() called at /usr/local/cpanel/Cpanel/CommandQueue.pm line 61
        Cpanel::CommandQueue::__ANON__() called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 98
        eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 89
        Try::Tiny::try(CODE(0x33d0d50), Try::Tiny::Catch=REF(0x279a920)) called at /usr/local/cpanel/Cpanel/CommandQueue.pm line 76
        Cpanel::CommandQueue::run(Cpanel::CommandQueue=HASH(0x3820db0)) called at /usr/local/cpanel/Whostmgr/Accounts/CommandQueue.pm line 82
        Whostmgr::Accounts::CommandQueue::_init_and_do_action("Whostmgr::Accounts::Suspend", "username", "USER", "action", "suspend", "undo_action", "unsuspend") called at /usr/local/cpanel/Whostmgr/Accounts/Suspend.pm line 23
        Whostmgr::Accounts::Suspend::new("Whostmgr::Accounts::Suspend", "USER") called at /usr/local/cpanel/scripts/suspendacct line 200
        scripts::suspendacct::__ANON__() called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 98
        eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Try/Tiny.pm line 89
        Try::Tiny::try(CODE(0x390a6e8), Try::Tiny::Catch=REF(0x33d16b0)) called at /usr/local/cpanel/scripts/suspendacct line 204
        scripts::suspendacct::run("USER", "INACTIVE", "") called at /usr/local/cpanel/scripts/suspendacct line 49
    Suspending mysql users
    Suspending websites...
    Suspending FTP accounts...
    Suspending outgoing email....Done
    USER's account has been suspended
    
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I've been unable to reproduce this issue on a test system. Could you open a support ticket using the link in my signature so we can take a closer look?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Leslie de Groot

    Joined:
    Jul 13, 2017
    Messages:
    14
    Likes Received:
    4
    Trophy Points:
    3
    Location:
    The Netherlands
    cPanel Access Level:
    Root Administrator
    Your Support Request ID is: 8757333
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, internal case CPANEL-14929 was opened to address an issue where suspending an account, while loading a domain name serving a PHP script at the same time, results in an error message like this in the WHM user interface:

    Code:
    Error while adding 'USER' to 'cpanelsuspended' at /usr/local/cpanel/Cpanel/Sys/Group.pm line 216.
    Note that despite the error message, the account is still suspended. The workaround to avoid the UI error is to suspend the account via the command line:

    Code:
    whmapi1 suspendacct user=username
    I'll monitor this case and update this thread with more information as it becomes available.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. activa

    activa Well-Known Member

    Joined:
    May 23, 2006
    Messages:
    211
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Morocco
    cPanel Access Level:
    Root Administrator
    i have the same issue . using cpanel v66.0.22
     
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    There's currently no update to report on the status of internal case CPANEL-14929. I'll update this thread with any new updates as they become available. In the meantime, the workaround when this happens is to suspend the account via the command line, or to wait until the account is no longer serving a PHP page.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. CyberFunk

    CyberFunk Registered

    Joined:
    Jun 26, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    Any updates for this issue? have same problem on v66.0.23 with litespeed plugin installed.
     
    #9 CyberFunk, Sep 28, 2017
    Last edited by a moderator: Sep 28, 2017
  10. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    There's no update to report at this time, however I will continue to monitor this case and update this thread as soon as an update is available.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. feldon27

    feldon27 Well-Known Member

    Joined:
    Mar 12, 2003
    Messages:
    119
    Likes Received:
    13
    Trophy Points:
    168
    Location:
    Houston, TX
    This is still a thing that exists. And running whmapi1 suspendacct user=username doesn't change anything. The error is still there.

    I'm dealing with a rogue user.
     
  12. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @feldon27,

    The case is still open and under investigation at this time. Note that the warning despite the warning message, the account suspension should still succeed. Is that not happening on your system?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. feldon27

    feldon27 Well-Known Member

    Joined:
    Mar 12, 2003
    Messages:
    119
    Likes Received:
    13
    Trophy Points:
    168
    Location:
    Houston, TX
    I can verify that the account was actually suspended. The error message is just the confusing part.
     
  14. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    The case is still active. I'll update this thread again once new information on it's status is available.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice