After updating to 5.40 I can no longer log in, the server log is this:
ERROR "GET /ghost/api/admin/users/me/?include=roles" 403 1ms
Authorization failed
"Unable to determine the authenticated user or integration. Check that cookies are being passed through if using session authentication."
Error ID:
e1949a10-cc91-11ed-bf6b-eff84db3c8a9
----------------------------------------
NoPermissionError: Authorization failed
at authorizeAdminApi (/var/lib/ghost/versions/5.40.1/core/server/services/auth/authorize.js:33:25)
at Layer.handle [as handle_request] (/var/lib/ghost/versions/5.40.1/node_modules/express/lib/router/layer.js:95:5)
at next (/var/lib/ghost/versions/5.40.1/node_modules/express/lib/router/route.js:144:13)
at authenticate (/var/lib/ghost/versions/5.40.1/core/server/services/auth/session/middleware.js:28:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-03-27 11:24:04] INFO "GET /ghost/api/admin/site/" 200 2ms
[2023-03-27 11:24:04] INFO "GET /ghost/api/admin/authentication/setup/" 200 7ms
when logging in, the next Post request to ghost/api/admin/session after a while returns error 524
while on the server the log reports:
[2023-03-27 11:27:54] INFO "POST /ghost/api/admin/session" 200 99011ms
very strange that ghost takes more than 1,5 minutes to process the request.
Do you have any suggestions?