Error installing Let’s Encrypt AutoSSL plugin on WHM

vs1

Registered
Jan 17, 2020
2
0
1
Italy
cPanel Access Level
Root Administrator
Hi,

I’m trying to install the Let’s Encrypt AutoSSL plugin on my dedicated server via SSH (Putty) and I get this error:

Code:
[[email protected] ~]# /usr/local/cpanel/scripts/install_lets_encrypt_autossl_provider
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
[LIST]
[*]cpanel-addons-production-feed: 91.197.228.252
[*]base: mirror.serverius.net
[*]extras: mirror.ehv.weppel.nl
[*]updates: mirror.serverion.com
[/LIST]
Resolving Dependencies
--> Running transaction check
---> Package cpanel-letsencrypt.noarch 0:2.28-1.1 will be installed
--> Finished Dependency Resolution


Total download size: 42 k
Installed size: 104 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction

Error in PREIN scriptlet in rpm package cpanel-letsencrypt-2.28-1.1.noarch
error: install: %pre scriptlet failed (2), skipping cpanel-letsencrypt-2.28-1.1
Verifying : cpanel-letsencrypt-2.28-1.1.noarch 1/1

Complete!
Cpanel::Exception::IO::ExecError/(XID kjde94) The system failed to execute yum with the arguments “--assumeyes --config /etc/yum.conf install cpanel-letsencrypt --disablerepo=epel” because of an error: The “/usr/bin/yum” command (process 19365) reported error number 1 when it ended. : Error in PREIN scriptlet in rpm package cpanel-letsencrypt-2.28-1.1.noarch

at /usr/local/cpanel/Cpanel/Exception/CORE.pm line 330.
Cpanel::Exception::create("IO::ExecError", "The system failed to execute yum with the arguments \x{e2}\x{80}\x{9c}[_1]\x{e2}\x{80}"..., ARRAY(0x1bc20c8)) called at /usr/local/cpanel/Cpanel/Exception.pm line 46
Cpanel::Exception::[B]ANON[/B]([B]CPANEL_HIDDEN[/B], [B]CPANEL_HIDDEN[/B]..., ARRAY(0x1bc20c8)) called at /usr/local/cpanel/Cpanel/SysPkgs/YUM.pm line 850
Cpanel::SysPkgs::YUM::_exec_yum(Cpanel::SysPkgs::YUM=HASH(0x1842088), "packages", ARRAY(0x14b0618), "_args", ARRAY(0x10aa878)) called at /usr/local/cpanel/Cpanel/SysPkgs/YUM.pm line 782
Cpanel::SysPkgs::YUM::_call_yum(Cpanel::SysPkgs::YUM=HASH(0x1842088), "packages", ARRAY(0x14b0618)) called at /usr/local/cpanel/Cpanel/SysPkgs/YUM.pm line 181
Cpanel::SysPkgs::YUM::install_packages(Cpanel::SysPkgs::YUM=HASH(0x1842088), "packages", ARRAY(0x14b0618)) called at /usr/local/cpanel/Cpanel/Plugins.pm line 50
Cpanel::Plugins::install_plugins("cpanel-letsencrypt") called at /usr/local/cpanel/scripts/install_lets_encrypt_autossl_provider line 19
scripts::install_lets_encrypt_autossl_provider::run() called at /usr/local/cpanel/scripts/install_lets_encrypt_autossl_provider line 16
[[email protected] ~]#
What can I do to fix it? I asked SiteGround and they told me to ask here.

Thanks

(WHM v66.0.35, CENTOS 6.10 standard, SiteGround)
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,297
1,251
313
Houston
That's good to know.

This, believe is related to the fact it's attempting to install the v1 package of cPanel-letsencrypt. I run the same script on my server and it pulls the v2 package:

Code:
[[email protected] config]#  /usr/local/cpanel/scripts/install_lets_encrypt_autossl_provider
info [install_lets_encrypt_autossl_provider] Starting yum execution “--assumeyes --config /etc/yum.conf --downloadonly --downloaddir /tmp/I_34_ctjX0 install cpanel-letsencrypt-v2 --disablerepo=epel”.
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
 * EA4: 70.87.220.252
 * EA4-experimental: 70.87.220.252
 * cpanel-addons-production-feed: 70.87.220.252
 * cpanel-plugins: 70.87.220.252
 * base: mirror.atl.genesisadaptive.com
 * centosplus: repos.dfw.quadranet.com
 * extras: centos-distro.1gservers.com
 * updates: mirror.us.oneandone.net
Resolving Dependencies
--> Running transaction check
---> Package cpanel-letsencrypt-v2.noarch 0:1.00-21.1 will be installed
--> Finished Dependency Resolution


Total download size: 30 k
Installed size: 85 k
Background downloading packages, then exiting:
exiting because "Download Only" specified
info [install_lets_encrypt_autossl_provider] Completed yum execution “--assumeyes --config /etc/yum.conf --downloadonly --downloaddir /tmp/I_34_ctjX0 install cpanel-letsencrypt-v2 --disablerepo=epel”: in 8.528 second(s).
Preparing...                          ################################# [100%]
Updating / installing...
   1:cpanel-letsencrypt-v2-1.00-21.1  ################################# [100%]
Initial cpanel-letsencrypt-v2 install detected …
Starting rebuild of web server configuration & restart …
Id: TQ:TaskQueue:69685
Id: TQ:TaskQueue:69686
Since you're using v66 of cPanel/WHM I believe you'd need to update in order to be able to use this provider as the version you're running is severely out of date and has been end of life for a significant amount of time. No updates to things such as the letsencrypt provider are currently being provided to you.