Submitted by dmitrijs_zv on Thu, 03/25/2021 - 11:36
After successfull letsencrypt certificate installation file /etc/apache2/mods-available/ssl.conf.lock not deleted automaticaly preventing any further letsencrypt certificate installation. Problem found after last system update ( webmin, some other packages ).
Status:
Fixed (pending)
Virtualmin version:
6.15
Webmin version:
1.973
Comments
Submitted by JamieCameron on Fri, 03/26/2021 - 14:44 Comment #1
What were the contents of that
/etc/apache2/mods-available/ssl.conf.lock
file? If it was the PID of a running process, what was the command line of that process?Submitted by JamieCameron on Sun, 03/28/2021 - 12:36 Comment #2
Also, how did you install the cert? Was it via the web UI, from the virtualmin command line, or did it happen with automatic renewal?
Submitted by dmitrijs_zv on Mon, 03/29/2021 - 02:24 Comment #3
File contains PID of some process, but that process not running already. Certs was installed from Web UI, same behavior with auto renewal.
What is the output of:
Submitted by JamieCameron on Sun, 04/04/2021 - 00:14 Comment #5
A lock file containing the PID of a process that's not running shouldn't have any effect on future attempts to lock the file (by Webmin)
Submitted by dmitrijs_zv on Tue, 04/06/2021 - 02:32 Comment #6
After update from Virtualmin 6.15 to 6.16 letsencrypt update works fine. Lock file ssl.conf.lock still not auto deleted but this not blocking further ssl updates.
cat /etc/webmin/apache/config
auto_mods=1
virt_file=/etc/apache2/sites-available
link_dir=/etc/apache2/sites-enabled
test_apachectl=1
test_always=0
httpd_path=/usr/sbin/apache2
show_names=0
srm_conf=/etc/apache2/srm.conf
httpd_conf=/etc/apache2/apache2.conf
stop_cmd=/etc/init.d/apache2 stop
test_config=1
defines_name=APACHE_ARGUMENTS
apply_cmd=/usr/sbin/apache2ctl graceful
show_order=0
mime_types=/etc/apache2/mime.types
allow_virtualmin=0
apachectl_path=/usr/sbin/apache2ctl
defines_file=/etc/apache2/envvars
start_cmd=/etc/init.d/apache2 start
httpd_dir=/etc/apache2
access_conf=/etc/apache2/access.conf
test_manual=0
max_servers=100
show_list=1
Submitted by JamieCameron on Thu, 04/08/2021 - 21:21 Comment #7
Can you post the contents of
/etc/apache2/mods-available/ssl.conf
on your system?Submitted by dmitrijs_zv on Fri, 04/09/2021 - 01:38 Comment #8
<IfModule mod_ssl.c>
</IfModule>
vim: syntax=apache ts=4 sw=4 sts=4 sr noetSubmitted by JamieCameron on Sat, 04/10/2021 - 19:59 Comment #9
Thanks - I found the bug that can cause that extra lock file, and will fix it in the next Virtualmin release.