SOLVED Fatal Errors Creating New User Accounts

alansplash

Member
May 3, 2017
5
0
1
Sydney Australia
cPanel Access Level
Root Administrator
Hi There

I have two issues in regards to creating User Accounts, hopefully someone can help.

1. When creating a New User Account, the process fails, you can see the error "A fatal timeout occurred while processing this directive" behind a small progress pop up window titled "Create A New Account - Setting Passwords"

The account is "partly created", the Home directory, DNS Zones are created. But you can not see the actual account within WHM under List Accounts, Manage Account Suspension. The new account does show under Show Active Accounts as Active, it is also assigned the the Root User under Show Reseller Accounts but with the package shown as "undefined"

2. I can not remove the Accounts partially created by the above error. I have edited http.conf, removed DNS zones, edited /etc/localdomains userdomains and trueuserdomains but when trying to add the domain again you receive the error that the domain already exists.

After finding what I can on this possible issue I have updated the system, it's currently running WHM 64.0 build 19. Run /scripts/upcp --force. Run yum clean all. Run yum upgrade. Run chattr -i /etc/mailips. Run /scripts/updateuserdomains (which gives error: The system failed to lock the append-only (+a) file “/etc/mailips” )

Help is very much appreciated.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,205
363
Hello,

Could you let us know the output to /usr/local/cpanel/logs/error_log when attempting to create a new account? Please also post the output from the following command:

Code:
lsattr /etc/mailips
Thank you.
 

alansplash

Member
May 3, 2017
5
0
1
Sydney Australia
cPanel Access Level
Root Administrator
Hi there

Firstly thanks to NOC-Serverpoint, the /scripts removeacct accountname works, no need for force.

Secondly after using the script above, I decided to try scripts/wwwacct - this gives me more insight to the problem which seems to be to do with the password creation, see below:
Code:
Checking input data......Done
Validating system setup......Done
Rebuilding IP Pool......Done
Validating IP......Done
Validating Username......Done
Validating Contact Email......Done
Checking for database conflicts......Done
WWWAcct 12.6.0 (c) 2017 cPanel, Inc.......Done
Running pre creation script (/usr/local/cpanel/scripts/prewwwacct)......Done
Adding User......Done
Setting up Horde database in the background.......Done
Creating bandwidth datastore......Done
Adding Entries to userdata......Done
Updating the userdata cache......Done
Setting up Mail & Local Domains......Done
Configuring DNS......Done
Updating Authentication Databases......Done
Adding Entries to httpd.conf......Done
Restarting apache......Done
Setting passwords...Cpanel::Exception::IO::FileLockError/(XID e9yqt3) The system failed to lock the append-only (+a) file “/etc/mailips” (as EUID: 0, EGID: 0 0 1 2 3 4 6 10 494) because of the following error: Operation not permitted
 
Last edited by a moderator:

alansplash

Member
May 3, 2017
5
0
1
Sydney Australia
cPanel Access Level
Root Administrator
Hello,

Could you let us know the output to /usr/local/cpanel/logs/error_log when attempting to create a new account? Please also post the output from the following command:

Code:
lsattr /etc/mailips
Thank you.


Hi Michael as requested:

[email protected] [/]# lsattr /etc/mailips

-----a--------- /etc/mailips

Hello,

Could you let us know the output to /usr/local/cpanel/logs/error_log when attempting to create a new account? Please also post the output from the following command:

