# Error while updating email address

**URL:** <https://community.letsencrypt.org/t/error-while-updating-email-address/24946>\
**Category:** Client dev\
**Created:** [January 1, 2017, 8:39pm UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946 "2017-01-01T20:39:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![viktor](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/viktor/32/4338_2.png) [@viktor](https://community.letsencrypt.org/u/viktor)\
**Post date:** [January 1, 2017, 8:39pm UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946/1 "2017-01-01T20:39:24Z")

</div>

Hello,

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

> 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   
> sys.exit(main())  
> File "/home/me/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py", line 776, in main  
> return config.func(config, plugins)  
> File "/home/me/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py", line 413, in register  
> body=acc.regr.body.update(contact=('mailto:' + config.email,))))  
> File "/home/me/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py", 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.

---

<div class="post-metadata">

**Author:** ![MitchellK](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mitchellk/32/18339_2.png) [@MitchellK](https://community.letsencrypt.org/u/MitchellK)\
**Post date:** [January 2, 2017, 3:21pm UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946/2 "2017-01-02T15:21:25Z")

</div>

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

try

`./certbot-auto register -d yourdomain.com --update-registration --email youremail@wherever.com`

---

<div class="post-metadata">

**Author:** ![viktor](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/viktor/32/4338_2.png) [@viktor](https://community.letsencrypt.org/u/viktor)\
**Post date:** [January 2, 2017, 3:28pm UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946/3 "2017-01-02T15:28:21Z")

</div>

I sitll get the same error.

---

<div class="post-metadata">

**Author:** ![MitchellK](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/mitchellk/32/18339_2.png) [@MitchellK](https://community.letsencrypt.org/u/MitchellK)\
**Post date:** [January 2, 2017, 4:14pm UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946/4 "2017-01-02T16:14:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![viktor](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/viktor/32/4338_2.png) [@viktor](https://community.letsencrypt.org/u/viktor)\
**Post date:** [January 15, 2017, 8:38am UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946/5 "2017-01-15T08:38:45Z")

</div>

Does someone know which mail is linked with the domain [v-gar.de](http://v-gar.de) at the moment? (perhaps @jsha) Still getting the same error… I hope it’s a client side error only.

---

<div class="post-metadata">

**Author:** ![jsha](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jsha/32/12_2.png) [@jsha](https://community.letsencrypt.org/u/jsha)\
**Post date:** [January 15, 2017, 6:06pm UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946/6 "2017-01-15T18:06:02Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![viktor](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/viktor/32/4338_2.png) [@viktor](https://community.letsencrypt.org/u/viktor)\
**Post date:** [January 15, 2017, 6:31pm UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946/7 "2017-01-15T18:31:03Z")

</div>

@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: https://github.com/letsencrypt/letsencrypt
  Push URL: https://github.com/letsencrypt/letsencrypt
  HEAD branch: master

```

I think your explination applies on my problem because acme/acme/client.py 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?

---

<div class="post-metadata">

**Author:** ![jsha](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jsha/32/12_2.png) [@jsha](https://community.letsencrypt.org/u/jsha)\
**Post date:** [January 16, 2017, 5:51pm UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946/8 "2017-01-16T17:51:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![antoniocarlosortiz](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@antoniocarlosortiz](https://community.letsencrypt.org/u/antoniocarlosortiz)\
**Post date:** [January 25, 2017, 6:16am UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946/9 "2017-01-25T06:16:50Z")

</div>

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

A reply by @jsha here [Accidentally Unsubscribed](https://community.letsencrypt.org/t/accidentally-unsubscribed/14682/12) says that the crash actually happens after the email gets updated. If so, how do I check what email is registered for notifications?

---

<div class="post-metadata">

**Author:** ![viktor](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/viktor/32/4338_2.png) [@viktor](https://community.letsencrypt.org/u/viktor)\
**Post date:** [February 10, 2017, 7:27pm UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946/10 "2017-02-10T19:27:49Z")

</div>

@jsha: are there any news yet?

I saw a pull request here already [https://github.com/certbot/certbot/pull/3165/commits/4f2a8f86d888599a7bb12ece864fb9737b6e801f](https://github.com/certbot/certbot/pull/3165/commits/4f2a8f86d888599a7bb12ece864fb9737b6e801f) but my error is triggered by line 138 in Client.update\_registration. This commit only fixes Client.register.

---

<div class="post-metadata">

**Author:** ![jsha](https://sea3.discourse-cdn.com/letsencrypt/user_avatar/community.letsencrypt.org/jsha/32/12_2.png) [@jsha](https://community.letsencrypt.org/u/jsha)\
**Post date:** [February 10, 2017, 7:42pm UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946/11 "2017-02-10T19:42:22Z")

</div>

I recently posted a PR against Certbot that I think should fix this issue: [https://github.com/certbot/certbot/pull/4197](https://github.com/certbot/certbot/pull/4197)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/letsencrypt/original/3X/c/a/ca6c06ea1ea201324bba7048c6841ce60236468d.png) [@system](https://community.letsencrypt.org/u/system)\
**Post date:** [March 12, 2017, 7:42pm UTC](https://community.letsencrypt.org/t/error-while-updating-email-address/24946/12 "2017-03-12T19:42:24Z")

</div>

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