SOLVED Error installing Let's Encrypt plugin

Operating System & Version
Centos7
cPanel & WHM Version
98

sehabhost

Member
Sep 10, 2021
6
0
1
Egypt
cPanel Access Level
Root Administrator
hi,
Error installing Let's Encrypt plugin.

Code:
Total download size: 32 k
Installed size: 88 k
Background downloading packages, then exiting:
exiting because "Download Only" specified
info [install_lets_encrypt_autossl_provider] Completed yum execution “--assumeyes --color=never --config /etc/yum.conf --downloadonly --downloaddir /tmp/uRH4dfyRCo install cpanel-letsencrypt-v2”: in 2.434 second(s).
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,442
1,004
313
cPanel Access Level
Root Administrator
Hey there! That output you're seeing is actually normal. You'll perform the package download, and then that causes the option to appear in WHM >> Manage AutoSSL page where you will complete the setup. Can you check the WHM >> Manage AutoSSL page on your server and see if the option is now present?
 

sehabhost

Member
Sep 10, 2021
6
0
1
Egypt
cPanel Access Level
Root Administrator
look
Code:
[[email protected] ~]# /usr/local/cpanel/scripts/install_lets_encrypt_autossl_provider
info [install_lets_encrypt_autossl_provider] Starting yum execution “--assumeyes --color=never --config /etc/yum.conf --downloadonly --downloaddir /tmp/DBPt4nshh_ install cpanel-letsencrypt-v2”.
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
 * EA4: 93.115.203.100
 * cpanel-plugins: 93.115.203.100
 * base: mirror.checkdomain.de
 * epel: mirror.imt-systems.com
 * extras: mirror.softaculous.com
 * updates: linux.darkpenguin.net
Resolving Dependencies
--> Running transaction check
---> Package cpanel-letsencrypt-v2.noarch 0:1.01-24.3 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                   Arch       Version          Repository          Size
================================================================================
Installing:
 cpanel-letsencrypt-v2     noarch     1.01-24.3        cpanel-plugins      32 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 32 k
Installed size: 88 k
Background downloading packages, then exiting:
exiting because "Download Only" specified
info [install_lets_encrypt_autossl_provider] Completed yum execution “--assumeyes --color=never --config /etc/yum.conf --downloadonly --downloaddir /tmp/DBPt4nshh_ install cpanel-letsencrypt-v2”: in 185.762 second(s).
after install show error in WHM >> Manage AutoSSL

A warning occurred while processing this directive.
Code:
Failed to load information for the AutoSSL module “LetsEncrypt”: Couldn't open /root/.cpanel/letsencrypt_tos_cache: No such file or directory at /var/cpanel/perl/Cpanel/SSL/Auto/Provider/LetsEncrypt/ToSCache.pm line 114.
 at /usr/local/cpanel/Cpanel/SSL/Auto.pm line 97.
    Cpanel::SSL::Auto::__ANON__(__CPANEL_HIDDEN__...) called at /usr/local/cpanel/3rdparty/perl/532/lib/perl5/cpanel_lib/Try/Tiny.pm line 121
    Try::Tiny::try(CODE(0x30f2f20), Try::Tiny::Catch=REF(0xda3068)) called at /usr/local/cpanel/Cpanel/SSL/Auto.pm line 98
    Cpanel::SSL::Auto::get_all_provider_info() called at whostmgr/bin/whostmgr12.pl line 647
    main::autossl("autossl") called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 366
    Whostmgr::Dispatch::_do_call("autossl", HASH(0x2fedb28), HASH(0x2fedd68)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 178
    Whostmgr::Dispatch::dispatch("autossl", 1, ARRAY(0x2fedcc0)) called at whostmgr/bin/whostmgr12.pl line 221
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,442
1,004
313
cPanel Access Level
Root Administrator
The first section of output you provided is normal and is the expected output when running the install command.

The second error is the actual issue, which can be fixed with these commands:

Code:
touch /root/.cpanel/letsencrypt_tos_cache
Can you try that and see if that file can be created? Then you should be able to access WHM >> Manage AutoSSL normally.
 

sehabhost

Member
Sep 10, 2021
6
0
1
Egypt
cPanel Access Level
Root Administrator
it work now
thanks so much

The first section of output you provided is normal and is the expected output when running the install command.

The second error is the actual issue, which can be fixed with these commands:

Code:
touch /root/.cpanel/letsencrypt_tos_cache
Can you try that and see if that file can be created? Then you should be able to access WHM >> Manage AutoSSL normally.