Repository navigation
Closed
Description
Hey there, letsencrypt seems awesome so I wanted to give this a try after reading this nice overview :)
Installed client on Ubuntu 14.04.1 LTS (GNU/Linux 3.11.0-12-generic x86_64) with nginx
nginx version: nginx/1.4.6 (Ubuntu)
built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
TLS SNI support enabled
Using these commands:
git clone https://github.com/letsencrypt/lets-encrypt-preview.git
cd lets-encrypt-preview
./bootstrap/ubuntu.sh
virtualenv --no-site-packages -p python2 venv
./venv/bin/pip install -r requirements.txt
Went all smoothly, than ran
sudo ./venv/bin/letsencrypt --help
All seems ok so I tried
sudo ./venv/bin/letsencrypt auth
How would you like to authenticate with Let's Encrypt CA?
2 Nginx Web Server (nginx)Please enter in your domain name(s) (comma and/or space separated)
<snip>(Entered my domain here,example.comformat)
ERROR:root:Error: {u'type': u'urn:acme:error:serverInternal', u'detail': u'Error creating new authz'}
Error: {u'type': u'urn:acme:error:serverInternal', u'detail':
u'Error creating new authz'}
Response from server:
{"type":"urn:acme:error:serverInternal","detail":"Error creating
new authz"}
Traceback (most recent call last):
File "./venv/bin/letsencrypt", line 9, in <module>
load_entry_point('letsencrypt==0.1', 'console_scripts', 'letsencrypt')()
File "/root/lets-encrypt-preview/letsencrypt/cli.py", line 406, in main
return args.func(args, config, plugins)
File "/root/lets-encrypt-preview/letsencrypt/cli.py", line 133, in auth
plugins):
File "/root/lets-encrypt-preview/letsencrypt/client.py", line 206, in obtain_and_enroll_certificate
cert, privkey, chain = self.obtain_certificate(domains, csr)
File "/root/lets-encrypt-preview/letsencrypt/client.py", line 154, in obtain_certificate
authzr = self.auth_handler.get_authorizations(domains)
File "/root/lets-encrypt-preview/letsencrypt/auth_handler.py", line 69, in get_authorizations
domain, self.account.new_authzr_uri)
File "/root/lets-encrypt-preview/letsencrypt/network2.py", line 333, in request_domain_challenges
typ=messages2.IDENTIFIER_FQDN, value=domain), new_authz_uri)
File "/root/lets-encrypt-preview/letsencrypt/network2.py", line 314, in request_challenges
response = self._post(new_authzr_uri, new_authz)
File "/root/lets-encrypt-preview/letsencrypt/network2.py", line 179, in _post
self._check_response(response, content_type=content_type)
File "/root/lets-encrypt-preview/letsencrypt/network2.py", line 101, in _check_response
raise messages2.Error.from_json(jobj)
acme.messages2.Error: serverInternal :: The server experienced an internal error :: Error creating new authz
I know it's a preview, is letsencrypt server ready or am-I doing something wrong?
Thanks and nice work btw
Metadata
Metadata
Assignees
Labels
No labels
Activity
kuba commentedon Jun 15, 2015
Hey, thanks for report. This is likely because you supplied fake email address (DNS MX lookup failed) or the domain being authenticated does not resolve to any host. In fact, I've seen some
SERVFAILerrors in the demo instance logs around the time you reported this issue... it'd be a lot easier to debug if you give actually used domain name :)Nevertheless, the message is not helpful at all, agreed! This is currently being looked at in letsencrypt/boulder#344 (and fixup PR letsencrypt/boulder#354).
Maybe client should perform DNS lookups in case of errors, not to rely much on server response? @BradMW?
berenddeschouwer commentedon Jun 15, 2015
I'm getting this error too.
I'm using a real mail address.
Before the host could resolve, I was getting a different error. (see # 246), so I'm pretty sure it can resolve now.
kuba commentedon Jun 15, 2015
Yup, I've seen your request coming through, @berenddeschouwer:
DNS lookup timeout value has been increased, please try again.
berenddeschouwer commentedon Jun 15, 2015
Still fails. It takes about 10 seconds to give a response.
I think it takes longer than before; but this might be my imagination :)
I can do lookups (and type=mx) on 8.8.8.8; but Google does host that IP in different locations.
kuba commentedon Jun 15, 2015
It looks like a server bug and I've already notified Boulder devs (mind that they're likely asleep now). Please come around to #letsencrypt@Freenode if you'd like to debug with me a bit more.
GabLeRoux commentedon Jun 15, 2015
Oh thanks for you quick replies, the domain I used is
totemastudio.comhttps://who.is/whois/totemastudio.comMail server is not the same as the one hosting the website, I did provide a valid email at first.
@kuba I just logged in on #letsencrypt@Freenode
jonathannoah commentedon Jun 16, 2015
I'm having the same issue as @GabLeRoux on Ubuntu 14.04, nginx 1.8.0, using a valid public domain (jn1.me) and correctly MX'd email.
rolandshoemaker commentedon Jun 16, 2015
re: @GabLeRoux & @jonathannoah: This is caused by an upstream problem at Cloudflare's DNS servers which breaks CAA validation -- their servers reply with the
REFUSEDRCODE to certain RR queries, e.g.Googles public DNS resolver (at
8.8.8.8) will then replaceREFUSEDwithSERVFAIL, which somewhat obscures the problem at the server end. We are currently in contact with Cloudflare to see if they can add support for CAA (TYPE257) records. In the meantime I'm looking into a few possible workarounds...re @berenddeschouwer: Your problem seems to be caused by the DNS server that ducksdns.org is using,
XBILL jnamed, which has some very strange behaviors that cause validation failures at Googles resolver (for good reason). Side note: _jnamed_s README provides this great extract...berenddeschouwer commentedon Jun 16, 2015
OK, looking for an alternate provider. Are there any specific tests I should perform?
dequis commentedon Jun 16, 2015
Hey, getting the same traceback, but might be worth highlighting the way it crashes. It looks awful.
The dialog shows the json (which sounds like it handles the error just fine?) and then it throws that exception that no one handles.
I've done
sudo ./venv/bin/letsencrypt auth, left email empty (it said it's optional), selected standalone authenticator, enteredtest.dequis.orgas domain. Failed the first two attempts, after deleting/etc/letsencryptthe third attempt got throughedit nevermind it just asked me to accept the 'this is a preview' dialog, and then it failed.GabLeRoux commentedon Jun 17, 2015
@dequis thanks for your feedback, it's indeed worth mentionning this. I had the same ugly output ;)
GabLeRoux commentedon Jun 19, 2015
I tested again with same configuration and as mentioned in #507 error message changed for this:
ERROR:root:Error: {u'type': u'urn:acme:error:malformed', u'detail': u'Unable to read/verify body'}ERROR:root:Response from server: {"type":"urn:acme:error:malformed","detail":"Unable to read/verify body"}jcjones commentedon Jun 19, 2015
@GabLeRoux - delete/move your
/etc/letsencrypt/accountsdirectory and try again. That error,Unable to read/verify bodyis most likely due to DB work about 30 hours ago losing record of your account. Not saying it'll work after that, but should get past that step.I've opened Boulder Issue #376 to make this message better.
kuba commentedon Jun 20, 2015
Demo server has been updated and includes letsencrypt/boulder#381, which should improve some error messages.
GabLeRoux commentedon Jun 20, 2015
Thanks @kuba, I've tried it again, moved
/etc/letsencrypt/accountsto/etc/letsencrypt/accounts-backupas suggested by @jcjones, pulled latest repo, executed./bootstrap/ubuntu.shjust to make sure.sudo ./venv/bin/letsencrypt authThen I get same message as first message in #521
Same error when executing
sudo ./venv/bin/letsencrypt runI'll be on #letsencrypt@Freenode if you want me to test or if you need more infos.
GabLeRoux commentedon Jun 20, 2015
Running with
-vvvvvvv --text, response shows that server is currently in maintenance. #521kuba commentedon Jun 20, 2015
Please try to keep the issue scoped to one particular problem, thanks. I will respond at #521.
kuba commentedon Jun 22, 2015
For anyone using CloudFlare: letsencrypt/boulder#391
jdkasten commentedon Aug 15, 2015
I think this has been resolved or remains a Boulder DNS problem.
frankf-cgn commentedon Nov 19, 2015
To whom ever this is of interest: I have had the same problems as the reporter of this issue and I tracked down the problem to my domainname does not have had an A-Record, so ping my_domain_name.net does not give a result.
It now happens that in
boulder/ra/registration-authority.gothefunc (ra *RegistrationAuthorityImpl) validateContacts(...callsvalidateEmailwhich splits the domain-part from the local-part of the e-mail address and then callsresolver.LookupHost(domain). This method tries to resolve an IP-Address for the domain-name and that fails.I have found nowhere in the documentation that an A-Record for the domainname of the e-mail Adddress is required for letsencrypt to work. And I can not though of any valid reason for this, but I'm sure I'm missing something here.
With "domain name has an IP" I mean sth like this in bind-syntax: