AutoSSL fails for one user
Hello,
While trying to force AutoSSL check, autossl script fails on one particular user.
root@server[/home]# /usr/local/cpanel/bin/autossl_check --user=
This system has AutoSSL set to use "Let"s Encrypt"".
Checking websites for "" "
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346.
Use of uninitialized value $vh_name in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 396.
Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 288.
Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
Use of uninitialized value $vhname in string eq at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 290.
Use of uninitialized value $vhname in concatenation (.) or string at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 292.
Unrecognized vhost: "" at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 292.
The system has completed the AutoSSL check for "".
When accessing SSL menu from within cPanel of that user, I get different warnings.
==
Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346, line 1.
at /usr/local/cpanel/Cpanel/WebVhosts.pm line 346, line 1.
Cpanel::WebVhosts::_return_domain_vhosts_list("", CODE(0x29d8090)) called at /usr/local/cpanel/Cpanel/WebVhosts.pm line 147
Cpanel::WebVhosts::list_domains("") called at /usr/local/cpanel/Cpanel/API/WebVhosts.pm line 87
Cpanel::API::WebVhosts::list_domains(Cpanel::Args=HASH(0x4bd46a0), Cpanel::Result=HASH(0x4bd44c0)) called at /usr/local/cpanel/Cpanel/API.pm line 287
Cpanel::API::__ANON__() called at /usr/local/cpanel/Cpanel/API.pm line 359
eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 359
Cpanel::API::_eval_guard(Cpanel::Result=HASH(0x4bd44c0), CODE(0x4bd4b90)) called at /usr/local/cpanel/Cpanel/API.pm line 287
Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x4bd46a0), Cpanel::Result=HASH(0x4bd44c0), "WebVhosts", "list_domains") called at /usr/local/cpanel/Cpanel/API.pm line 142
Cpanel::API::execute("WebVhosts", "list_domains", HASH(0x442feb8)) called at /usr/local/cpanel/base/frontend/paper_lantern/ssl/crts.html.tt line 2
eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/ssl/crts.html.tt line 2
eval {...} called at /usr/local/cpanel/base/frontend/paper_lantern/ssl/crts.html.tt line 16
Template::Provider::__ANON__(Template::Context=HASH(0x39d32b8)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 163
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Document.pm line 161
Template::Document::process(Template::Document=HASH(0x431b1a8), Template::Context=HASH(0x39d32b8)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 351
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Context.pm line 321
Template::Context::process(Template::Context=HASH(0x39d32b8), Template::Document=HASH(0x431b1a8)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 94
eval {...} called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template/Service.pm line 91
Template::Service::process(Template::Service=HASH(0x3c92c50), "/usr/local/cpanel/base/frontend/paper_lantern/ssl/crts.html.tt", HASH(0x36ef3f8)) called at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/x86_64-linux-64int/Template.pm line 66
Template::process(Template=HASH(0x39dfa48), "/usr/local/cpanel/base/frontend/paper_lantern/ssl/crts.html.tt", HASH(0x36ef3f8), SCALAR(0x28db940)) called at /usr/local/cpanel/Cpanel/Template.pm line 457
Cpanel::Template::process_template("cpanel", HASH(0x36ef3f8), HASH(0x3f2ee40)) called at cpanel.pl line 1248
cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/paper_lantern/ssl/crts.html.tt", 1) called at cpanel.pl line 5226
cpanel::cpanel::run_standard_mode() called at cpanel.pl line 874
cpanel::cpanel::script("cpanel::cpanel", "./frontend/paper_lantern/ssl/crts.html.tt") called at cpanel.pl line 304
==
"Manage SSL Sites" throws this fatal error.
==
Template::Exception:
[TYPE]=[undef]
[INFO]=[SSL::installed_hosts() failed: Unrecognized vhost: "" at /usr/local/cpanel/Cpanel/Config/WebVhosts.pm line 292.
]
[TEXT]=[]
at cpanel.pl line 1267.
cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/paper_lantern/ssl/install.htm"..., 1) called at cpanel.pl line 5226
cpanel::cpanel::run_standard_mode() called at cpanel.pl line 874
cpanel::cpanel::script("cpanel::cpanel", "./frontend/paper_lantern/ssl/install.html.tt") called at cpanel.pl line 304
==
-
Hi, "" is not an actual cPanel user. You need to replace that with the actual username. 0 -
Hi, "" is not an actual cPanel user. You need to replace that with the actual username.
I intentionally took out the user before posting this for security reasons. :)0 -
Hello, Do you notice a separate userdata file for a mail.domain.tld subdomain under the /var/cpanel/userdata/$username/ directory? If so, could you verify if you've manually created "mail.domain.tld" as a subdomain or addon domain under this account? Thank you. 0 -
Hello, Do you notice a separate userdata file for a mail.domain.tld subdomain under the /var/cpanel/userdata/$username/ directory? If so, could you verify if you've manually created "mail.domain.tld" as a subdomain or addon domain under this account? Thank you.
No Michael there is no mail. subdomain. I checked /var/cpanel/userdata/user folder, /var/cpanel/users/username file, and /etc/*. It appears client somehow installed a wildcard self signed certificate and then ended up purchasing full SSLs, now those purchased wildcard certs are working but letsencrypt continues to throw these errors. I have manually removed the self signed cert from places I could find but i am not sure if its remnants are somehow causing this. Nothing logs inside cPanel error or access log so I am unable to find out.0 -
Hello, Could you open a support ticket using the link in my signature so we can take a closer look at the account on the affected system? Thank you. 0 -
Hello, Could you open a support ticket using the link in my signature so we can take a closer look at the account on the affected system? Thank you.
Sorry for not following up, A colleague took it up and fixed it that day. Ticket got closed so I couldn't review it. Odd enough, it was fixed by toggling cagefs for the user.0
Please sign in to leave a comment.
Comments
6 comments