Skip to main content

Cannot commit mailips creating account error

Comments

7 comments

  • SysSachin
    Hi, Can you please try to update cPanel forcefully using command /scripts/upcp --force
    0
  • rekabis
    Got another interesting error message from one of the pages I referenced: root@ns01 [~]# /scripts/updateuserdomains Cannot commit mailips: no transaction open at /usr/local/cpanel/Cpanel/Userdomains/CORE.pm line 491.
    0
  • rekabis
    I have started the forced cPanel update script, will post once it"s done. Lots of alerts on my phone as service certs get replaced by self-signed ones"
    0
  • 24x7server
    Hi, It appears to be related to the file /etc/mailips. Can you please check if the file is proper? and has proper parameters in it..
    0
  • SysSachin
    Hi, Might be /etc/mailips configuration file locked using chattr. Can you please check if there is set chattr for the mailips file. use command to check chattr lsattr /etc/mailips
    0
  • rekabis
    Well, it appears that the forced rebuild did the trick. Thank you very much SysSachin! I have been able to successfully create the account in question. For the record, whenever an account creation failed I had to clear the domain information out the following: /etc/passwd - user name /etc/group - group name /etc/userdomains - domain info /var/cpanel/users/[domainuser] - rm -rf any directory with the account name /var/cpanel/userdata/[domainuser] - rm -rf any directory with the account name /var/cpanel/databases - rm any *.json file with the account name. Also look for *.cache and *.yaml if your system is old. /var/named - rm domain zone file entry /etc/named.conf - zone file entry appears twice, be aware of that. Once every thing is confirmed to be clean, execute the scripts /scripts/updateuserdomains /scripts/rebuildhttpdconf then restart httpd Go into WHM and double-check the list of DNS zones, if your domain still exists, manually delete the DNS zone. Finally go to your hosting root (mine being /var/www but yours could just as easily be /srv) and delete the account directory. At this point, things should be cleared out enough for you to re-create the account without running into issues. If account creation continues to fail, try using the forced update command provided by SysSachin earlier in this thread. I hope this helps anyone else with this same problem. Edit: This forced rebuild also helped with a few other things, including a symlink race condition that cropped back up a month or three ago, despite having been initially set up in the correct way years ago, and a very schizophrenic AutoSSL setup (Let"s Encrypt) that just never worked right from the get-go, probably because I had gone through two third-party tools before it came natively to cPanel.
    0
  • cPanelMichael
    Hello, The issue likely stemmed from the immutable attribute on the /etc/mailips file. You can find discussion of the /etc/mailips file on the following thread: SOLVED - The system failed to lock the file Thank you.
    0

Please sign in to leave a comment.