I’m trying to run Ghost with a docker image. Everything seems to be working until I run the setup, then I get the following error: Authorization failed Unable to determine the authenticated user or integration. Check that cookies are being passed through if using session authentication.
And the log says the following:
2020-06-06T21:18:55.665780000Z [2020-06-06 21:18:55] INFO Ghost is running in production…
2020-06-06T21:18:55.667902000Z [2020-06-06 21:18:55] INFO Your site is now available on https://pi-exports.com/
2020-06-06T21:18:55.679869000Z [2020-06-06 21:18:55] INFO Ctrl+C to shut down
2020-06-06T21:18:55.682375000Z [2020-06-06 21:18:55] INFO Ghost boot 2.683s
2020-06-06T21:19:17.872642000Z [2020-06-06 21:19:17] INFO “GET /ghost/” 200 102ms
2020-06-06T21:19:17.874216000Z (node:1) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
2020-06-06T21:19:18.368059000Z [2020-06-06 21:19:18] INFO “GET /ghost/assets/img/favicon.ico” 200 1ms
2020-06-06T21:19:18.460012000Z [2020-06-06 21:19:18] ERROR “GET /ghost/api/v3/admin/users/me/?include=roles” 403 10ms
2020-06-06T21:19:18.460212000Z
2020-06-06T21:19:18.460342000Z Authorization failed
2020-06-06T21:19:18.460499000Z “Unable to determine the authenticated user or integration. Check that cookies are being passed through if using session authentication.”
2020-06-06T21:19:18.460687000Z Error ID:
2020-06-06T21:19:18.460772000Z 61bd1560-a83b-11ea-9103-910f814fb93b
2020-06-06T21:19:18.460912000Z ----------------------------------------
2020-06-06T21:19:18.461114000Z NoPermissionError: Authorization failed
2020-06-06T21:19:18.461195000Z at new NoPermissionError (/var/lib/ghost/versions/3.18.1/node_modules/ghost-ignition/lib/errors/index.js:134:23)
2020-06-06T21:19:18.461266000Z at authorizeAdminApi (/var/lib/ghost/versions/3.18.1/core/server/services/auth/authorize.js:28:25)
2020-06-06T21:19:18.461349000Z at Layer.handle [as handle_request] (/var/lib/ghost/versions/3.18.1/node_modules/express/lib/router/layer.js:95:5)
2020-06-06T21:19:18.461419000Z at next (/var/lib/ghost/versions/3.18.1/node_modules/express/lib/router/route.js:137:13)
2020-06-06T21:19:18.461485000Z at authenticate (/var/lib/ghost/versions/3.18.1/core/server/services/auth/session/middleware.js:24:13)
2020-06-06T21:19:18.461549000Z at processTicksAndRejections (internal/process/task_queues.js:97:5)
I remember running in to this issue before, installing ghost using ghost-cli, and I think it was local file permission problem. Does anyone have any idea what it could be?
Using latest ghost version with docker on Fedora Core OS.