Skip to main content

Fatal Errors Creating New User Accounts

Comments

8 comments

  • NOC_Serverpoint
    Hi, Can you please try the command from backend to remove the partial accounts created. /scripts/removeacct --user=username --force or /scripts/killacct Thanks
    0
  • cPanelMichael
    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:
    lsattr /etc/mailips
    Thank you.
    0
  • alansplash
    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:
    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
    0
  • alansplash
    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:
    lsattr /etc/mailips
    Thank you.

    Hi Michael as requested: root@server [/]# 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:
    lsattr /etc/mailips
    Thank you.

    Hi Again Michael - the log file as requested:
    [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
    0
  • alansplash
    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.
    0
  • alansplash
    Okay, have fixed by setting the Attributes on the /etc/mailips file Mine for whatever reason was: root@server [/]# lsattr /etc/mailips -----a--------- /etc/mailips I remove the lowercase "a" root@server [/]# chattr -a /etc/mailips root@server [/]# lsattr /etc/mailips --------------- /etc/mailips Then added an uppercase A root@server [/]# chattr +A /etc/mailips root@server [/]# lsattr /etc/mailips -------A------- /etc/mailips I can now create new Accounts as per normal using WHM. Thanks to all.
    0
  • webhostuk
    Thats great .. Its good to see you managed to get this fixed.
    0
  • cPanelMichael
    Hello, I'm happy to see the issue is now solved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.