Skip to main content

DOVECOT failed again

Comments

4 comments

  • cPRex Jurassic Moderator

    I'm keeping a list of the current Dovecot issues over at https://support.cpanel.net/hc/en-us/community/posts/36924766387607.  It would be helpful to know the specific failure you're seeing.

    It's also important to note that cPanel never downgrades the version, so I'm not entirely sure what you're seeing on your system.

    0
  • Conex

    cPRex

    Sorry, not downgrade I confused, its 132.14

    but did crashed dovecot for me

    I just restored it, it was issue with ssl, and nobody permission failure when try to rebuild dovecot config

    as I say, I could restore it, but if you watnt I can share logs with you, may be it help the community

    0
  • cPRex Jurassic Moderator

    Sure - if you can share the log or the errors you're receiving I can likely point you to a workaround.

    0
  • Conex

    thanks cPRex

    As I said, I fixed the issue.

    The domain mentioned in the log is my server hostname. There is no cpanel account for it, and it was working just before the last cpanel update

    . Here is the issue :

    /scripts/builddovecotconf [2025-12-12 16:46:24 +0100] warn [builddovecotconf] User file '/var/cpanel/users/nobody' is empty or non-existent. warn [builddovecotconf] User file '/var/cpanel/users/nobody' is empty or non-existent. [2025-12-12 16:46:24 +0100] warn [builddovecotconf] Failed to load cPanel user file for 'nobody' warn [builddovecotconf] Failed to load cPanel user file for 'nobody' [2025-12-12 16:46:24 +0100] warn [builddovecotconf] safelock: waited for lock (//.cpanel/email_accounts.json.lock) 90 times warn [builddovecotconf] safelock: waited for lock (//.cpanel/email_accounts.json.lock) 90 times Cpanel::Exception::IO::FileCreateError/(XID qdeut7) The system failed to create the file “//.cpanel/email_accounts.json.lock” (as EUID: 65534, EGID: 65534 65534) because of the following error: No such file or directory at /usr/local/cpanel/Cpanel/SafeFile.pm line 429. Cpanel::SafeFile::_safelock("//.cpanel/email_accounts.json") called at /usr/local/cpanel/Cpanel/SafeFile.pm line 619 Cpanel::SafeFile::_safe_open(undef, 66, "//.cpanel/email_accounts.json", CODE(0x2b204c8), "safesysopen") called at /usr/local/cpanel/Cpanel/SafeFile.pm line 267 eval {...} called at /usr/local/cpanel/Cpanel/SafeFile.pm line 266 Cpanel::SafeFile::safesysopen(undef, "//.cpanel/email_accounts.json", 66, 384) called at /usr/local/cpanel/Cpanel/SafeFile.pm line 181 Cpanel::SafeFile::safesysopen_no_warn_on_fail(undef, "//.cpanel/email_accounts.json", 66, 384) called at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 128 Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::JSON", "permissions", 384, "path", "//.cpanel/email_accounts.json") called at /usr/local/cpanel/Cpanel/Email/Accounts.pm line 539 Cpanel::Email::Accounts::get_transaction(1) called at /usr/local/cpanel/Cpanel/Email/Accounts.pm line 140 Cpanel::Email::Accounts::__ANON__() called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/Try/Tiny.pm line 100 eval {...} called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/Try/Tiny.pm line 91 Try::Tiny::try(CODE(0x2afb638), Try::Tiny::Catch=REF(0x2b6f1a8)) called at /usr/local/cpanel/Cpanel/Email/Accounts.pm line 144 Cpanel::Email::Accounts::manage_email_accounts_db("event", "fetch", "no_disk", 1) called at /usr/local/cpanel/Whostmgr/Email.pm line 39 Whostmgr::Email::__ANON__() called at /usr/local/cpanel/Cpanel/AccessIds/ReducedPrivileges.pm line 117 eval {...} called at /usr/local/cpanel/Cpanel/AccessIds/ReducedPrivileges.pm line 117 Cpanel::AccessIds::ReducedPrivileges::call_as_user("nobody", CODE(0x2afb8d8)) called at /usr/local/cpanel/Whostmgr/Email.pm line 47 Whostmgr::Email::list_pops_for("nobody") called at /usr/local/cpanel/Whostmgr/Email.pm line 195 Whostmgr::Email::count_pops_for_without_ownership_check("nobody", "mail.mydomain.com") called at /usr/local/cpanel/Cpanel/AdvConfig/dovecotSNI.pm line 138 Cpanel::AdvConfig::dovecotSNI::__ANON__() called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/Try/Tiny.pm line 100 eval {...} called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/Try/Tiny.pm line 91 Try::Tiny::try(CODE(0x2afb860), Try::Tiny::Catch=REF(0x2afb5d8)) called at /usr/local/cpanel/Cpanel/AdvConfig/dovecotSNI.pm line 143 Cpanel::AdvConfig::dovecotSNI::_filter_domains_for_sni_config(Cpanel::AdvConfig::dovecotSNI=HASH(0x283d1e0), HASH(0x28f7fc8)) called at /usr/local/cpanel/Cpanel/AdvConfig/dovecotSNI.pm line 69 Cpanel::AdvConfig::dovecotSNI::get_config(Cpanel::AdvConfig::dovecotSNI=HASH(0x283d1e0), HASH(0x263ff60)) called at /usr/local/cpanel/Cpanel/AdvConfig.pm line 299 eval {...} called at /usr/local/cpanel/Cpanel/AdvConfig.pm line 299 Cpanel::AdvConfig::generate_config_file(HASH(0x2a8d598)) called at /usr/local/cpanel/Cpanel/AdvConfig/dovecot/Includes.pm line 314 Cpanel::AdvConfig::dovecot::Includes::rebuild_conf(Cpanel::AdvConfig::dovecotSNI=HASH(0x272c498)) called at /scripts/builddovecotconf line 117 scripts::builddovecotconf::__ANON__() called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/Try/Tiny.pm line 100 eval {...} called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/Try/Tiny.pm line 91 Try::Tiny::try(CODE(0x25fb7f0), Try::Tiny::Catch=REF(0x25fc0f0)) called at /scripts/builddovecotconf line 121 scripts::builddovecotconf::_build_includes() called at /scripts/builddovecotconf line 98 scripts::builddovecotconf::script("scripts::builddovecotconf") called at /scripts/builddovecotconf line 33 [2025-12-12 16:46:24 +0100] warn [builddovecotconf] safelock: waited for lock (//.cpanel/email_accounts.json.lock) 90 times warn [builddovecotconf] safelock: waited for lock (//.cpanel/email_accounts.json.lock) 90 times Cpanel::Exception::IO::FileCreateError/(XID 6gkcga) The system failed to create the file “//.cpanel/email_accounts.json.lock” (as EUID: 65534, EGID: 65534 65534) because of the following error: No such file or directory at /usr/local/cpanel/Cpanel/SafeFile.pm line 429. Cpanel::SafeFile::_safelock("//.cpanel/email_accounts.json") called at /usr/local/cpanel/Cpanel/SafeFile.pm line 619 Cpanel::SafeFile::_safe_open(undef, 66, "//.cpanel/email_accounts.json", CODE(0x2d6c190), "safesysopen") called at /usr/local/cpanel/Cpanel/SafeFile.pm line 267 eval {...} called at /usr/local/cpanel/Cpanel/SafeFile.pm line 266 Cpanel::SafeFile::safesysopen(undef, "//.cpanel/email_accounts.json", 66, 384) called at /usr/local/cpanel/Cpanel/SafeFile.pm line 181 Cpanel::SafeFile::safesysopen_no_warn_on_fail(undef, "//.cpanel/email_accounts.json", 66, 384) called at /usr/local/cpanel/Cpanel/Transaction/File/Base.pm line 128 Cpanel::Transaction::File::Base::new("Cpanel::Transaction::File::JSON", "path", "//.cpanel/email_accounts.json", "permissions", 384) called at /usr/local/cpanel/Cpanel/Email/Accounts.pm line 539 Cpanel::Email::Accounts::get_transaction(1) called at /usr/local/cpanel/Cpanel/Email/Accounts.pm line 159 Cpanel::Email::Accounts::__ANON__() called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/Try/Tiny.pm line 100 eval {...} called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/Try/Tiny.pm line 91 Try::Tiny::try(CODE(0x2afb638), Try::Tiny::Catch=REF(0x2b20810)) called at /usr/local/cpanel/Cpanel/Email/Accounts.pm line 163 Cpanel::Email::Accounts::manage_email_accounts_db("event", "fetch", "no_disk", 1) called at /usr/local/cpanel/Whostmgr/Email.pm line 39 Whostmgr::Email::__ANON__() called at /usr/local/cpanel/Cpanel/AccessIds/ReducedPrivileges.pm line 117 eval {...} called at /usr/local/cpanel/Cpanel/AccessIds/ReducedPrivileges.pm line 117 Cpanel::AccessIds::ReducedPrivileges::call_as_user("nobody", CODE(0x2afb8d8)) called at /usr/local/cpanel/Whostmgr/Email.pm line 47 Whostmgr::Email::list_pops_for("nobody") called at /usr/local/cpanel/Whostmgr/Email.pm line 195 Whostmgr::Email::count_pops_for_without_ownership_check("nobody", "mail.mydomain.com") called at /usr/local/cpanel/Cpanel/AdvConfig/dovecotSNI.pm line 138 Cpanel::AdvConfig::dovecotSNI::__ANON__() called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/Try/Tiny.pm line 100 eval {...} called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/Try/Tiny.pm line 91 Try::Tiny::try(CODE(0x2afb860), Try::Tiny::Catch=REF(0x2afb5d8)) called at /usr/local/cpanel/Cpanel/AdvConfig/dovecotSNI.pm line 143 Cpanel::AdvConfig::dovecotSNI::_filter_domains_for_sni_config(Cpanel::AdvConfig::dovecotSNI=HASH(0x283d1e0), HASH(0x28f7fc8)) called at /usr/local/cpanel/Cpanel/AdvConfig/dovecotSNI.pm line 69 Cpanel::AdvConfig::dovecotSNI::get_config(Cpanel::AdvConfig::dovecotSNI=HASH(0x283d1e0), HASH(0x263ff60)) called at /usr/local/cpanel/Cpanel/AdvConfig.pm line 299 eval {...} called at /usr/local/cpanel/Cpanel/AdvConfig.pm line 299 Cpanel::AdvConfig::generate_config_file(HASH(0x2a8d598)) called at /usr/local/cpanel/Cpanel/AdvConfig/dovecot/Includes.pm line 314 Cpanel::AdvConfig::dovecot::Includes::rebuild_conf(Cpanel::AdvConfig::dovecotSNI=HASH(0x272c498)) called at /scripts/builddovecotconf line 117 scripts::builddovecotconf::__ANON__() called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/Try/Tiny.pm line 100 eval {...} called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/Try/Tiny.pm line 91 Try::Tiny::try(CODE(0x25fb7f0), Try::Tiny::Catch=REF(0x25fc0f0)) called at /scripts/builddovecotconf line 121 scripts::builddovecotconf::_build_includes() called at /scripts/builddovecotconf line 98 scripts::builddovecotconf::script("scripts::builddovecotconf") called at /scripts/builddovecotconf line 33 Use of uninitialized value in list assignment at /usr/local/cpanel/Cpanel/Email/Accounts.pm line 212. [2025-12-12 16:46:24 +0100] warn [builddovecotconf] Could not open //etc//shadow: Permission denied warn [builddovecotconf] Could not open //etc//shadow: Permission denied [2025-12-12 16:46:24 +0100] warn [builddovecotconf] The domain 'mail.mydomain.com' owned by 'nobody' will not be added to the Dovecot SNI configuration because the system could not retrieve the email account count due to an error: (XID edjfuc) You do not have a user named “nobody”. warn [builddovecotconf] The domain 'mail.mydomain.com' owned by 'nobody' will not be added to the Dovecot SNI configuration because the system could not retrieve the email account count due to an error: (XID edjfuc) You do not have a user named “nobody”.

     

    I run many, many commands : removing old mapping, relabeling, rebuilding/scripts/updateuserdomains
    /scripts/updateuserdatacache
    /scripts/rebuildhttpdconf

    Thank God I could restore it, but it was down for over 24 hours without emails, honestly, I was waiting for an auto fix from cpanel update

    0

Please sign in to leave a comment.