Jul 13, 2017
14
4
3
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
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.
 
Jul 13, 2017
14
4
3
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
  • Unsuspend an account
  • Wait for some time until the website is visible again
  • Visit the website
  • 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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
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.
 

CyberFunk

Registered
Jun 26, 2011
4
0
51
Any updates for this issue? have same problem on v66.0.23 with litespeed plugin installed.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
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.
 

feldon27

Well-Known Member
Mar 12, 2003
122
15
168
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello,

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

Thank you.