Amazon Linux 2 certbot error


#1

Hi, I followed @nodakai intructions for Help with certbot on the new "Amazon Linux 2" , but I got a fail in step number 6:

Bootstrapping dependencies for Amazon… (you can skip this with --no-bootstrap)
yum is /bin/yum
yum is hashed (/bin/yum)
Loaded plugins: langpacks, priorities, update-motd
amzn2-core | 2.0 kB 00:00:00
Package gcc-7.3.1-5.amzn2.0.0.x86_64 already installed and latest version
Package augeas-libs-1.4.0-2.amzn2.2.x86_64 already installed and latest version
Package 1:openssl-1.0.2k-8.amzn2.0.1.x86_64 already installed and latest version
Package 1:openssl-devel-1.0.2k-8.amzn2.0.1.x86_64 already installed and latest version
Package libffi-devel-3.0.13-18.amzn2.x86_64 already installed and latest version
Package system-rpm-config-9.1.0-76.amzn2.0.5.noarch already installed and latest version
Package ca-certificates-2017.2.14-71.amzn2.noarch already installed and latest version
Package python-devel-2.7.14-58.amzn2.0.2.x86_64 already installed and latest version
Package python-virtualenv-1.10.1-4.amzn2.noarch already installed and latest version
Package python-tools-2.7.14-58.amzn2.0.2.x86_64 already installed and latest version
Package python2-pip-9.0.1-16.amzn2.0.3.noarch already installed and latest version
Package 1:mod_ssl-2.4.6-67.amzn2.6.1.x86_64 already installed and latest version
Nothing to do
certbot-auto: line 208: certbot-auto: command not found

I setup the server and compare the files (diff) and looks fine:

[ec2-user@ip-172-31-28-180 ~]$ diff -U3 certbot-auto.orig certbot-auto
— certbot-auto.orig 2018-04-02 21:45:59.351690641 +0000
+++ certbot-auto 2018-04-02 22:07:32.657625090 +0000
@@ -840,7 +840,8 @@
DeprecationBootstrap “macOS” BootstrapMac
}
BOOTSTRAP_VERSION=“BootstrapMac $BOOTSTRAP_MAC_VERSION”
-elif [ -f /etc/issue ] && grep -iq “Amazon Linux” /etc/issue ; then
+elif grep -i “Amazon Linux” /etc/issue > /dev/null 2>&1 || \

  • grep ‘cpe:.*:amazon_linux:2’ /etc/os-release > /dev/null 2>&1; then
    Bootstrap() {
    ExperimentalBootstrap “Amazon Linux” BootstrapRpmCommon
    }

Any advice?

thanks


#2

@bmw, I know certbot-auto hasn’t been working super-consistently on Amazon Linux, but do you have any theories about the cause of this message?


#3

From the source, certbot-auto trying to run itself with different args. Maybe make sure the directory that certbot-auto is in is in the PATH?


#4

Thanks a lot @markengelhardt, it works !!


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.