Error while updating email address


when I try to update my email address using ./certbot-auto register --update-registration --email <mymail> I get the error UnexpectedUpdate: RegistrationResource.

2017-01-01 20:32:13,406:DEBUG:certbot.main:Exiting abnormally:
Traceback (most recent call last):
File "/home/me/.local/share/letsencrypt/bin/letsencrypt", line 11, in
File "/home/me/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/", line 776, in main
return config.func(config, plugins)
File "/home/me/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/", line 413, in register
body=acc.regr.body.update(contact=('mailto:' +,))))
File "/home/me/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/", line 132, in update_registration
raise errors.UnexpectedUpdate(regr)

What can I do? I got an expiration notice to the new address already but in the regr.json I still see the old email address.

Looks like you maybe forgot to specify which domain you are trying to update with the -d flag ?


./certbot-auto register -d --update-registration --email

I sitll get the same error.

I’ve never done this to be honest as I used an email address I’ve had for years when I registered all my certs. Hope someone else here can assist you.

Does someone know which mail is linked with the domain at the moment? (perhaps @jsha) Still getting the same error… I hope it’s a client side error only.

@viktor: What client version are you using? Older versions had a bug where the would crash out after receiving a successful response from the server, if the response included a change to the registration object. If that’s the situation you have, I would recommend upgrading your client to be sure.

@jsha: Thanks for your reply. I’m using the latest version (I hope) of certbot and already git pulled before trying to update.

remote origin
  Fetch URL:
  Push  URL:
  HEAD branch: master

I think your explination applies on my problem because acme/acme/ line 138 causes the behavior.

if updated_regr != regr:
           raise errors.UnexpectedUpdate(regr)

But this code is still present - even in the newest version on the master branch. When and where was the bug fixed?

Hm, I thought it was fixed, but it may not have actually gotten merged! I’ll take a look. Thanks for pointing it out.

Im also experiencing same error messages from the same commands (both with and without specifying the domain).

A reply by @jsha here Accidentally Unsubscribed says that the crash actually happens after the email gets updated. If so, how do I check what email is registered for notifications?

@jsha: are there any news yet?

I saw a pull request here already but my error is triggered by line 138 in Client.update_registration. This commit only fixes Client.register.

I recently posted a PR against Certbot that I think should fix this issue:


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.