I'm trying this now on Fedora 26 Minimal and Nextcloud 12.0.4. Everthing goes smoothly until I get to install the SSL cert. This is the first message I see regarding certbot during installation.
Installing : certbot-0.19.0-1.fc26.noarch 73/73
Running scriptlet: certbot-0.19.0-1.fc26.noarch 73/73
ValueError: File context for /etc/(letsencrypt|certbot)/(live|archive)(/.*)? already defined
restorecon: lstat(/etc/letsencrypt) failed: No such file or directory
Running as unit: run-r45b016845f8b4d91ba5cd0819576f126.service
I didn't initially notice this so I moved on.
[root@nextcloud nextcloud]# certbot --apache certonly --email [email protected] --domain cloud.domain.com --agree-tos --non-interactive
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Could not choose appropriate plugin: The requested apache plugin does not appear to be installed
The requested apache plugin does not appear to be installed
So then I'm thinking the apache plugin didn't install. Ran dnf install python-certbot-apache
again and it came back as installed. This is when I noticed the first message during the initial installation attempt.
I then checked the logs below
[root@nextcloud nextcloud]# cat /var/log/letsencrypt/letsencrypt.log
2017-12-21 15:13:03,500:DEBUG:certbot.main:certbot version: 0.19.0
2017-12-21 15:13:03,501:DEBUG:certbot.main:Arguments: ['--apache', '--email', '[email protected]', '--domain', 'cloud.domain.com', '--agree-tos', '--non-interactive']
2017-12-21 15:13:03,501:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2017-12-21 15:13:03,514:DEBUG:certbot.log:Root logging level set at 20
2017-12-21 15:13:03,514:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2017-12-21 15:13:03,516:DEBUG:certbot.plugins.selection:Requested authenticator apache and installer apache
2017-12-21 15:13:03,516:DEBUG:certbot.plugins.selection:No candidate plugin
2017-12-21 15:13:03,516:DEBUG:certbot.plugins.selection:No candidate plugin
2017-12-21 15:13:03,516:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None
2017-12-21 15:13:03,516:INFO:certbot.main:Could not choose appropriate plugin: The requested apache plugin does not appear to be installed
2017-12-21 15:13:03,517:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 11, in <module>
load_entry_point('certbot==0.19.0', 'console_scripts', 'certbot')()
File "/usr/lib/python3.6/site-packages/certbot/main.py", line 861, in main
return config.func(config, plugins)
File "/usr/lib/python3.6/site-packages/certbot/main.py", line 765, in certonly
installer, auth = plug_sel.choose_configurator_plugins(config, plugins, "certonly")
File "/usr/lib/python3.6/site-packages/certbot/plugins/selection.py", line 201, in choose_configurator_plugins
diagnose_configurator_problem("authenticator", req_auth, plugins)
File "/usr/lib/python3.6/site-packages/certbot/plugins/selection.py", line 297, in diagnose_configurator_problem
raise errors.PluginSelectionError(msg)
certbot.errors.PluginSelectionError: The requested apache plugin does not appear to be installed
When I ran through this procedure for CentOS7 few days back I had no issues. Has the apache plugin required changed? What am I missing?
EDIT: I also ensured certbot installed successfully with dnf install certbot
and it came back as installed.