• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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