I’m getting the SITE_MISSING error when trying to use the hosted ActivityPub service and believe I need manual cleanup of cached entries on ap.ghost.org, similar to this resolved case.
Apologies for the late reply, I have totally missed this thread!
We have recently shipped a change that clears outdated cache entries from ap.ghost.org. Would you be able to restart your Ghost instance once more, and see if the change helps to resolve the problem?
Hi @Sag ,
Thanks for the reply. I’ve restarted my Ghost instance as requested (full container recreation via docker-compose stop/rm/up), but I’m still getting the same errors:
Ghost logs: ERROR No webhook secret found - cannot initialise
API endpoint: https://hughevans.dev/.ghost/activitypub/v1/account/me still returns {"error":"Forbidden","code":"SITE_MISSING"}
My nginx proxy is correctly forwarding ActivityPub requests to ap.ghost.org with the proper Host headers. Is there an additional step needed, or does the cache clearing need more time to propagate? Happy to wait and try again later if needed.
There is indeed something off, but I can’t pin point what exactly.
In the production logs, I see HTTP 401/403 log entries from your site, and what surprises me is that the request URL is shown as `ap.ghost.org` (instead of your site URL) and that your site is marked as referer. Here’s an example log entry:
Would you mind sharing your nginx configuration here, or via support@ghost.org? I’m also curious if it matches what we officially recommend here, and if yes, whether these docs need a fix.
Thanks again for the reply @Sag I wonder if my setup is complicating things as Ghost is running on a separate machine and proxied to from nginx running on the first. My nginx config for hughevans.dev is as below
Thanks for catching that! I’ve been stumped for weeks! I’ve made the nginx configuration change - replaced proxy_set_header Host ap.ghost.org; with proxy_set_header Host $http_host; in both the /.ghost/activitypub/ and /.well-known/ location blocks, and restarted both nginx and Ghost.
The webfinger endpoint is now working! https://hughevans.dev/.well-known/webfinger?resource=acct:hugh@hughevans.dev returns HTTP 200.
However, the ActivityPub feed endpoint https://hughevans.dev/.ghost/activitypub/v1/feed/reader is still returning 403. @Sag Is this expected, or might there still be cached registration data on your end that needs clearing?
Thank you again both for all your help, I really appreciate it!