Error 500 when moving posts

AI-generated summary

Thomas_Rother reports a persistent HTTP 500 error when attempting to move posts between threads in different categories, noting that the issue occurs regardless of user role (admin/moderator) or whether the source category is federated via ActivityPub. Despite extensive debugging, including checking browser console logs, network tabs, and server-side nginx logs, no specific error details were found in the initial responses. chapoi and Moin suggest checking console logs for more details, but Thomas_Rother confirms that the HAR file and server logs do not reveal the root cause, leading him to suspect a database or backend issue. zogstrip identifies a potential fix in a pull request for the discourse-activity-pub plugin. Thomas_Rother confirms the fix is related to the ActivityPub plugin and asks about deployment. zogstrip clarifies that the plugin is not bundled with the main codebase and confirms that the fix will be included in the next container update.

Moving a single or multiple posts of a thread into another thread located in another category results in http 500 error. I tested with both a moderator and admin account and with both a single post or multiple selected posts. Permission matrix of the categories:

Category Group Permissions
Source anybody see
Source group01 see reply create
Target group01 see reply create

Note that we have we have a separate permission group for mods and admins and I assume that the root cause is some tricky permissions issue. Ideas how to debug this are welcome :smiling_face_with_sunglasses:

Update: The source catogory in federated (ActivityPub), maybe this plugin code plays a role too… I removed the separate permission groups for mods and admins and tested again with two accounts which have “standard” mod (Moderator = Yes) or admin (Admin = Yes) permissions. Same results: The error 500 appears for any use case: new topic, existing topic, new message.

:white_exclamation_mark: Note: This bug was already reported a few times earlier and there were already some code fixes. I see it again in our instance with the current release 2026.3.0-latest

1 Like

Anything in the console?

Does any of the post contains a solution?

I couldnt find a solution from older posts yet. Here is the screenshot

The console shows that the 500 appears directly after a POST request for

https://forum.netzwissen.de/t/1431/move-posts
[HTTP/2 500  60ms]

which should be equivalent to clicking on the blue button. Any ideas how to debug that a bit deeper?

Is there something more helpful in the network tab of your browser console? That helped me in January with an error while moving posts.

1 Like

… unfortunately not, at least I don’t see anything useful in the response in this (compressed) har file (see response following the line 165).

forum.netzwissen.de_t_1431_move-posts_Archive [26-03-05 22-14-18].har.zip (2.8 KB)

I did some deeper debugging. Even the nginx log inside the container shows no useful information about whats going on

root@docker5-web-only:/var/log/nginx# tail -f access.log | grep 500
[06/Mar/2026:08:51:45 +0000] "``forum.netzwissen.de``" 10.10.10.21 "POST /t/1431/move-posts HTTP/1.0" "Mozilla/5.0 (X11; Linux x86
_64; rv:148.0) Gecko/20100101 Firefox/148.0" "topics/move_posts" 500 432 "``https://forum.netzwissen.de/t/begehung-quartierszent
rum-mettingen/1431/3" 0.053 0.052 "mainmod" "-" "-" "-" "-" "-" "-"

I would guess that the root cause lies somewhere behind, e.g. in the database request from postgres (we use separate containers and a dedicated postgres server)

Unfortunately this issue is still unsolved and appears from time to time, but with no visible logic/preconditions behind. So its hard to reproduce.

Again I looked into the nginx log of the web application and there is no indication of any http 500 error on the containers server side.

@here there’s a 55% chance :sweat_smile: this will fix the issue

3 Likes

perfect, thanks. I assume this is part of the activitypub plugins code. I don’t remember if this plugin is already bundled with the main code (see Bundling more popular plugins with Discourse core ). Anyway, it should come with the next build/container update, correct?

When a plugin is “bundled with the main code” that means it’s under https://github.com/discourse/discourse/tree/main/plugins - in that case, the discourse-activity-pub is not bundled with the main code :wink:

Matty Matheson Says Correct

This topic was automatically closed after 4 days. New replies are no longer allowed.