• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Issue Plesk Let's Encrypt extension still leaves garbage behind in .well-known/acme-challenge/ directories

burnley

Regular Pleskian
Posted my question here as well, since it's become a major nuisance for us and we want it fixed:
[FIXED BUG] Let's Encrypt challenge files are not removed from .well-known/acme-challenge/ directories

Just stumbled on this article after a major clean up on our Linux plesk servers, littered with millions of such stale files. Now running Plesk Obsidian
Version 18.0.23 Update #3 with Let's Encrypt extension Version 2.8.6-571 on all of them since 5th of February and we're still seeing thousands of challenge files created and left scattered around. Both in /var/www/vhosts/<vhost>/httpdocs/.well-known/acme-challenge/ as well as /var/www/vhosts/default/htdocs/.well-known/acme-challenge/


How should we configure Plesk to have this issue fixed once and for all? Reading Managing Let’s Encrypt Settings I haven't found anything that tackles the removal of old files. Are we supposed to set up our own cron jobs for this?
 
There should be a cronjob configured to remove these files if they are older than 1 month:

Bash:
$ sudo crontab -l -u psaadm | grep "remove-expired-tokens"

Output should be:
Code:
0       0       *       *       0       /opt/psa/admin/bin/php -dauto_prepend_file=sdk.php '/opt/psa/admin/plib/modules/letsencrypt/scripts/remove-expired-tokens.php'
 
Back
Top