Let's encrypt won't be enabled on WHM
Hello everyone, I am trying to enable Let's encrypt on WHM, auto ssl, but it won't work!
it gives me this : root@gondor:~# /scripts/install_lets_encrypt_autossl_provider
info [install_lets_encrypt_autossl_provider] Starting apt execution “update”.
And nothing will happen!
Can anyone help to fix this issue?
Thanks.
-
Hey there! Can you try performing this work from the WHM >> Manage AutoSSL page by selecting your provider there? Let's Encrypt is now the default provider, so it may not need to be installed.
If that isn't the case on your system please let me know your cPanel version so I can do some additional testing. It's also never a bad idea to check the cPanel error log at /usr/local/cpanel/logs/error_log for more details.
0 -
Thanks, cPanel version:
cPanel & WHM v102.0.8 (STANDARD)The only provider that I have is cPanel (powered by Sectigo).
I treid the command line & it gives me this :
root@gondor:~# /usr/local/cpanel/logs/error_log
bash: /usr/local/cpanel/logs/error_log: Permission denied
root@gondor:~#0 -
You would have to open the log with a text editor.
Let's Encrypt wasn't released until version 108, so you wouldn't be able to implement that fully in version 102. Is there a reason you're using such an old version?
0 -
Well, I am on Microsoft Azure and subscribed thourgh a partner on Microsoft Azure marketplace. That's why. Also, I tried to upgrade the cPanel but I got this:
FATAL Cannot upgrade to 11.102.0.36 until needed system packages are installed. 0 -
Try running "yum update" on the system to take care of that. If there are other issues with Yum on the machine they will show up with that command.
0 -
Result:
root@gondor:~# yum update
Command 'yum' not found, did you mean:
command 'gum' from snap gum (0.13.0)
command 'uum' from deb freewnn-jserver (1.1.1~a021+cvs20130302-7build1)
command 'sum' from deb coreutils (8.30-3ubuntu2)
command 'num' from deb quickcal (2.4-1)
command 'zum' from deb perforate (1.2-5.1)See 'snap info <snapname>' for additional versions.
root@gondor:~# sudo root@gondor:~# yum update
sudo: root@gondor:~#: command not found
root@gondor:~#
root@gondor:~# Command 'yum' not found, did you mean:
Command: command not found
root@gondor:~#
root@gondor:~# command 'gum' from snap gum (0.13.0)
bash: syntax error near unexpected token `('
root@gondor:~# command 'uum' from deb freewnn-jserver (1.1.1~a021+cvs20130302-7build1)
bash: syntax error near unexpected token `('
root@gondor:~# command 'sum' from deb coreutils (8.30-3ubuntu2)
bash: syntax error near unexpected token `('
root@gondor:~# command 'num' from deb quickcal (2.4-1)
bash: syntax error near unexpected token `('
root@gondor:~# command 'zum' from deb perforate (1.2-5.1)
bash: syntax error near unexpected token `('
root@gondor:~#
root@gondor:~# See 'snap info <snapname>' for additional versions.0 -
Oh, you're using Ubuntu, so Yum won't work :D. Try this:
apt-get update
apt-get upgrade0 -
Thanks , result:
root@gondor:~# apt-get update
Get:1 http://repo.mysql.com/apt/ubuntu focal InRelease [12.8 kB]
Hit:2 http://azure.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://azure.archive.ubuntu.com/ubuntu focal-security InRelease
Get:6 https://wp-toolkit.plesk.com/cPanel/wp-toolkit-deb ./ InRelease [817 B]
Get:7 https://wp-toolkit.plesk.com/cPanel/dist-deb-Ubuntu-20.04-x86_64 ./ InRelease [826 B]
Err:1 http://repo.mysql.com/apt/ubuntu focal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
Get:8 http://httpupdate.cpanel.net/ea4-u20-mirrorlist Mirrorlist
Get:10 http://httpupdate.cpanel.net/cpanel-plugins-u20-mirrorlist Mirrorlist
Hit:9 http://103.48.119.120/cpanelsync/repos/Ubuntu/20/EA4 ./ InRelease
Hit:11 http://31.22.112.31/cpanelsync/repos/Ubuntu/20/cpanel-plugins ./ InRelease
Fetched 17.8 kB in 1s (15.6 kB/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com/apt/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
W: Failed to fetch http://repo.mysql.com/apt/ubuntu/dists/focal/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@gondor:~# apt-get upgrade
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
root@gondor:~#0 -
There you go - the OS itself has an issue and that's why the updates aren't working. Can you try running that dpkg command from the output to see if that helps? If not, you'll need to contact the hosting provider because this is a deeper issue than the cPanel tools.
0 -
I did it, upgraded everything and installed Let's encrypt on whm. Thanks Rex :)
0 -
Awesome - I'm glad that took care of everything!
0 -
Hey everyone, I am trying again to update the cPanel and OS, but it won't let me.
On terminal it gives me this:
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mysql.com/apt/ubuntu focal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B7B3B788A8D3785C
E: Repository 'http://103.48.119.120/cpanelsync/repos/Ubuntu/20/cpanel-plugins ./ InRelease' changed its 'Origin' value from 'obs://private/cpanel-plugins/xUbuntu_20.04' to 'obs://private/cpanel-plugins-production/xUbuntu_20.04'
E: Repository 'http://103.48.119.120/cpanelsync/repos/Ubuntu/20/cpanel-plugins ./ InRelease' changed its 'Label' value from 'cpanel-plugins' to 'cpanel-plugins-production'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
and in the WHM panel, it stucks at 2%.
0 -
More details on this issue can be found here:
Can you try the following command:
/scripts/autorepair mysql_gpg_key
and then see if an update works after that?
0 -
Nope. It's not working. Thank you Rex again for helping me.
sudo apt-get update
sudo: unable to resolve host cpanelnew2024.srvr.media3.us: Name or service not known
Hit:1 http://azure.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://azure.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:3 http://azure.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:4 http://azure.archive.ubuntu.com/ubuntu focal-security InRelease
Hit:5 https://wp-toolkit.plesk.com/cPanel/wp-toolkit-deb ./ InRelease
Hit:6 https://wp-toolkit.plesk.com/cPanel/dist-deb-Ubuntu-20.04-x86_64 ./ InRelease
Get:7 http://httpupdate.cpanel.net/ea4-u20-mirrorlist Mirrorlist
Get:9 http://repo.mysql.com/apt/ubuntu focal InRelease [12.8 kB]
Hit:8 http://63.247.64.58/cpanelsync/repos/Ubuntu/20/EA4 ./ InRelease
Get:10 http://httpupdate.cpanel.net/cpanel-plugins-u20-mirrorlist Mirrorlist
Get:12 http://repo.mysql.com/apt/ubuntu focal/mysql-8.0 Sources [963 B]
Get:13 http://repo.mysql.com/apt/ubuntu focal/mysql-apt-config amd64 Packages [566 B]
Get:14 http://repo.mysql.com/apt/ubuntu focal/mysql-8.0 amd64 Packages [10.7 kB]
Get:15 http://repo.mysql.com/apt/ubuntu focal/mysql-tools amd64 Packages [3848 B]
Get:11 http://185.15.22.168/cpanelsync/repos/Ubuntu/20/cpanel-plugins ./ InRelease
Reading package lists... Done
E: Repository 'http://185.15.22.168/cpanelsync/repos/Ubuntu/20/cpanel-plugins ./ InRelease' changed its 'Origin' value from 'obs://private/cpanel-plugins/xUbuntu_20.04' to 'obs://private/cpanel-plugins-production/xUbuntu_20.04'
E: Repository 'http://185.15.22.168/cpanelsync/repos/Ubuntu/20/cpanel-plugins ./ InRelease' changed its 'Label' value from 'cpanel-plugins' to 'cpanel-plugins-production'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.0 -
Thanks for the additional details. Since there are also problems with the Azure repos it seems this is a more widespread issue than just MySQL or the cPanel tools. You will likely need to reach out to Azure to have them take a look at the system.
0
Please sign in to leave a comment.
Comments
15 comments