Symptoms
After update to cPanel version 11.134.0.13, when logging into cPanel an error is shown similar to the following:
CPANEL_WARN: A warning occurred while processing this directive. [show] [close]
Odd number of elements in anonymous hash at /usr/local/cpanel/Cpanel/SSL/Auto/Problems.pm line 74.
at /usr/local/cpanel/Cpanel/SSL/Auto/Problems.pm line 74.
Cpanel::SSL::Auto::Problems::new("Cpanel::SSL::Auto::Problems") called at /usr/local/cpanel/Cpanel/Template/Plugin/SSL.pm line 249
Cause
The cPanel user is unable to access/rename the autossl_problems.sqlite database.
The following is logged in /usr/local/cpanel/logs/error_log:
CONFIG_TEXT: warn [cpanel] Cannot connect to database: /var/cpanel/autossl_problems.sqlite: unable to open database file (Cpanel::Exception::IO::RenameError/(XID z8unx8) The system failed to rename “/var/cpanel/autossl_problems.sqlite” to “/var/cpanel/autossl_problems.sqlite.broken.2026-04-01T19:07:19Z” because of an error: Permission denied
at /usr/local/cpanel/Cpanel/Autodie/CORE/rename.pm line 29.
Resolution
Internal: This can be used to temporarily solve the issue. The .pm file will be overwritten on upcp but it can be given to customers via tickets. Don't want to put it in the article for full public consumption as the case has a fix in test and don't want people chattr-ing files.
CONFIG_TEXT: sed -i 's/my $self = { _db => "${class}::DB"->dbconnect() };/my $db = "${class}::DB"->dbconnect(); die "Failed to connect to AutoSSL problems DB\n" if !$db; my $self = { _db => $db };/' /usr/local/cpanel/Cpanel/SSL/Auto/Problems.pm
To reverse:
CONFIG_TEXT: sed -i 's/my $db = "${class}::DB"->dbconnect(); die "Failed to connect to AutoSSL problems DB\n" if !$db; my $self = { _db => $db };/my $self = { _db => "${class}::DB"->dbconnect() };/' /usr/local/cpanel/Cpanel/SSL/Auto/Problems.pm
Comments
0 comments
Article is closed for comments.