Discourse Activitypub gives 502 after rebuilding

Self hosted 2-container, and when rebuilded today (latest) Activitypub makes error 502. Commenting it out from web_only.yml helps.

1 Like

I can confirm; it needed to be disabled as well.

1 Like

Looks like there was a recent fix FIX: Correct polymorphic attachment association - Pull Request #340 - discourse/discourse-activity-pub - GitHub, do you know if your Discourse core version has Rails 8.1 or not? @techAPJ we may need to add a compatibility entry for this change.

2 Likes

I think so:

root@foorumi-hel-web-only:/var/www/discourse# bundle exec rails --version
Rails 8.1.3.1
2 Likes

@pmusaraj I checked this against Rails 8.0.5.1 and 8.1.3.1. A compatibility entry shouldn’t be needed: the corrected association works on both versions. The previous declaration fails to load on Rails 8.1 because it specifies class_name alongside polymorphic: true.

The initial report was posted about ~15 minutes before the fix merged, so it could have been from a rebuild without the fix.

@Jagster @satonotdead could you try rebuilding again with ActivityPub enabled? If you still get a 502, please share error log from /logs.

2 Likes

Rebuilding worked nicely!

2 Likes