Skip to main content

Error when suspending account

Comments

13 comments

  • cPanelMichael
    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.
    0
  • Leslie de Groot
    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:
      ]
    • Unsuspend an account
    • Wait for some time until the website is visible again
    • Visit the website
    • Suspend the account
    Additional info: This happens with all accounts.
    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
    0
  • cPanelMichael
    [LIST]
  • Unsuspend an account [LIST]
  • Wait for some time until the website is visible again [LIST]
  • Visit the website [LIST]
  • Suspend the account

  • 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.
    0
  • Leslie de Groot
    Your Support Request ID is: 8757333
    0
  • cPanelMichael
    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:
    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:
    whmapi1 suspendacct user=username
    I'll monitor this case and update this thread with more information as it becomes available. Thank you.
    0
  • activa
    i have the same issue . using cpanel v66.0.22
    0
  • cPanelMichael
    i have the same issue . using cpanel v66.0.22

    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.
    0
  • CyberFunk
    Any updates for this issue? have same problem on v66.0.23 with litespeed plugin installed.
    0
  • cPanelMichael
    Any updates for this issue? have same problem on v66.0.23 with litespeed plugin installed.

    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.
    0
  • feldon27
    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.
    0
  • cPanelMichael
    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.
    0
  • feldon27
    I can verify that the account was actually suspended. The error message is just the confusing part.
    0
  • cPanelMichael
    Hello, The case is still active. I'll update this thread again once new information on it's status is available. Thank you.
    0

Please sign in to leave a comment.