Password reset error

Fill out the following bug report template with as much detail as possible!

Are you sure this is a bug? If you just need help, post in the developer help category. If it’s a feature request, head to the ideas category.


I have a DigitalOcean Marketplace installation instance. I am running
Ubuntu 22.04.3
Ghost-CLI version: 1.25.3
Node.js v18.17.1
the database is MySQL, although I do not know the version.

When I attempt to reset a password, the system takes a long time and then gives me the error “Request was rejected due to server error” which I suspect was a timeout error.

This is especially problematic since I’ve forgotten my Admin password.

Sounds like you don’t have your outgoing mail server configured correctly. At least, that’d be my first guess. You should be able to get into the server and access logs and solve the problem, if it is outbound email. See How do I reset my Droplet's root password? :: DigitalOcean Documentation. for how to reset the root password for the server if you need to, and then I think that droplet image probably has logs at /var/www/yourghostinstance/content/logs.

I have SSH access so that’s good. When I look at the logs, this is what I see. What is it telling me?

"name":"Log","hostname":"ghost-thought","pid":207859,"level":50,"version":"5.75.3","req":{"meta":{"requestId":"8200480d-cd81-4dff-bc48-5de67395c130","userId":null},"url":"/session/","method":"POST","originalUrl":"/ghost/api/admin/session/">
{"name":"Log","hostname":"ghost-thought","pid":207859,"level":50,"version":"5.75.3","req":{"meta":{"requestId":"dbb2dec4-ceee-4c46-8e5e-db423178552a","userId":null},"url":"/session","method":"POST","originalUrl":"/ghost/api/admin/session",">
{"name":"Log","hostname":"ghost-thought","pid":207859,"level":50,"version":"5.75.3","req":{"meta":{"requestId":"9a7c3655-4d3f-4519-b941-18d31592fb8b","userId":null},"url":"/session","method":"POST","originalUrl":"/ghost/api/admin/session",">
{"name":"Log","hostname":"ghost-thought","pid":207859,"level":50,"version":"5.75.3","req":{"meta":{"requestId":"efbe7ceb-6bc5-461a-9fb6-9b29aad853cb","userId":null},"url":"/users/me/?include=roles","method":"GET","originalUrl":"/ghost/api/a>
{"name":"Log","hostname":"ghost-thought","pid":207859,"level":50,"version":"5.75.3","req":{"meta":{"requestId":"6ccf316d-7c36-424f-b61a-e4208a88c34f","userId":null},"url":"/session","method":"POST","originalUrl":"/ghost/api/admin/session",">
{"name":"Log","hostname":"ghost-thought","pid":207859,"level":50,"version":"5.75.3","req":{"meta":{"requestId":"e759de01-d2b7-487c-b75d-c9e0739278d5","userId":null},"url":"/users/me/?include=roles","method":"GET","originalUrl":"/ghost/api/a>

there’s a whole lot more to each of those lines – they’re getting truncated. Please figure out how to get the rest of the line to display.

You’re right! There’s a lot more. Here’s those same lines:

{"name":"Log","hostname":"ghost-thought","pid":207859,"level":50,"version":"5.75.3","req":{"meta":{"requestId":"8200480d-cd81-4dff-bc48-5de67395c130","userId":null},"url":"/session/","method":"POST","originalUrl":"/ghost/api/admin/session/","params":{},"headers":{"x-forwarded-for":"64.23.168.5","x-forwarded-proto":"https","x-real-ip":"64.23.168.5","host":"heatrising.net","connection":"close","content-length":"60","user-agent":"got/9.6.0 (https://github.com/sindresorhus/got)","origin":"https://heatrising.net","content-type":"application/json","accept-encoding":"gzip, deflate"},"query":{}},"res":{"_headers":{"x-powered-by":"Express","content-version":"v5.75","vary":"Accept-Version, Origin, Accept-Encoding","cache-control":"no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0","access-control-allow-origin":"https://heatrising.net","content-type":"application/json; charset=utf-8","content-length":"321","etag":"W/\"141-NMx63r7jS240zMPPRxWBzXwqVro\""},"statusCode":422,"responseTime":"159ms"},"err":{"id":"ce3a74b0-c161-11ee-aea2-a1b564853688","domain":"https://heatrising.net","code":"PASSWORD_INCORRECT","name":"ValidationError","statusCode":422,"level":"normal","message":"Your password is incorrect.","context":"\"Your password is incorrect.\"","help":"\"Visit and save your profile after logging in to check for problems.\"","stack":"ValidationError: Your password is incorrect.\n    at /var/www/ghost/versions/5.75.3/core/server/models/user.js:995:39","hideStack":false},"msg":"Your password is incorrect.","time":"2024-02-02T00:27:11.104Z","v":0}
{"name":"Log","hostname":"ghost-thought","pid":207859,"level":50,"version":"5.75.3","req":{"meta":{"requestId":"dbb2dec4-ceee-4c46-8e5e-db423178552a","userId":null},"url":"/session","method":"POST","originalUrl":"/ghost/api/admin/session","params":{},"headers":{"x-forwarded-for":"104.28.103.17","x-forwarded-proto":"https","x-real-ip":"104.28.103.17","host":"heatrising.net","connection":"close","content-length":"68","content-type":"application/json;charset=utf-8","accept":"text/plain, */*; q=0.01","x-requested-with":"XMLHttpRequest","sec-fetch-site":"same-origin","app-pragma":"no-cache","accept-language":"en-US,en;q=0.9","accept-encoding":"gzip, deflate, br","sec-fetch-mode":"cors","origin":"https://heatrising.net","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15","referer":"https://heatrising.net/ghost/","x-ghost-version":"5.75","sec-fetch-dest":"empty","cookie":"**REDACTED**"},"query":{}},"res":{"_headers":{"x-powered-by":"Express","content-version":"v5.75","vary":"Accept-Version, Origin, Accept-Encoding","cache-control":"no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0","access-control-allow-origin":"https://heatrising.net","content-type":"application/json; charset=utf-8","content-length":"321","etag":"W/\"141-XrjI2tWmAeLSnfTFs89EDGm7UMY\""},"statusCode":422,"responseTime":"129ms"},"err":{"id":"1e960cd0-c162-11ee-aea2-a1b564853688","domain":"https://heatrising.net","code":"PASSWORD_INCORRECT","name":"ValidationError","statusCode":422,"level":"normal","message":"Your password is incorrect.","context":"\"Your password is incorrect.\"","help":"\"Visit and save your profile after logging in to check for problems.\"","stack":"ValidationError: Your password is incorrect.\n    at /var/www/ghost/versions/5.75.3/core/server/models/user.js:995:39","hideStack":false},"msg":"Your password is incorrect.","time":"2024-02-02T00:29:25.921Z","v":0}
{"name":"Log","hostname":"ghost-thought","pid":207859,"level":50,"version":"5.75.3","req":{"meta":{"requestId":"9a7c3655-4d3f-4519-b941-18d31592fb8b","userId":null},"url":"/session","method":"POST","originalUrl":"/ghost/api/admin/session","params":{},"headers":{"x-forwarded-for":"104.28.103.17","x-forwarded-proto":"https","x-real-ip":"104.28.103.17","host":"heatrising.net","connection":"close","content-length":"68","content-type":"application/json;charset=utf-8","accept":"text/plain, */*; q=0.01","x-requested-with":"XMLHttpRequest","sec-fetch-site":"same-origin","app-pragma":"no-cache","accept-language":"en-US,en;q=0.9","accept-encoding":"gzip, deflate, br","sec-fetch-mode":"cors","origin":"https://heatrising.net","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15","referer":"https://heatrising.net/ghost/","x-ghost-version":"5.75","sec-fetch-dest":"empty","cookie":"**REDACTED**"},"query":{}},"res":{"_headers":{"x-powered-by":"Express","content-version":"v5.75","vary":"Accept-Version, Origin, Accept-Encoding","cache-control":"no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0","access-control-allow-origin":"https://heatrising.net","content-type":"application/json; charset=utf-8","content-length":"321","etag":"W/\"141-HxGKoXkUvlgoXJ6ULC17IdsFVbk\""},"statusCode":422,"responseTime":"124ms"},"err":{"id":"2dd78980-c162-11ee-aea2-a1b564853688","domain":"https://heatrising.net","code":"PASSWORD_INCORRECT","name":"ValidationError","statusCode":422,"level":"normal","message":"Your password is incorrect.","context":"\"Your password is incorrect.\"","help":"\"Visit and save your profile after logging in to check for problems.\"","stack":"ValidationError: Your password is incorrect.\n    at /var/www/ghost/versions/5.75.3/core/server/models/user.js:995:39","hideStack":false},"msg":"Your password is incorrect.","time":"2024-02-02T00:29:51.514Z","v":0}
{"name":"Log","hostname":"ghost-thought","pid":207859,"level":50,"version":"5.75.3","req":{"meta":{"requestId":"efbe7ceb-6bc5-461a-9fb6-9b29aad853cb","userId":null},"url":"/users/me/?include=roles","method":"GET","originalUrl":"/ghost/api/admin/users/me/?include=roles","params":{},"headers":{"x-forwarded-for":"104.28.103.17","x-forwarded-proto":"https","x-real-ip":"104.28.103.17","host":"heatrising.net","connection":"close","content-type":"application/json; charset=UTF-8","accept":"application/json, text/javascript, */*; q=0.01","x-requested-with":"XMLHttpRequest","sec-fetch-site":"same-origin","app-pragma":"no-cache","accept-language":"en-US,en;q=0.9","accept-encoding":"gzip, deflate, br","sec-fetch-mode":"cors","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15","referer":"https://heatrising.net/ghost/","x-ghost-version":"5.75","sec-fetch-dest":"empty","cookie":"**REDACTED**"},"query":{"include":"roles"}},"res":{"_headers":{"x-powered-by":"Express","content-version":"v5.75","vary":"Accept-Version, Accept-Encoding","cache-control":"no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0","content-type":"application/json; charset=utf-8","content-length":"343","etag":"W/\"157-WXOPds/Q9wQNJ6wqF0hADwCdWKM\""},"statusCode":403,"responseTime":"23ms"},"err":{"id":"6da304e0-c162-11ee-aea2-a1b564853688","domain":"https://heatrising.net","code":null,"name":"NoPermissionError","statusCode":403,"level":"normal","message":"Authorization failed","context":"\"Unable to determine the authenticated user or integration. Check that cookies are being passed through if using session authentication.\"","stack":"NoPermissionError: Authorization failed\n    at authorizeAdminApi (/var/www/ghost/versions/5.75.3/core/server/services/auth/authorize.js:33:25)\n    at Layer.handle [as handle_request] (/var/www/ghost/versions/5.75.3/node_modules/express/lib/router/layer.js:95:5)\n    at next (/var/www/ghost/versions/5.75.3/node_modules/express/lib/router/route.js:144:13)\n    at authenticate (/var/www/ghost/versions/5.75.3/core/server/services/auth/session/middleware.js:28:13)","hideStack":false},"msg":"Authorization failed","time":"2024-02-02T00:31:38.550Z","v":0}
{"name":"Log","hostname":"ghost-thought","pid":207859,"level":50,"version":"5.75.3","req":{"meta":{"requestId":"6ccf316d-7c36-424f-b61a-e4208a88c34f","userId":null},"url":"/session","method":"POST","originalUrl":"/ghost/api/admin/session","params":{},"headers":{"x-forwarded-for":"104.28.103.17","x-forwarded-proto":"https","x-real-ip":"104.28.103.17","host":"heatrising.net","connection":"close","content-length":"61","content-type":"application/json;charset=utf-8","accept":"text/plain, */*; q=0.01","x-requested-with":"XMLHttpRequest","sec-fetch-site":"same-origin","app-pragma":"no-cache","accept-language":"en-US,en;q=0.9","accept-encoding":"gzip, deflate, br","sec-fetch-mode":"cors","origin":"https://heatrising.net","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15","referer":"https://heatrising.net/ghost/","x-ghost-version":"5.75","sec-fetch-dest":"empty","cookie":"**REDACTED**"},"query":{}},"res":{"_headers":{"x-powered-by":"Express","content-version":"v5.75","vary":"Accept-Version, Origin, Accept-Encoding","cache-control":"no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0","access-control-allow-origin":"https://heatrising.net","content-type":"application/json; charset=utf-8","content-length":"321","etag":"W/\"141-maqi7cYJ8RR2kGnKmc2SSKwXOj4\""},"statusCode":422,"responseTime":"124ms"},"err":{"id":"771673e0-c162-11ee-aea2-a1b564853688","domain":"https://heatrising.net","code":"PASSWORD_INCORRECT","name":"ValidationError","statusCode":422,"level":"normal","message":"Your password is incorrect.","context":"\"Your password is incorrect.\"","help":"\"Visit and save your profile after logging in to check for problems.\"","stack":"ValidationError: Your password is incorrect.\n    at /var/www/ghost/versions/5.75.3/core/server/models/user.js:995:39","hideStack":false},"msg":"Your password is incorrect.","time":"2024-02-02T00:31:54.401Z","v":0}
{"name":"Log","hostname":"ghost-thought","pid":207859,"level":50,"version":"5.75.3","req":{"meta":{"requestId":"e759de01-d2b7-487c-b75d-c9e0739278d5","userId":null},"url":"/users/me/?include=roles","method":"GET","originalUrl":"/ghost/api/admin/users/me/?include=roles","params":{},"headers":{"x-forwarded-for":"107.219.70.72","x-forwarded-proto":"https","x-real-ip":"107.219.70.72","host":"heatrising.net","connection":"close","sec-ch-ua":"\"Not A(Brand\";v=\"99\", \"Google Chrome\";v=\"121\", \"Chromium\";v=\"121\"","sec-ch-ua-mobile":"?0","app-pragma":"no-cache","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36","content-type":"application/json; charset=UTF-8","accept":"application/json, text/javascript, */*; q=0.01","x-requested-with":"XMLHttpRequest","x-ghost-version":"5.75","sec-ch-ua-platform":"\"macOS\"","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","sec-fetch-dest":"empty","referer":"https://heatrising.net/ghost/","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9","cookie":"**REDACTED**"},"query":{"include":"roles"}},"res":{"_headers":{"x-powered-by":"Express","content-version":"v5.75","vary":"Accept-Version, Accept-Encoding","cache-control":"no-cache, private, no-store, must-revalidate, max-stale=0, post-check=0, pre-check=0","content-type":"application/json; charset=utf-8","content-length":"343","etag":"W/\"157-yFgGY4/bf03G5rQuzXCweoflT48\""},"statusCode":403,"responseTime":"5ms"},"err":{"id":"f4ade260-c168-11ee-aea2-a1b564853688","domain":"https://heatrising.net","code":null,"name":"NoPermissionError","statusCode":403,"level":"normal","message":"Authorization failed","context":"\"Unable to determine the authenticated user or integration. Check that cookies are being passed through if using session authentication.\"","stack":"NoPermissionError: Authorization failed\n    at authorizeAdminApi (/var/www/ghost/versions/5.75.3/core/server/services/auth/authorize.js:33:25)\n    at Layer.handle [as handle_request] (/var/www/ghost/versions/5.75.3/node_modules/express/lib/router/layer.js:95:5)\n    at next (/var/www/ghost/versions/5.75.3/node_modules/express/lib/router/route.js:144:13)\n    at authenticate (/var/www/ghost/versions/5.75.3/core/server/services/auth/session/middleware.js:28:13)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","hideStack":false},"msg":"Authorization failed","time":"2024-02-02T01:18:22.089Z","v":0}

Hard to read while side scrolling on my phone, but I think those are all login attempts? We need a password reset attempt.

You’ll probably also need to share the mail part of your config.production.json.

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