I have included the requested information after the ==== below.
The short story is I think I have found a bug. I think I report that as an issue on the github site [Issues · certbot/certbot · GitHub]. But I am reporting here to get some guidance. I have processed 4 lists of 90 domains that request certificates. While processing the 5 list, I started getting errors. My prior requests for help on how to approach my situation.
I can do screen share and phone conversations. My silly wild ass guess is that after creating 360 or so certificates, with now 720 or so apache virtual hosts, is that certbot was not tested with this many files to sort and process. In this case I have a lot of output files.
One of the /var/log/letsencrypt/letsencrypt.log files got to 4,229 KB
The current log is 1,109kb
What should I do?
=======
My domain is:
Example domain that works
https://www.pbaclouda2019.com/
I am in the process of requesting certificates. I have a little php that requests 30 at a time. 90 in a day
I have 6 lists with 90 or so site names in each list. I processed the first 4 lists fine. While working on the 5 list, I started getting errors. I rebooted the server and tried again with the same result.
... examples from 1 list
http://www.DrKPeterHuberBlog.com
http://www.DrStevenLintOnline.com
http://www.DrKentSalholmBlog.com
http://www.DrCassidyBoelkBlog.com
http://www.DrPhilipMuenchBlog.com
http://www.DrMasonConnollyBlog.com
http://www.DrRobertTownsendBlog.com
I ran this command: in a php script
$cmd1 = 'certbot -n --apache --agree-tos --redirect -d ' . $ourhost . ' -d ' . $ourhostwww;
that turns into this example
certbot -n --apache --agree-tos --redirect -d drroberttownsendblog.com -d drroberttownsendblog.com
It produced this output:
Unable to run the command: apache2ctl configtest
Encountered exception during recovery:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/util.py", line 72, in run_script
universal_newlines=True)
File "/usr/lib/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1295, in _execute_child
restore_signals, start_new_session, preexec_fn)
OSError: [Errno 12] Cannot allocate memory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 2212, in config_test
util.run_script(self.option("conftest_cmd"))
File "/usr/lib/python3/dist-packages/certbot/util.py", line 77, in run_script
raise errors.SubprocessError(msg)
certbot.errors.SubprocessError: Unable to run the command: apache2ctl configtest
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/error_handler.py", line 108, in _call_registered
self.funcs-1
File "/usr/lib/python3/dist-packages/certbot/auth_handler.py", line 323, in _cleanup_challenges
self.auth.cleanup(achalls)
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 2312, in cleanup
self.restart()
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 2174, in restart
self.config_test()
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 2214, in config_test
raise errors.MisconfigurationError(str(err))
certbot.errors.MisconfigurationError: Unable to run the command: apache2ctl configtest
Unable to run the command: apache2ctl configtest
Cleaning up challenges
Unable to run the command: apache2ctl configtest
Encountered exception during recovery:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/certbot/util.py", line 72, in run_script
universal_newlines=True)
File "/usr/lib/python3.6/subprocess.py", line 729, in init
restore_signals, start_new_session)
File "/usr/lib/python3.6/subprocess.py", line 1295, in _execute_child
restore_signals, start_new_session, preexec_fn)
OSError: [Errno 12] Cannot allocate memory
My web server is (include version):
Apache/2.4.29 (Ubuntu)
The operating system my web server runs on is (include version):
Ubuntu 18.04 LTS
My hosting provider, if applicable, is: Rackspace
I can login to a root shell on my machine (yes or no, or I don't know): yes
I'm using a control panel to manage my site :no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot --version certbot 0.31.0