Can't ./certbot-auto renew, shows Error with venv: non-zero exit status 1

CentOS6, Apache 2.2

Hi!
I received a notiifcation via email on expiring two of my domains although SSLLabs shows that the certificates are valid until April.
So I run ./certbot-auto renew just for case.

Here’s the output:

Bootstrapping dependencies for RedHat-based OSes that will use Python3… (you can skip this with --no-bootstrap)
yum is /usr/bin/yum
yum is hashed (/usr/bin/yum)
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile

  • base: dedic.sh
  • epel: mirror.logol.ru
  • extras: dedic.sh
  • remi: remi.mirror.wearetriple.com
  • remi-php56: remi.mirror.wearetriple.com
  • remi-safe: remi.mirror.wearetriple.com
  • updates: dedic.sh
    Package gcc-4.4.7-18.el6.x86_64 already installed and latest version
    Package augeas-libs-1.0.0-10.el6.x86_64 already installed and latest version
    Package openssl-1.0.1e-57.el6.x86_64 already installed and latest version
    Package openssl-devel-1.0.1e-57.el6.x86_64 already installed and latest version
    Package libffi-devel-3.0.5-3.2.el6.x86_64 already installed and latest version
    Package redhat-rpm-config-9.0.3-51.el6.centos.noarch already installed and latest version
    Package ca-certificates-2017.2.14-65.0.1.el6_9.noarch already installed and latest version
    Package python34-3.4.5-4.el6.x86_64 already installed and latest version
    Package python34-devel-3.4.5-4.el6.x86_64 already installed and latest version
    Package python34-tools-3.4.5-4.el6.x86_64 already installed and latest version
    Package 1:mod_ssl-2.2.15-60.el6.centos.6.x86_64 already installed and latest version
    Nothing to do
    Bootstrapping dependencies for RedHat-based OSes that will use Python3… (you can skip this with --no-bootstrap)
    yum is /usr/bin/yum
    yum is hashed (/usr/bin/yum)
    Failed to set locale, defaulting to C
    Loaded plugins: fastestmirror
    Setting up Install Process
    Loading mirror speeds from cached hostfile
  • base: dedic.sh
  • epel: mirror.logol.ru
  • extras: dedic.sh
  • remi: remi.mirror.wearetriple.com
  • remi-php56: remi.mirror.wearetriple.com
  • remi-safe: remi.mirror.wearetriple.com
  • updates: dedic.sh
    Package gcc-4.4.7-18.el6.x86_64 already installed and latest version
    Package augeas-libs-1.0.0-10.el6.x86_64 already installed and latest version
    Package openssl-1.0.1e-57.el6.x86_64 already installed and latest version
    Package openssl-devel-1.0.1e-57.el6.x86_64 already installed and latest version
    Package libffi-devel-3.0.5-3.2.el6.x86_64 already installed and latest version
    Package redhat-rpm-config-9.0.3-51.el6.centos.noarch already installed and latest version
    Package ca-certificates-2017.2.14-65.0.1.el6_9.noarch already installed and latest version
    Package python34-3.4.5-4.el6.x86_64 already installed and latest version
    Package python34-devel-3.4.5-4.el6.x86_64 already installed and latest version
    Package python34-tools-3.4.5-4.el6.x86_64 already installed and latest version
    Package 1:mod_ssl-2.2.15-60.el6.centos.6.x86_64 already installed and latest version
    Nothing to do
    Creating virtual environment…
    Error: Command ‘[’/opt/eff.org/certbot/venv/bin/python3’, ‘-Im’, ‘ensurepip’, ‘–upgrade’, ‘–default-pip’]’ returned non-zero exit status 1

With --no-bootstrap option the renewal passed fine.
So what should I do to avoid the problems in the future?

Same problem here: Failed to run certbot-auto successfully on CentOS 6.5
It seems a problem with python / pip versions installed on CentOS.

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