Skip to content

ActivityPub Fails to Load When Self-Hosting ActivityPub and Ghost with Separate Admin URL ConfigurationΒ #24639

@vgit5989

Description

@vgit5989

Issue Summary

I am self hosting Ghost 6 using docker and also want to self host the activity pub. I have made the necessary changes to the docker config and env files for this setup.

Image

Main url: blog.testing.site.local
Admin url: admin.blog.testing.site.local
This is with the official ghost, my sql, activity pub, activity pub migrate, and caddy containers

Image

My current setup with ghost 5 is ghost, my sql with routing managed by traefik
I have the same issue when swapping caddy with traefik, in ghost6, the activity pub does not load

Image Image

I will attach the log file and relevant config files below

Steps to Reproduce

  1. Setup Ghost docker compose according to the guide on: https://docs.ghost.org/install/docker#troubleshooting-docker
  2. Enable ActivityPub in the env file
  3. Set separate Admin url for Ghost
  4. Access Network tab from the admin console using the Admin URL

Ghost Version

Ghost 6.0.0-alpine

Node.js Version

Ghost 6.0.0-alpine docker compose

How did you install Ghost?

Docker Compose

Database type

MySQL 8

Browser & OS version

Firefox 141, Windows 11

Relevant log / error output

23:40:42.008 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/account/me/follows/following' 'd9419017-81cd-4afd-b1d9-1cc792e2ce33' 401 60286ms
23:40:42.607 INF activitypub: KnexKvStore: Get key cachedJwks,blog.testing.site.local
23:40:44.504 ERR activitypub: No key found for 'blog.testing.site.local'
23:40:44.504 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/blocks/accounts' 'be561ac1-b330-4a84-9a22-57d6384b0097' 401 62764ms
23:40:44.505 ERR activitypub: No key found for 'blog.testing.site.local'
23:40:44.505 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/blocks/domains' '309b1808-95e1-447a-b129-94ed401162f9' 401 62767ms
23:40:44.506 ERR activitypub: No key found for 'blog.testing.site.local'
23:40:44.506 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/users/index' '389170cf-8f36-4fd3-9171-6e35d5438c57' 401 62772ms
23:40:45.603 INF activitypub: KnexKvStore: Get key cachedJwks,blog.testing.site.local
23:40:51.100 INF activitypub: KnexKvStore: Get key cachedJwks,blog.testing.site.local
23:40:51.998 ERR activitypub: No key found for 'blog.testing.site.local'
23:40:51.999 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/users/index' '059398ef-419d-4d80-ab28-13bda630c8bb' 401 62846ms
23:40:52.000 ERR activitypub: No key found for 'blog.testing.site.local'
23:40:52.001 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/blocks/domains' 'ee6b805b-bbd9-4864-bad7-8bf83305e342' 401 62871ms
23:40:52.002 ERR activitypub: No key found for 'blog.testing.site.local'
23:40:52.002 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/notifications/unread/count' '761b3444-5a7d-462a-b889-3a072f3e950a' 401 62856ms
23:40:52.003 ERR activitypub: No key found for 'blog.testing.site.local'
23:40:52.004 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/blocks/accounts' '41026870-a6c3-4b2a-9733-1eda9f5e0123' 401 62878ms
23:40:52.004 ERR activitypub: No key found for 'blog.testing.site.local'
       
23:40:52.005 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/account/me' '5ddd0ef2-1f72-49ad-9246-40800184fd65' 401 62872ms
23:40:52.006 ERR activitypub: No key found for 'blog.testing.site.local'
23:40:52.006 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/account/me/follows/following' 'e0e1c29e-b0df-42bb-ac85-8df643c96cb0' 401 62883ms
23:40:53.097 INF activitypub: KnexKvStore: Get key cachedJwks,blog.testing.site.local
23:40:54.829 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/notifications/unread/count' '6e07cfaf-8e1f-4bd8-8335-3bd209ba6739'
23:40:54.830 INF activitypub: KnexKvStore: Get key cachedJwks,blog.testing.site.local
23:40:56.093 INF activitypub: KnexKvStore: Get key cachedJwks,blog.testing.site.local
23:40:56.860 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/account/me' '1c83046c-f500-4178-bf89-2257556affca'
23:40:56.861 INF activitypub: KnexKvStore: Get key cachedJwks,blog.testing.site.local
23:40:56.868 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/account/me/follows/following' '95d5ca76-9821-405c-817d-8adb73b20764'
23:40:56.868 INF activitypub: KnexKvStore: Get key cachedJwks,blog.testing.site.local
23:40:56.870 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/blocks/accounts' '374fd190-4df6-40f3-8696-59d93752768e'
23:40:56.870 INF activitypub: KnexKvStore: Get key cachedJwks,blog.testing.site.local
23:40:56.872 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/blocks/domains' '4d36a45b-6b38-4f58-9eea-3a6f1a7b216c'
23:40:56.872 INF activitypub: KnexKvStore: Get key cachedJwks,blog.testing.site.local
23:40:56.875 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/notifications/unread/count' '1b4c4952-cb54-4366-9038-aaf49aa5cd4e'
23:40:56.875 INF activitypub: KnexKvStore: Get key cachedJwks,blog.testing.site.local
23:40:57.244 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/users/index' '95b7f539-77f5-4a2c-959b-198851282e79'
23:40:57.244 INF activitypub: KnexKvStore: Get key cachedJwks,blog.testing.site.local
23:41:01.490 ERR activitypub: No key found for 'blog.testing.site.local'
       
23:41:01.491 INF activitypub: 'GET' 'blog.testing.site.local' 'https://blog.testing.site.local/.ghost/activitypub/v1/feed/notes' '099ee054-dde3-4eca-92d7-69adc15bc1fc' 401 62942ms

Code of Conduct

  • I agree to be friendly and polite to people in this repository

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug[triage] something behaving unexpectedlycore team[triage] Being looked at by the core Ghost team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions