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.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page