Upgraded from #pleroma BE to #rebased today, but haven't received any statuses for a few hours. Sending also didn't seem to work. For now I've restored a snapshot, but I am now again missing out on those nice features. Is there any documentation on how to troubleshoot Federation/why my messages are not working? @alex
@corne It really depends. First thing I’d check is logs with journalctl -fu pleroma and see what’s happening there.
Then I’d go into the database and check jobs with select count(*) from oban_jobs; Run the command several times. Are you in the hundreds, thousands, or tens of thousands? Is the number going up or down?
If you’ve been offline for a while, you could simply have backed up jobs, and you’d need to increase your resources to catch up. This can happen anytime you’ve been offline for a while.
If you have specific errors in your logs, we could address those.
Rebased doesn’t change much about Pleroma in regards to federation, so I suspect something is just wrong with the new configuration.
@alex@corne Aah, might have been that my postgres didn't accept enough connections (20). Bumped it to 40, but my cheapo EC2 instance doesn't like that. Might need to upgrade ?
@corne@corne Has federation stopped? If the federation_incoming queue is backed up, you may need to increase the number of workers on that queue specifically.
@alex@corne So I've moved to another server, now I've increased the number of connections to 40, but I'm again getting the too many connections errors. 40 should be enough right?
@alex@corne The logs: https://gitlab.com/-/snippets/2481922. This machine is almost Idle. I could try increasing max_connections, but 20 was enough before the switch, so I can't imagine that more than 40 is needed.
> Did you have editing before you made this upgrade?
Well, increasing the max_connections (in postgresql) seems to be working. Might be useful to add to the documentation somewhere, since Pleroma recommends 20 connections.
In the Linux OTP installation guide they link to that article.
> PgTune can be used to get recommended settings. Be sure to set "Number of Connections" to 20, otherwise it might produce settings hurtful to database performance.
That setting will result in max_connections being 20 in the generated configuration.
@alex @corne personally I recommend against editing posts and "delete & redraft" Instead for a number of IOP reasons including that not every platform on the verse supports editing (your original post will be the only one ever seen by your friends on GNUSOCIAL). The speed of federation varies across the 'verse so people will still see your old unedited post after you've edited it. Some time ago I had read that DELETE is quicker that EDIT. Its less data so that makes sense.
EDIT does make sense if you are juat fixing a typo AFTER you've seen folks have already intetacted with it.