Code:
lsattr /etc/mailips
Thank you.
Hi Again Michael - the log file as requested:
Code:
[2017-05-04 10:09:34 +1000] info [xml-api] Syncing version information from httpupdate.cpanel.net/cpanelsync/TIERS.json
[2017-05-04 10:09:43 +1000] info [xml-api] Successfully verified signature for cpanel (key types: release).
[2017-05-04 10:14:10 +1000] die [Internal Death while parsing [stdin] 7316] (XID 8gx733) The system failed to lock the immutable (+i) file “/etc/mailips” (as EUID: 0, EGID: 0 0 1 2 3 4 6 10 494) because of the following error: Permission denied at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 129.
    Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::Raw", "path", "/etc/mailips", "permissions", 416, "ownership", ARRAY(0x6887b10)) called at /usr/local/cpanel/Cpanel/Userdomains/CORE.pm line 430
    Cpanel::Userdomains::CORE::_create_transaction(Cpanel::Userdomains::CORE=HASH(0x687e538), HASH(0x6885c28)) called at /usr/local/cpanel/Cpanel/Userdomains/CORE.pm line 121
    Cpanel::Userdomains::CORE::update(Cpanel::Userdomains::CORE=HASH(0x687e538), "force", 0) called at /usr/local/cpanel/Cpanel/Userdomains.pm line 25
    Cpanel::Userdomains::updateuserdomains() called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 1340
    Whostmgr::Accounts::Create::_wwwacct("max_defer_fail_percentage", 30, "plan", "shared", "dkim", 1, "gid", "", ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 1957
    Whostmgr::Accounts::Create::__createaccount("featurelist", "default", "customip", "--Auto Assign--", "max_defer_fail_percentage", 30, "pkgname", "", ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 2007
    Whostmgr::Accounts::Create::_createaccount("featurelist", "default", "customip", "--Auto Assign--", "max_defer_fail_percentage", 30, "pkgname", "", ...) called at whostmgr/bin/whostmgr5.pl line 753
    main::wwwacct() called at whostmgr/bin/whostmgr5.pl line 228


Cpanel::Exception::IO::FileLockError/(XID 8gx733) The system failed to lock the immutable (+i) file “/etc/mailips” (as EUID: 0, EGID: 0 0 1 2 3 4 6 10 494) because of the following error: Permission denied
 at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 330.
    Cpanel::Exception::create("IO::FileLockError", ARRAY(0x69f0e30)) called at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 129
    Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::Raw", "path", "/etc/mailips", "permissions", 416, "ownership", ARRAY(0x6887b10)) called at /usr/local/cpanel/Cpanel/Userdomains/CORE.pm line 430
    Cpanel::Userdomains::CORE::_create_transaction(Cpanel::Userdomains::CORE=HASH(0x687e538), HASH(0x6885c28)) called at /usr/local/cpanel/Cpanel/Userdomains/CORE.pm line 121
    Cpanel::Userdomains::CORE::update(Cpanel::Userdomains::CORE=HASH(0x687e538), "force", 0) called at /usr/local/cpanel/Cpanel/Userdomains.pm line 25
    Cpanel::Userdomains::updateuserdomains() called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 1340
    Whostmgr::Accounts::Create::_wwwacct("max_defer_fail_percentage", 30, "plan", "shared", "dkim", 1, "gid", "", ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 1957
    Whostmgr::Accounts::Create::__createaccount("featurelist", "default", "customip", "--Auto Assign--", "max_defer_fail_percentage", 30, "pkgname", "", ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 2007
    Whostmgr::Accounts::Create::_createaccount("featurelist", "default", "customip", "--Auto Assign--", "max_defer_fail_percentage", 30, "pkgname", "", ...) called at whostmgr/bin/whostmgr5.pl line 753
    main::wwwacct() called at whostmgr/bin/whostmgr5.pl line 228
[2017-05-04 10:14:10 +1000] warn [whostmgrd] The subprocess (whostmgr (whostmgr5)) exited with an error: The subprocess reported error number 25 when it ended. at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 239.
    Cpanel::Server::Handlers::SubProcess::_report_subprocess_errors(Cpanel::Server::Handlers::SubProcess=HASH(0x3296408)) called at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 97
    Cpanel::Server::Handlers::SubProcess::handler(Cpanel::Server::Handlers::SubProcess=HASH(0x3296408), "subprocess_name", "whostmgr (whostmgr5)", "subprocess_read_handle", IO::Handle=GLOB(0x3296690), "subprocess_write_handle", IO::Handle=GLOB(0x3295dc8), "api_type", ...) called at cpsrvd.pl line 6505
    cpanel::cpsrvd::cpHandler("app", "whostmgr", "json", 0, "document", "./scripts5/wwwacct") called at cpsrvd.pl line 5681
    cpanel::cpsrvd::dodoc_whostmgrd() called at cpsrvd.pl line 1621
    cpanel::cpsrvd::dodoc(HASH(0x13dabc0)) called at cpsrvd.pl line 1408
    cpanel::cpsrvd::handle_one_connection(7) called at cpsrvd.pl line 877
    cpanel::cpsrvd::script() called at cpsrvd.pl line 329
[2017-05-04 10:32:17 +1000] die [Internal Death while parsing [stdin] 8713] (XID jyscdt) The system failed to lock the immutable (+i) file “/etc/mailips” (as EUID: 0, EGID: 0 0 1 2 3 4 6 10 494) because of the following error: Permission denied at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 129.
    Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::Raw", "path", "/etc/mailips", "permissions", 416, "ownership", ARRAY(0x6ba9840)) called at /usr/local/cpanel/Cpanel/Userdomains/CORE.pm line 430
    Cpanel::Userdomains::CORE::_create_transaction(Cpanel::Userdomains::CORE=HASH(0x6a36510), HASH(0x6ba7890)) called at /usr/local/cpanel/Cpanel/Userdomains/CORE.pm line 121
    Cpanel::Userdomains::CORE::update(Cpanel::Userdomains::CORE=HASH(0x6a36510), "force", 1) called at /usr/local/cpanel/Cpanel/Userdomains.pm line 25
    Cpanel::Userdomains::updateuserdomains(1) called at /usr/local/cpanel/Cpanel/DnsUtils.pm line 175
    Cpanel::DnsUtils::dokilldns("domains", ARRAY(0x5a6f4a8)) called at whostmgr/bin/whostmgr.pl line 2827
    main::killdns() called at whostmgr/bin/whostmgr.pl line 702
 
Last edited by a moderator:

alansplash

Member
May 3, 2017
5
0
1
Sydney Australia
cPanel Access Level
Root Administrator
Hi Again

FYI if I try to change / save the Exim configuration via WHM I receive the error:

(XID zggej8) The system failed to lock the append-only (+a) file “/etc/mailips” (as EUID: 0, EGID: 0) because of the following error: Operation not permitted at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 129.
 

alansplash

Member
May 3, 2017
5
0
1
Sydney Australia
cPanel Access Level
Root Administrator
Okay, have fixed by setting the Attributes on the /etc/mailips file

Mine for whatever reason was:

[email protected] [/]# lsattr /etc/mailips

-----a--------- /etc/mailips


I remove the lowercase "a"

[email protected] [/]# chattr -a /etc/mailips

[email protected] [/]# lsattr /etc/mailips

--------------- /etc/mailips


Then added an uppercase A

[email protected] [/]# chattr +A /etc/mailips

[email protected] [/]# lsattr /etc/mailips

-------A------- /etc/mailips


I can now create new Accounts as per normal using WHM.

Thanks to all.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,205
363
Hello,

I'm happy to see the issue is now solved. Thank you for updating us with the outcome.