404 then try to Renew cert?


#1

Hi I have tryed to renew to certs now, but I get this error:

ClientError: <Response [404]>

The domains already running https with letsencrypt. And I use this command to try to renew them with:

./letsencrypt-auto certonly --webroot -w /var/sentora/hostdata/entertain/public_html/fitnessm8_dk -d www.fitnessm8.dk

Hope someone can help me with this :slight_smile:

Kind regards


#2

The only error message you’re getting is “ClientError:”?

Could you please give more information about what’s not exactly working? Because my crystall ball just fell on the floor and is broken…


#3

Sorry for that I get this from the log file:

2016-03-05 12:33:19,468:DEBUG:letsencrypt.cli:Root logging level set at 30 2016-03-05 12:33:19,468:INFO:letsencrypt.cli:Saving debug log to /var/log/letsencrypt/letsencrypt.log 2016-03-05 12:33:19,468:DEBUG:letsencrypt.cli:letsencrypt version: 0.4.2 2016-03-05 12:33:19,468:DEBUG:letsencrypt.cli:Arguments: ['--webroot', '-w', '/var/sentora/hostdata/entertain/public_html/fitnessm8_dk', '-d', 'www.fitnessm8.dk'] 2016-03-05 12:33:19,469:DEBUG:letsencrypt.cli:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone) 2016-03-05 12:33:19,480:DEBUG:letsencrypt.cli:Requested authenticator webroot and installer None 2016-03-05 12:33:19,493:DEBUG:letsencrypt.plugins.webroot:Creating root challenges validation dir at /var/sentora/hostdata/entertain/public_html/fitnessm8_dk/.well-known/acme-challenge 2016-03-05 12:33:19,494:DEBUG:letsencrypt.display.ops:Single candidate plugin: * webroot Description: Webroot Authenticator Interfaces: IAuthenticator, IPlugin Entry point: webroot = letsencrypt.plugins.webroot:Authenticator Initialized: <letsencrypt.plugins.webroot.Authenticator object at 0x7fe9a7671e90> Prep: True 2016-03-05 12:33:19,494:DEBUG:letsencrypt.cli:Selected authenticator <letsencrypt.plugins.webroot.Authenticator object at 0x7fe9a7671e90> and installer None 2016-03-05 12:33:19,780:DEBUG:root:Sending GET request to https://acme-v01.api.letsencrypt.org/directory94. args: (), kwargs: {} 2016-03-05 12:33:19,791:INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org 2016-03-05 12:33:20,100:DEBUG:requests.packages.urllib3.connectionpool:"GET /directory94 HTTP/1.1" 404 19 2016-03-05 12:33:20,104:DEBUG:root:Received <Response [404]>. Headers: {'Content-Length': '19', 'X-Content-Type-Options': 'nosniff', 'Expires': 'Sat, 05 Mar 2016 12:33:20 GMT', 'Server': 'nginx', 'Connection': 'keep-alive', 'Pragma': 'no-cache', 'Cache-Control': 'max-age=0, no-cache, no-store', 'Date': 'Sat, 05 Mar 2016 12:33:20 GMT', 'Content-Type': 'text/plain; charset=utf-8'}. Content: '404 page not found\n' 2016-03-05 12:33:20,105:DEBUG:acme.client:Received response <Response [404]> (headers: {'Content-Length': '19', 'X-Content-Type-Options': 'nosniff', 'Expires': 'Sat, 05 Mar 2016 12:33:20 GMT', 'Server': 'nginx', 'Connection': 'keep-alive', 'Pragma': 'no-cache', 'Cache-Control': 'max-age=0, no-cache, no-store', 'Date': 'Sat, 05 Mar 2016 12:33:20 GMT', 'Content-Type': 'text/plain; charset=utf-8'}): '404 page not found\n' 2016-03-05 12:33:20,107:DEBUG:letsencrypt.cli:Exiting abnormally: Traceback (most recent call last): File "/root/.local/share/letsencrypt/bin/letsencrypt", line 11, in <module> sys.exit(main()) File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 1993, in main return config.func(config, plugins) File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 690, in obtain_cert le_client = _init_le_client(config, authenticator, installer) File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 207, in _init_le_client acc, acme = _determine_account(config) File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/cli.py", line 192, in _determine_account config, account_storage, tos_cb=_tos_cb) File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/client.py", line 116, in register acme = acme_from_config_key(config, key) File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/letsencrypt/client.py", line 41, in acme_from_config_key return acme_client.Client(config.server, key=key, net=net) File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py", line 63, in __init__ self.net.get(directory).json()) File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py", line 627, in get self._send_request('GET', url, **kwargs), content_type=content_type) File "/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py", line 574, in _check_response raise errors.ClientError(response) ClientError: <Response [404]>


#4

Your client tries to get the path “/directory94” from Boulder, but that can’t be correct. The “94” shouldn’t be there. Very strange, no clue where it comes from. Did you edit the source code of your client?


#5

No I didnt edit anything in the letsencrypt script at all, should I delete it and download it again?


#6

It could also be a config file under /etc/letsencrypt. NOTE: Do not delete /etc/letsencrypt, it contains all your certificates, and deleting it may cause you to hit rate limits in the future. You should, as root, run grep -r directory94 /etc/letsencrypt and see what turns up.


#7

I get this from the grep output:

grep -r directory94 /etc/letsencrypt
/etc/letsencrypt/cli.ini:server = https://acme-v01.api.letsencrypt.org/directory94


#8

Well, there’s your problem :slightly_smiling:


#9

You should edit that line to remove the “94”.