29
submitted 1 year ago by jerry@fedia.io to c/fedia@fedia.io

So here's the deal with kbin: kbin uses of symphony messenger processes, which are roughly equivalent to sidekiq in mastodon.

After I moved fedia from the docker hosted environment to a bare metal instance, I had all manner of database issues - the dump and reload didn't work well, creating many duplicate records. That caused the messenger services to die and the queue of activitypub records to process grew huge. Restarting the messenger service worked, however it would never finish, so I increased the number of messenger workers to 16. That kept the queue nice and clean.

HOWEVER, it appears that running multiple messenger processes creates race conditions where things like images ids are created and assigned to different entity records (like posts) but there is no actual image record created, so when kbin goes to draw a page, it runs a complex query to pull magazine info, post info, comments info, user info and all of their respective images. Those records LOOK like they have an image, but there is no actual image, and so kbin says 💩​ I ain't working and gives the wonderful 500 error.

Setting the messenger services back to 1 seems to be at least not be making the problem worse, but now I have to go find all the broken database record linkages.

you are viewing a single comment's thread
view the rest of the comments
[-] jerry@fedia.io 2 points 1 year ago

have you seen any errors over the past 3 hours?

this post was submitted on 22 Jun 2023
29 points (100.0% liked)

Fedia Discussions

2 readers
1 users here now

founded 1 year ago
MODERATORS