plesk / letsencrypt-plesk

Let’s Encrypt extension for Plesk gives all Plesk users the power to get a free Let’s Encrypt certificate with just a couple of clicks.
https://www.plesk.com/extensions/letsencrypt/
180 stars 25 forks source link

fallid install Plesk 17.07 ONYX #150

Closed joacub closed 7 years ago

joacub commented 7 years ago

This is the error log:

[2017-02-12 02:28:29.475752] Installation started in background
[2017-02-12 02:28:29.475874] 
Getting bootstrapper packages to installation list:
[2017-02-12 02:28:29.476018] skip package 'pp17.0.17-bootstrapper-17.0.17-ubuntu16.04.build1700161117.16.amd64' from component panel - same or newer version of this package is already installed (in system pp17.0.17-bootstrapper-17.0.17-ubuntu16.04.build1700161117.16.amd64)
[2017-02-12 02:28:29.476170] skip package 'sw-engine-cli-2.20-2.20.2-ubuntu1604.201612081611.amd64' from component panel - same or newer version of this package is already installed (in system sw-engine-cli-2.20-2.20.2-ubuntu1604.201612081611.amd64)
[2017-02-12 02:28:29.476233] Following bootstrapper packages will be installed: (empty)
[2017-02-12 02:28:29.476263] ---------------- 
[2017-02-12 02:28:29.476289] Getting packages to installation list:
[2017-02-12 02:28:29.476405] Following packages will be installed: ext-letsencrypt-1.9-3.noarch 
[2017-02-12 02:28:29.476468] ----------------
[2017-02-12 02:28:29.476559] Checking whether the package dependencies are resolved.
[2017-02-12 02:28:29.476605] autoinstaller: read output of DEBIAN_FRONTEND=noninteractive LANG=C apt-get --assume-yes --show-upgraded --purge --no-reinstall -o APT::Get::List-Cleanup=true -o Dpkg::options::=--force-confdef -o Dpkg::options::=--force-confold -o APT::Get::AllowUnauthenticated=false -o Acquire::Retries=3 -t 'xenial*' --just-print install 
[2017-02-12 02:28:30.052475] (regen obsoletes cache) 
[2017-02-12 02:28:30.052613] Check package set before installation
[2017-02-12 02:28:30.053061] The following packages from not selected components will be installed because they are required by other components' packages you selected for installation: 
[2017-02-12 02:28:30.066062] Installing packages
[2017-02-12 02:28:30.070769] Bootstrapper has finished action (exec time: 0 sec.): parent_name='PLESK_17_0_17', sequence='prep', stage='execute', sequence_order='-1', operation='install', exec_cmd='touch /tmp/pp-bootstrapper-mode.flag; touch /var/lock/parallels-panel-maintenance-mode.flag; rm -f /var/lock/parallels-panel-upgrade-failure.flag; :'', m_arch='', output: ~empty
[2017-02-12 02:28:30.075466] Bootstrapper has finished action (exec time: 0 sec.): parent_name='PLESK_17_0_17', sequence='post', stage='execute', sequence_order='9998', operation='install', exec_cmd='test ! -x /opt/psa/admin/sbin/packagemng || /opt/psa/admin/sbin/packagemng --set-dirty-flag'', m_arch='', output: ~empty
[2017-02-12 02:28:30.261217] Bootstrapper has finished action (exec time: 0 sec.): parent_name='PLESK_17_0_17', sequence='post', stage='execute', sequence_order='9999', operation='install', exec_cmd='/opt/psa/bootstrapper/pp17.0.17-bootstrapper/bootstrapper.sh perform-deferred-actions'', m_arch='', output: ~empty
[2017-02-12 02:28:30.266201] Bootstrapper has finished action (exec time: 0 sec.): parent_name='PLESK_17_0_17', sequence='post', stage='commit', sequence_order='1', operation='install', exec_cmd='rm -f /tmp/pp-bootstrapper-mode.flag; rm -f /var/lock/parallels-panel-maintenance-mode.flag; :'', m_arch='', output: ~empty
[2017-02-12 02:28:43.384624] Extension package ext-letsencrypt 1.9-3 installation failed with code 1, stdout: ~empty
stderr: [2017-02-12 02:28:43] ERR [extension/letsencrypt] Execution of /opt/psa/admin/plib/modules/letsencrypt/scripts/post-install.php failed with exit code 1 and the output:

Execution of /opt/psa/admin/plib/modules/letsencrypt/scripts/post-install.php failed with exit code 1 and the output:

[2017-02-12 02:28:43.387446] Error: Failed to install or upgrade the extension 'Let's Encrypt' (package: letsencrypt):
[2017-02-12 02:28:43] ERR [extension/letsencrypt] Execution of /opt/psa/admin/plib/modules/letsencrypt/scripts/post-install.php failed with exit code 1 and the output:

Execution of /opt/psa/admin/plib/modules/letsencrypt/scripts/post-install.php failed with exit code 1 and the output:

Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try to install the packages again.
If you cannot resolve the issue on your own, contact product technical support for assistance.

after install not run.

joacub commented 7 years ago

the error is for /opt/plesk/python/2.7/bin/virtualenv not is correct, need upgrade env and change the in this file

for me old file is :

#!/opt/plesk/python/2.7/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'virtualenv==15.0.1','console_scripts','virtualenv'
__requires__ = 'virtualenv==15.0.1'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('virtualenv==15.0.1', 'console_scripts', 'virtualenv')()
    )

after update you need change to the correct value for virtualenv==

#!/opt/plesk/python/2.7/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'virtualenv==15.1.0','console_scripts','virtualenv'
__requires__ = 'virtualenv==15.1.0'
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
    sys.exit(
        load_entry_point('virtualenv==15.1.0', 'console_scripts', 'virtualenv')()
    )
Revyn112 commented 7 years ago

Same Error here, can't install Let's Encrypt for Plesk. I tried the steps from @joacub above (upgrade virtualenv and re-edit version in file) but they don't help, error is still alive.

Installation started in background
Checking whether the package dependencies are resolved.
Installing packages
Error: Failed to install or upgrade the extension 'Let's Encrypt' (package: letsencrypt):
[2017-03-19 20:55:29] ERR [extension/letsencrypt] Execution of /opt/psa/admin/plib/modules/letsencrypt/scripts/post-install.php failed with exit code 1 and the output:

Execution of /opt/psa/admin/plib/modules/letsencrypt/scripts/post-install.php failed with exit code 1 and the output:

Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try to install the packages again.
If you cannot resolve the issue on your own, contact product technical support for assistance.
xgin commented 7 years ago

Try the latest version. virtualenv and python are not used any more.