Unable to install Let's Encrypt extension: Access is denied: Lib

Created:

2016-11-16 12:45:10 UTC

Modified:

2017-08-16 16:28:05 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to install Let's Encrypt extension: Access is denied: Lib

Applicable to:

  • Plesk 12.5 for Windows

Symptoms

Unable to install Let's Encrypt:

Error: Failed to install the extension: Executing C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\plib\\modules\\letsencrypt\\scripts\\post-install.php failed: ERROR: The executable "C:\\Program Files (x86)\\Parallels\\Plesk\\var\\modules\\letsencrypt\\venA917.tmp\\Scripts\\python.exe" could not be run: [Error 5] Access is denied

or:

Error: Failed to install the extension: Executing C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\plib\\modules\\letsencrypt\\scripts\\post-install.php failed: Traceback (most recent call last): File "C:\\Program Files (x86)\\Parallels\\Plesk\\python\\lib\\runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "C:\\Program Files (x86)\\Parallels\\Plesk\\python\\lib\\runpy.py", line 72, in _run_code exec code in run_globals File "C:\\Program Files (x86)\\Parallels\\Plesk\\python\\lib\\site-packages\\virtualenv.py", line 2380, in main() File "C:\\Program Files (x86)\\Parallels\\Plesk\\python\\lib\\site-packages\\virtualenv.py", line 853, in main symlink=options.symlink) File "C:\\Program Files (x86)\\Parallels\\Plesk\\python\\lib\\site-packages\\virtualenv.py", line 1021, in create_environment site_packages=site_packages, clear=clear, symlink=symlink)) File "C:\\Program Files (x86)\\Parallels\\Plesk\\python\\lib\\site-packages\\virtualenv.py", line 1187, in install_python mkdir(lib_dir) File "C:\\Program Files (x86)\\Parallels\\Plesk\\python\\lib\\site-packages\\virtualenv.py", line 469, in mkdir os.makedirs(path) File "C:\\Program Files (x86)\\Parallels\\Plesk\\python\\lib\\os.py", line 157, in makedirs mkdir(name, mode) WindowsError: [Error 5] Access is denied: 'Lib'

After the installation attempt, Let's Encrypt is present in Extensions menu, but it does not work: unable to create Let's Encrypt SSL for a domain:

Let's Encrypt SSL certificate installation failed: Installation is broken.

Cause

Let's Encrypt extension cannot be installed if Plesk data directory is on the other drive.

Bug with ID #PPPM-4455 that was fixed in Plesk Onyx.

Resolution

Upgrade to the latest Plesk version .

If upgrade is not possible, do the following:

  1. Download and unzip attached file
  2. Put letsencrypt.xml file into %plesk_dir%\\etc\\DiskSecurity directory

  3. Apply security settings to disk where Plesk data directory, defined by $PRODUCT_DATA_D , is located:

    "%plesk_dir%\\ApplySecurity.exe" --apply-to-directory --directory=E:\\
  4. Apply patch from vevn-patch.diff to %plesk_dir%\\python\\Lib\\site-packages\\virtualenv.py file

  5. Remove %plesk_dir%\\python\\Lib\\site-packages\\virtualenv.pyc file

Additional information

#213921445 Cannot install Let's Encrypt certificate

Attachments:

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