Control Web Panel

WebPanel => SSL => Topic started by: Dexxa on August 25, 2016, 12:20:00 AM

Title: letsencrypt + Python Problems!
Post by: Dexxa on August 25, 2016, 12:20:00 AM
Hi

Im trying to install letsencrypt ssl certs via the control panel, followed the video etc, tried upgrading pyton  but i keep getting the same error message

WARNING! Letsenycrpt Certificate installation failed, please check /etc/letsencrypt/live/**********.co.uk !
Unable to read or file empty /etc/scl/prefixes/python27!


Anyone know how to fix this, it'd be a great help to me :)
Title: Re: letsencrypt + Python Problems!
Post by: Dexxa on August 25, 2016, 11:19:04 AM
Also getting Initialized empty Git repository in /opt/cwp_letsencrypt/.git/
Title: Re: letsencrypt + Python Problems!
Post by: Sandeep on August 25, 2016, 08:42:50 PM
hello contact support for more investigations
Title: Re: letsencrypt + Python Problems!
Post by: Dexxa on August 26, 2016, 01:03:20 AM
I have done that :)
Title: Re: letsencrypt + Python Problems!
Post by: theblack on September 23, 2016, 05:44:05 PM
Did you solved this issue? It happened to me too..
Title: Re: letsencrypt + Python Problems!
Post by: Dexxa on September 28, 2016, 06:55:23 PM
Did you solved this issue? It happened to me too..

Yes, on the 32bit version, do this

To solve it:

1- First install python requirements
$yum install epel-release
$rpm -ivh https://rhel6.iuscommunity.org/ius-release.rpm
yum --enablerepo=ius install git python27 python27-devel python27-pip python27-setuptools python27-virtualenv -y
2- Workaround for missing files
$ echo /opt/rh > /etc/scl/prefixes/python27
$mkdir /opt/rh/python27
$touch /opt/rh/python27/enable

This solve for me the problem with the Unable to open: /etc/scl/prefixes/python

Then i got another problem virtualenv not found, this can be solved using symbolink link
$cd /usr/bin
$ln -s  virtualenv-2.7  virtualenv

on the 64bit version you dont need to do anything as it works fine