I’ve had a perfectly working site and some 4 weeks ago pulled in image update - did not need to login then - now I’m unable to login - just in case pulled in today again.
When container starts it logs:
[2026-10-09 15:57:03] ERROR Could not get webhook secret for ActivityPub TypeError: fetch failed
[2026-10-09 15:57:03] ERROR No webhook secret found - cannot initialise
Then when I try to login:
2026-10-09 16:04:40] ERROR "POST /ghost/api/admin/session" 500 137ms
Failed to send email. Please check your site configuration and try again.
"Please see https://docs.ghost.org/config/#mail for instructions on configuring email."
Error ID:
3a7ccc0e-c116-49a8-ad1c-6527915f4f7b
Error Code:
ESOCKET
----------------------------------------
EmailError: Failed to send email. Please check your site configuration and try again.
at Object.sendAuthCodeToUser (/var/lib/ghost/versions/6.69.0/core/server/services/auth/session/session-service.js:471:13)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
at async Object.createSession (/var/lib/ghost/versions/6.69.0/core/server/services/auth/session/middleware.js:16:9)
And indeed webui login tells me: Failed to send email. Please check your site configuration and try again.
But there is more, probably more important bits, when login-landing page gets loaded:
[2026-10-09 16:06:58] 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:
45e898e8-7f8f-489e-ac4c-795c1a750fad
----------------------------------------
NoPermissionError: Authorization failed
at authorizeAdminApi (/var/lib/ghost/versions/6.69.0/core/server/services/auth/authorize.js:38:9)
at Layer.handle [as handle_request] (/var/lib/ghost/versions/6.69.0/node_modules/.pnpm/express@4.22.3_supports-color@10.2.2/node_modules/express/lib/router/layer.js:95:5)
at next (/var/lib/ghost/versions/6.69.0/node_modules/.pnpm/express@4.22.3_supports-color@10.2.2/node_modules/express/lib/router/route.js:149:13)
at authenticate (/var/lib/ghost/versions/6.69.0/core/server/services/auth/session/middleware.js:58:7)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
[2026-10-09 16:06:58] INFO "GET /ghost/api/admin/site/" 200 1ms
[2026-10-09 16:06:58] ERROR "GET /ghost/api/admin/config/" 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:
175f7b29-d1a8-48b2-9db7-01f68555b0c5
----------------------------------------
NoPermissionError: Authorization failed
at authorizeAdminApi (/var/lib/ghost/versions/6.69.0/core/server/services/auth/authorize.js:38:9)
at Layer.handle [as handle_request] (/var/lib/ghost/versions/6.69.0/node_modules/.pnpm/express@4.22.3_supports-color@10.2.2/node_modules/express/lib/router/layer.js:95:5)
at next (/var/lib/ghost/versions/6.69.0/node_modules/.pnpm/express@4.22.3_supports-color@10.2.2/node_modules/express/lib/router/route.js:149:13)
at authenticate (/var/lib/ghost/versions/6.69.0/core/server/services/auth/session/middleware.js:58:7)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
[2026-10-09 16:06:58] ERROR "GET /ghost/api/admin/users/me/?include=roles" 403 0ms
Email config bits I think are pretty clear - besides, all had been working prior to update & config-wise no changes were made, no changes to entire container side of config.
Any & all suggestion on what is not/working & how to try to fix - I’d much appreciate.
I don’t think I do - it’s there in config.production.json with everything else, which everything else seems to be working a ok.
Like I said - this site of mine had all been working prior to new image I pulled, authorization too, I used to get login confirmation codes via email and… like I said nothing else, config-wise, outside of Ghost (nothing I can think of) has been changed.
From within the container - is there a way, possibly closet way to what Ghost would do, to test email connectivity/functionality?
[2026-10-09 18:30:57] WARN Ghost was running for 11 minutes
Error: Error parsing your configuration file: [/var/lib/ghost/config.production.json]: Expected ':' after property name in JSON at position 33 (line 2 column 32)
at File.loadSync (/var/lib/ghost/versions/6.69.0/node_modules/.pnpm/nconf@0.13.0/node_modules/nconf/lib/nconf/stores/file.js:170:11)
at Provider.add (/var/lib/ghost/versions/6.69.0/node_modules/.pnpm/nconf@0.13.0/node_modules/nconf/lib/nconf/provider.js:136:23)
at Provider.file (/var/lib/ghost/versions/6.69.0/node_modules/.pnpm/nconf@0.13.0/node_modules/nconf/lib/nconf/provider.js:63:15)
at loadNconf (/var/lib/ghost/versions/6.69.0/core/shared/config/loader.js:69:11)
at Object.<anonymous> (/var/lib/ghost/versions/6.69.0/core/shared/config/index.js:3:41)
at Module._compile (node:internal/modules/cjs/loader:1781:14)
at Object..js (node:internal/modules/cjs/loader:1913:10)
at Module.load (node:internal/modules/cjs/loader:1505:32)
at Function._load (node:internal/modules/cjs/loader:1309:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:254:19)
Error: Error parsing your configuration file: [/var/lib/ghost/config.production.json]: Expected ':' after property name in JSON at position 33 (line 2 column 32)
at File.loadSync (/var/lib/ghost/versions/6.69.0/node_modules/.pnpm/nconf@0.13.0/node_modules/nconf/lib/nconf/stores/file.js:170:11)
at Provider.add (/var/lib/ghost/versions/6.69.0/node_modules/.pnpm/nconf@0.13.0/node_modules/nconf/lib/nconf/provider.js:136:23)
at Provider.file (/var/lib/ghost/versions/6.69.0/node_modules/.pnpm/nconf@0.13.0/node_modules/nconf/lib/nconf/provider.js:63:15)
at loadNconf (/var/lib/ghost/versions/6.69.0/core/shared/config/loader.js:69:11)
at Object.<anonymous> (/var/lib/ghost/versions/6.69.0/core/shared/config/index.js:3:41)
at Module._compile (node:internal/modules/cjs/loader:1781:14)
at Object..js (node:internal/modules/cjs/loader:1913:10)
at Module.load (node:internal/modules/cjs/loader:1505:32)
at Function._load (node:internal/modules/cjs/loader:1309:12)
at wrapModuleLoad (node:internal/modules/cjs/loader:254:19)
Are those your actual credentials? It seems like they might not be but I unlisted the post out of an abundance of caution, if they’re fake creds I’ll remove the unlisted designation.
Looking into it a bit though - the error message you posted originally points to some sort of outbound networking issue. The container not being able to reach the configured hosts (both ActivityPub and mail) would indicate that there’s something misconfigured outside of the container itself related to its networking.
Not sure why Ghost is complaining about config formatting though
I wouldn’t say “fake” - this is an actual config with only some bits… obfuscated - common practice I believe (same as or easier than replacing with xzxzxcy..)
I think that crucial bit - json config errors are gone now (perhaps due to the fact json file resides on networked fs, perhaps there were “issues” or something else, config is the same) - is:
`Unable to determine the authenticated user or integration. Check that cookies are being passed through if using session authentication`
The error which occurs a few times in succession when container is started & when log in/out happens:
[2026-10-10 00:21:39] INFO "DELETE /ghost/api/admin/session/" 204 8ms
[2026-10-10 00:21:39] INFO "GET /ghost/" 200 3ms
[2026-10-10 00:21:39] ERROR "GET /ghost/api/admin/users/me/?include=roles" 403 3ms
Authorization failed
"Unable to determine the authenticated user or integration. Check that cookies are being passed through if using session authentication."
Error ID:
63faadb7-09e7-4b8d-87ad-58cee400abd9
----------------------------------------
NoPermissionError: Authorization failed
at authorizeAdminApi (/var/lib/ghost/versions/6.69.0/core/server/services/auth/authorize.js:38:9)
at Layer.handle [as handle_request] (/var/lib/ghost/versions/6.69.0/node_modules/.pnpm/express@4.22.3_supports-color@10.2.2/node_modules/express/lib/router/layer.js:95:5)
at next (/var/lib/ghost/versions/6.69.0/node_modules/.pnpm/express@4.22.3_supports-color@10.2.2/node_modules/express/lib/router/route.js:149:13)
at authenticate (/var/lib/ghost/versions/6.69.0/core/server/services/auth/session/middleware.js:58:7)
[2026-10-10 00:21:39] INFO "GET /ghost/api/admin/site/" 200 0ms
[2026-10-10 00:21:39] ERROR "GET /ghost/api/admin/users/me/?include=roles" 403 3ms