Terminate accounts fail
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!
-
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 0 -
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. 0 -
Hello, Could you verify the permissions on /home, and how the partition where your accounts are stored is mounted? EX: stat /home cat /etc/fstab
Thank you.0 -
stat: 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:/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 00 -
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. 0
Please sign in to leave a comment.
Comments
5 comments