Certbot-auto aborts on SCL needed, but it is installed

Certbot-auto has been running on this Oracle Linux 6.10 box for a few years and it started failing all of a sudden.

My domain is: www.cs2.hofstra.edu

Please see commands and output below:

[ar@localhost ~]$ sudo /opt/certbot/certbot-auto renew --deploy-hook 'service httpd reload'
WARNING: couldn't find Python 3.5+ to check for updates.
Bootstrapping dependencies for Legacy RedHat-based OSes that will use Python3... (you can skip this with --no-bootstrap)
yum is hashed (/usr/bin/yum)
To use Certbot on this operating system, packages from the SCL repository need to be installed.
Enable the SCL repository and try running Certbot again.
[ar@localhost ~]$ 
[ar@localhost ~]$ sudo yum-config-manager --enable software_collections
Loaded plugins: refresh-packagekit
[ar@localhost ~]$ sudo yum-config-manager --enable ol6_latest
Loaded plugins: refresh-packagekit
[ar@localhost ~]$ sudo yum install scl-utils
Loaded plugins: refresh-packagekit, ulninfo
Setting up Install Process
Resolving Dependencies

(snip)

Installed:
  scl-utils.x86_64 0:20120927-29.el6_9

Complete!
[ar@localhost ~]$ sudo /opt/certbot/certbot-auto renew --deploy-hook 'service httpd reload'
Bootstrapping dependencies for Legacy RedHat-based OSes that will use Python3... (you can skip this with --no-bootstrap)
yum is hashed (/usr/bin/yum)
To use Certbot on this operating system, packages from the SCL repository need to be installed.
Enable the SCL repository and try running Certbot again.

The operating system my web server runs on is (include version): Oracle Linux Server 6.10

My hosting provider, if applicable, is: na

I can login to a root shell on my machine: yes

I’m using a control panel to manage my site: no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot): cannot run, produces Enable SCL message

1 Like

Disclaimer: I’m not an Oracle Linux user, so take this with a grain of salt. I don’t really understand the difference between other ELs and Oracle Linux.

Looking at the Certbot tests for Oracle Linux 6, it appears that the process to enable SCL is to install this package from yum:

yum install oracle-softwarecollection-release-el6

I tried testing this approach using an oraclelinux:6 Docker container, and it was successful in getting certbot-auto to work.

Good luck!

2 Likes

Thanks! That pointed me in the right direction. It appears the issue was /usr/bin/ol_yum_configure.sh had to be run to enable new repo config files. Installing oracle-softwarecollection-release-el6 did not fix the issue itself, but I got this message when installing it:

IMPORTANT: A legacy Oracle Linux yum server repo file was found. Oracle Linux yum server repository configurations have changed which means public-yum-ol6.repo will no longer be updated. New repository configuration files have been installed but are disabled. To complete the transition, run this script as the root user:

/usr/bin/ol_yum_configure.sh

After running ol_yum_configure.sh, certbot-auto was able to install python36 and everything works. Thanks again!

3 Likes

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