• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Let's encrypt silently fails (no error is shown)

Iván Pérez

New Pleskian
Hi!

I'm trying to create certificates for all my domains, but there are some of them which are not working. For those it works fine, when I click on "Install" on the "Let's encrypt" section, I got a success green message, and then the HTTPS version of my site loads correctly.

But for a few domains, when I click on "Install", I get redirected after 2-3 seconds to the "Websites & domains" page and no error message is shown. After it the Let's encrypt certificate has not been created, and if I try again it always silently fails.

I've reinstalled the extension (which is on the latest version), but it doesn't work.

Is there any log message I can see to try to debug this problem?

Thanks!
 
Hi @UFHH01

That directory doesn't exist on my server:

Code:
[root@my-server ~]# ll /usr/local/psa/var/modules/letsencrypt
total 16K
-rw-r--r-- 1 psaadm psaadm  331 Apr  7 08:47 cli.ini.sample
drwxr-xr-x 4 psaadm psaadm 4.0K Apr  7 08:50 etc
drwx------ 2 psaadm psaadm 4.0K Apr  7 08:48 registrations
drwxr-xr-x 3 psaadm psaadm 4.0K Apr  7 08:47 venv

No `logs` inside the parent directory.
 
Hi @UFHH01

Using the command
Code:
plesk log --all
I found the cause of the error. This is the output:

Code:
==> /usr/local/psa/admin/logs/panel.log <==
[2017-04-12 10:58:40] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/filemng' 'cesens' 'mkdir' '-m0755' '/var/www/vhosts/cesens.com/app.cesens.com/public/.well-known/acme-challenge' '-p'] with exit code [1]
[2017-04-12 10:58:40] ERR [1] '/usr/local/psa/admin/bin/filemng' 'cesens' 'mkdir' '-m0755' '/var/www/vhosts/cesens.com/app.cesens.com/public/.well-known/acme-challenge' '-p' failed with code 1.

stdout:
mkdir: cannot create directory `/var/www/vhosts/cesens.com/app.cesens.com/public/.well-known': Permission denied
filemng: Error occurred during /bin/mkdir command.


stderr:
filemng: Error occurred during /bin/mkdir command.

[2017-04-12 10:59:34] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/filemng' 'cesens' 'mkdir' '-m0755' '/var/www/vhosts/cesens.com/httpdocs/public/.well-known/acme-challenge' '-p'] with exit code [1]
[2017-04-12 10:59:34] ERR [1] '/usr/local/psa/admin/bin/filemng' 'cesens' 'mkdir' '-m0755' '/var/www/vhosts/cesens.com/httpdocs/public/.well-known/acme-challenge' '-p' failed with code 1.

stdout:
mkdir: cannot create directory `/var/www/vhosts/cesens.com/httpdocs/public/.well-known': Permission denied
filemng: Error occurred during /bin/mkdir command.


stderr:
filemng: Error occurred during /bin/mkdir command.

I've fixed it by allowing the script to write on that folder, where previously was not allowed to.

Anyway, the error should appear when I click on install instead of not displaying anything.

Kind regards
 
Hi Iván Pérez,

since the Plesk Let's Encrypt Extension v2.0.3
Changes

2.0.3 (13 April 2017)
  • The extension now logs its communication with the Let's Encrypt servers in the "panel.log". This enables better troubleshooting when there are some issues with requesting a certificate.
Pls. update/upgrade your extensions and afterwards, pls. repeat your steps and investigate possible issues/errors/problems in your "panel.log".
 
Hi All,

I got a very similar issue but here some strange happens. I also tried to Change the chmod and chown but nothing changes. Please have a short view and maybe you can help:

Code:
[2017-06-15 21:07:25] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/filemng' 'domain.de' 'mkdir' '-m0755' '/var/www/vhosts/domain.de/httpdocs/cms/.well-known' '-p'] with exit code [1]
[2017-06-15 21:07:25] ERR [1] '/usr/local/psa/admin/bin/filemng' 'domain.de' 'mkdir' '-m0755' '/var/www/vhosts/domain.de/httpdocs/cms/.well-known' '-p' failed with code 1.

stdout:
mkdir: cannot create directory `/var/www/vhosts/domain.de': Permission denied
filemng: Error occurred during /bin/mkdir command.


stderr:
filemng: Error occurred during /bin/mkdir command.

I also tried to create the .well-known Directory, but even this didn't help. Still the same error message.
 
Back
Top