# Forgot password request : upsteam timeout error

**URL:** <https://forum.ghost.org/t/forgot-password-request-upsteam-timeout-error/15105>\
**Category:** Developer help\
**Created:** [June 15, 2020, 1:42pm UTC](https://forum.ghost.org/t/forgot-password-request-upsteam-timeout-error/15105 "2020-06-15T13:42:04Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharma](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sharma/32/8432_2.png) [@sharma](https://forum.ghost.org/u/sharma)\
**Post date:** [June 15, 2020, 1:42pm UTC](https://forum.ghost.org/t/forgot-password-request-upsteam-timeout-error/15105/1 "2020-06-15T13:42:05Z")

</div>

Ghost-CLI version: 1.13.1  
Ghost version: 3.19.2

I’m trying to reset admin password and it doesn’t let me do that.  
The request times out with following error that I could trace in nginx

```auto
 upstream timed out (110: Connection timed out) while reading response header from upstream, server: blog.example.com, request: "POST /ghost/api/v3/admin/authentication/passwordreset/ HTTP/2.0", upstream: "http://127.0.0.1:2369/ghost/api/v3/admin/authentication/passwordreset/", host: "blog.example.com", referrer: "https://blog.example.com/ghost/"

```

This used to work earlier. I am using mailgun to send emails and there is no reset password email sent via mailgun. Thinking it could be error in mailgun credentials, I have tried changing it to new credentials, same issue.

I don’t get any other info than this in ghost log  
`INFO "POST /ghost/api/v3/admin/authentication/passwordreset/" 200`

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [June 15, 2020, 3:40pm UTC](https://forum.ghost.org/t/forgot-password-request-upsteam-timeout-error/15105/2 "2020-06-15T15:40:54Z")

</div>

Hi @sharma, did you make sure to restart Ghost after updating the configuration using `ghost restart` in your CLI?

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [June 16, 2020, 1:46pm UTC](https://forum.ghost.org/t/forgot-password-request-upsteam-timeout-error/15105/4 "2020-06-16T13:46:25Z")

</div>

You can try [running `ghost doctor`](https://ghost.org/docs/api/v3/ghost-cli/doctor/) to log out any possible issues? You could also compare your configuration with our docs:

> **[Configuration - Adapt your publication to suit your needs](https://ghost.org/docs/config/)**
>
> Find out how to configure your Ghost publication or override Ghost's default behaviour with robust config options, including mail, storage, scheduling and more!

---

<div class="post-metadata">

**Author:** ![sharma](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sharma/32/8432_2.png) [@sharma](https://forum.ghost.org/u/sharma)\
**Post date:** [June 17, 2020, 5:05am UTC](https://forum.ghost.org/t/forgot-password-request-upsteam-timeout-error/15105/5 "2020-06-17T05:05:35Z")

</div>

@DavidDarnes No issues in ghost doctor. Everything checks out. I don’t find anything missing in configuration.

---

<div class="post-metadata">

**Author:** ![sharma](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sharma/32/8432_2.png) [@sharma](https://forum.ghost.org/u/sharma)\
**Post date:** [July 2, 2020, 7:31pm UTC](https://forum.ghost.org/t/forgot-password-request-upsteam-timeout-error/15105/6 "2020-07-02T19:31:40Z")

</div>

No solution yet. Please help!

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [July 3, 2020, 10:43am UTC](https://forum.ghost.org/t/forgot-password-request-upsteam-timeout-error/15105/7 "2020-07-03T10:43:10Z")

</div>

May be worth updating to the latest version of Ghost to ensure no legacy bugs are present. This will also cause a restart which may help too

---

<div class="post-metadata">

**Author:** ![sharma](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sharma/32/8432_2.png) [@sharma](https://forum.ghost.org/u/sharma)\
**Post date:** [July 3, 2020, 5:14pm UTC](https://forum.ghost.org/t/forgot-password-request-upsteam-timeout-error/15105/8 "2020-07-03T17:14:12Z")

</div>

I have done that. Problem, not solved.

```auto
Ghost-CLI version: 1.14.1
Ghost version: 3.22.1 (at /var/www/ghost)

```

Please help, I don’t have admin access for quite long and not able to operate the blog at all because of this

---

<div class="post-metadata">

**Author:** ![egg](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/egg/32/1691_2.png) [@egg](https://forum.ghost.org/u/egg)\
**Post date:** [July 6, 2020, 1:46pm UTC](https://forum.ghost.org/t/forgot-password-request-upsteam-timeout-error/15105/9 "2020-07-06T13:46:59Z")

</div>

If you can’t fix your mail config, you might want to try something like this: [Lost password on local install with no mail config - #4 by egg](https://forum.ghost.org/t/lost-password-on-local-install-with-no-mail-config/3496/4)

---

<div class="post-metadata">

**Author:** ![sharma](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sharma/32/8432_2.png) [@sharma](https://forum.ghost.org/u/sharma)\
**Post date:** [July 6, 2020, 2:05pm UTC](https://forum.ghost.org/t/forgot-password-request-upsteam-timeout-error/15105/10 "2020-07-06T14:05:26Z")

</div>

Thank you. You saved my day. 🙏

Now I just need to figure out why my mails are not working although the credentials are correct, I don’t see any request received by by my email service provider(mailgun)

---

<div class="post-metadata">

**Author:** ![sharma](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/sharma/32/8432_2.png) [@sharma](https://forum.ghost.org/u/sharma)\
**Post date:** [July 6, 2020, 2:41pm UTC](https://forum.ghost.org/t/forgot-password-request-upsteam-timeout-error/15105/11 "2020-07-06T14:41:54Z")

</div>

Update: It was an email misconfiguration. `mail.transport` option inside `config.production.json` was set to `Direct`, rather it should have been `SMTP`.

Thanks @egg for the help.
