• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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