Unable to install Let's Encrypt extension: Cannot connect to proxy

Created:

2016-12-12 03:39:29 UTC

Modified:

2017-08-08 13:22:14 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to install Let's Encrypt extension: Cannot connect to proxy

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

Unable to install Let's Encrypt extention with the error:

Error: Failed to install the extension: Executing C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\plib\\modules\\letsencrypt\\scripts\\post-install.php failed

'ProxyError('Cannot connect to proxy.', error(10049, 'The requested address is not valid in its context'))': /simple/pip/ Retrying

In the Plesk log file php_error.log the following can be found:

[2016-09-30 06:20:45] ERR [panel] Failed to install the extension: Executing C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\plib\\modules\\letsencrypt\\scripts\\post-install.php failed: Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error(10049, 'The requested address is not valid in its context'))': /simple/setuptools/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error(10049, 'The requested address is not valid in its context'))': /simple/setuptools/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error(10049, 'The requested address is not valid in its context'))': /simple/pip/

Cause

Environment variables HTTP_PROXY or HTTPS_PROXY are defined in Windows server.

If such environment variable exists, Python uses different logic in all http and https requests and all Python scripts launched under psaadm user fails.

Resolution

  1. Add environment variable NO_PROXY with the value * to Environment Variables:

    1.1. Go to IIS > server_name > FastCGI Settings

    1.2. Right click on C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin\\php-cgi.exe and click Edit

    1.3. Select Environment Variables and click ...

    1.4. Add NO_PROXY variable as follows:

        Name        NO_PROXY
    Value *
  2. Go to IIS > Application Pools and recycle PleskControlPanel application pool.

Have more questions? Submit a request
Please sign in to leave a comment.