20
Work-around for the federation bug found in 0.19.0 and 0.19.1 - Reddthat
reddthat.comI’ve found the following work-around works pretty well. If you host an instance
that’s currently on 0.19.0 or 0.19.1, consider implementing this. There are two
bugs that this helps with:
- Outgoing federation stops after about 6 hours
[https://github.com/LemmyNet/lemmy/issues/4288] - Another federation bug which
is triggered if the server isn’t running at midnight every night
[https://github.com/LemmyNet/lemmy/issues/4039] Work-around:
Create cronjobs that restart the Lemmy container every 6 hours (but not at
midnight). The following example is used for a Debian system running Lemmy in
Docker. Type crontab -e into the terminal Add something like the following:
0 1 * * * docker container restart lemmy-lemmy-1 0 7 * * * docker container
restart lemmy-lemmy-1 0 13 * * * docker container restart lemmy-lemmy-1 0 19 * *
* docker container restart lemmy-lemmy-1 By restarting the container every 6
hours, outbound federation continues to work. There may still be some delays,
but everything gets cleared up regularly. By telling it what time to restart
(0100, 0700, 1300, and 1900 as opposed to “every 6 hours”), it avoids restarting
at midnight. This avoids the second bug. My instance has been doing this for
enough days where I’m confident that it’s working. You can check your federation
status here [https://phiresky.github.io/lemmy-federation-state]. Note that it’s
normal for there to be 0 up-to-date instances and a lot of lagging instances. As
long as they sometimes turn “up to date”, then everything is getting caught up.
Just posting a link in case our awesome admin team missed it - Happy New Year guys, you’re great!
thanks, we actually already have something similar in place since a couple days ago