Hi,
mattermost asked me to renew my LE-certificates using following command:
"/srv/letsencrypt/letsencrypt-auto certonly --reinstall --nginx -d mattermost.openstreetmap.de"
this is workinkg fine when i do that as a command in shell, it does not work running it as cron.
of course, i want to use cron.
running log (running as root):
2017-12-16 17:28:06,289:DEBUG:certbot.main:certbot version: 0.20.0
2017-12-16 17:28:06,289:DEBUG:certbot.main:Arguments: [’–reinstall’, ‘–nginx’, ‘-d’, ‘osmbc.openstreetmap.de’]
2017-12-16 17:28:06,289:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,Plug
inEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2017-12-16 17:28:06,313:DEBUG:certbot.log:Root logging level set at 20
2017-12-16 17:28:06,314:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2017-12-16 17:28:06,315:DEBUG:certbot.plugins.selection:Requested authenticator nginx and installer nginx
2017-12-16 17:28:06,765:DEBUG:certbot.plugins.selection:Single candidate plugin: * nginx
Description: Nginx Web Server plugin - Alpha
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: nginx = certbot_nginx.configurator:NginxConfigurator
Initialized: <certbot_nginx.configurator.NginxConfigurator object at 0x7fe3f1d970d0>
Prep: True
2017-12-16 17:28:06,766:DEBUG:certbot.plugins.selection:Single candidate plugin: * nginx
Description: Nginx Web Server plugin - Alpha
…
not running log (running as root cron):
2018-03-03 14:54:02,726:DEBUG:certbot.main:certbot version: 0.21.1
2018-03-03 14:54:02,727:DEBUG:certbot.main:Arguments: [’–reinstall’, ‘–nginx’, ‘-d’, ‘mattermost.openstreetmap.de’]
2018-03-03 14:54:02,727:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,Plug
inEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2018-03-03 14:54:02,757:DEBUG:certbot.log:Root logging level set at 20
2018-03-03 14:54:02,758:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2018-03-03 14:54:02,764:DEBUG:certbot.plugins.selection:Requested authenticator nginx and installer nginx
2018-03-03 14:54:02,772:DEBUG:certbot.plugins.disco:No installation (PluginEntryPoint#nginx):
Traceback (most recent call last):
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot/plugins/disco.py”, line 130, in prepare
self._initialized.prepare()
File “/opt/eff.org/certbot/venv/local/lib/python2.7/site-packages/certbot_nginx/configurator.py”, line 125, in prepare
raise errors.NoInstallationError
NoInstallationError
2018-03-03 14:54:02,773:DEBUG:certbot.plugins.selection:No candidate plugin
cron (running as root):
54 15 3 3 * /srv/letsencrypt/letsencrypt-auto certonly --reinstall --nginx -d mattermost.openstreetmap.de
any hints?
walter, germany