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.

Terminate accounts fail

Discussion in 'General Discussion' started by iso99, Apr 18, 2017.

Tags:
  1. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    100
    Likes Received:
    7
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    I'm having issues with the termination process. If I'm using WHM, it didn't report anything and just stopped, or it returns an error similar to this line "Cpanel::Exception::IO::DirectoryDeleteError/(XID t7wqvd) The system failed to delete the directory".

    I tried /removeacct and it says the same thing. It removes the directories of the users but still maintains the DNS zones.

    So what I did was remove the zones manually. I checked MySQL and the databases have been removed as well.

    The only thing left remaining is that they can still be seen in List Accounts.

    Where can I see the logs for this? Any advice how to proceed?

    Thanks!
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    542
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Please check the cPanel error logs if there is showing any error related this.
    error logs file path is /usr/local/cpanel/logs/error_log
     
  3. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    100
    Likes Received:
    7
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hi,

    I got some of these:

    info [xml-api] API failure: (XID mmmfwy) The system failed to delete the directory “/home/(user)” because of an error: No such file or directory [removeacct] version [1].

    warn [Internal Warning while parsing [stdin] 231138] (XID 3ed974) The cPanel user “(user)” does not exist in the database map. at /usr/local/cpanel/Whostmgr/DB.pm line 69.

    and a bunch of these:

    warn [Internal Warning while parsing [stdin] 226529] cannot unlink file for /home/(user)/.subaccounts/storage.sqlite: No such file or directory at /usr/local/cpanel/Cpanel/Homedir/Modify.pm line 88.
    File::Path::_error(HASH(0x7825170), "cannot unlink file", "/home/(user)/.subaccounts/storage.sqlite") called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/5.24.1/File/Path.pm line 545
    File::Path::rmtree("/home/(user)") called at /usr/local/cpanel/Cpanel/Homedir/Modify.pm line 88
    Cpanel::Homedir::Modify::_perform_op_for_user_that_may_get_blocked_by_fs_ebusy("(user)", "/home/(user)", CODE(0x77f3f78)) called at /usr/local/cpanel/Cpanel/Homedir/Modify.pm line 102
    Cpanel::Homedir::Modify::remove_homedir("(user)", "/home/(user)") called at /usr/local/cpanel/Cpanel/SysAccounts.pm line 240
    Cpanel::SysAccounts::remove_system_user("(user)", 0) called at /usr/local/cpanel/Whostmgr/Accounts/Remove.pm line 580
    Whostmgr::Accounts::Remove::_killacct("user", "(user)", "killdns", 1) called at /usr/local/cpanel/Whostmgr/Accounts/Remove.pm line 867
    Whostmgr::Accounts::Remove::_removeaccount("user", "(user)", "keepdns", 0) called at /usr/local/cpanel/Whostmgr/API/1/Accounts.pm line 421
    [2017-04-19 10:48:07 +0800] warn [Internal Warning while parsing [stdin] 226529] cannot restore permissions to 0100600 for /home/(user)/.subaccounts/storage.sqlite: No such file or directory at /usr/local/cpanel/Cpanel/Homedir/Modify.pm line 88.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify the permissions on /home, and how the partition where your accounts are stored is mounted? EX:

    Code:
    stat /home
    cat /etc/fstab
    Thank you.
     
  5. iso99

    iso99 Well-Known Member

    Joined:
    Jan 5, 2011
    Messages:
    100
    Likes Received:
    7
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    stat:

    Code:
      File: `/home'
      Size: 12288           Blocks: 24         IO Block: 4096   directory
    Device: fd00h/64768d    Inode: 22151169    Links: 282
    Access: (0711/drwx--x--x)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2011-09-23 19:50:20.000000000 +0800
    Modify: 2017-04-19 10:57:44.813000002 +0800
    Change: 2017-04-19 10:57:44.813000002 +0800
    
    partitions are pretty standard on regular kvm-guest with lvm:

    Code:
    /dev/mapper/vg-lv_root  /       ext4    noatime,usrjquota=quota.user,jqfmt=vfsv0        1       1
    UUID=b52ec4b9-13db-463a-b2a9-822c2d61a05e /boot                   ext4    defaults,noatime        1 2
    /dev/mapper/vg-lv_swap  swap                    swap    defaults        0 0
    
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page