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
⇧
Alex Gleason
•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 Gleason
•corne
•Alex Gleason likes this.
corne
•Alex Gleason likes this.
corne
•corne
•Alex Gleason
•Alex Gleason
•journalctl -u pleroma --since "1 minute ago"
You might need to increase the max_connections in Postgres itself
What does
htop
look like? Are you overloaded or still have room? Make sure you’re not using too much swap.Alex Gleason
•corne
•> Did you have editing before you made this upgrade?
What editing?
pleroma last minute log ($2481922) · Snippets · Snippets · GitLab
GitLabAlex Gleason
•Corné Dorrestijn
•Alex Gleason likes this.
Corné Dorrestijn
•Optimizing PostgreSQL performance - Pleroma Documentation
docs-develop.pleroma.socialAlex Gleason
•Corné Dorrestijn
•> 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.
Thanks for helping out!
Alex Gleason likes this.
Alex Gleason
•Alex Gleason
•Because in postgres, you should have like 100-200 max_connections
In prod.secret.exs, 40 is not unreasonable. I have 30 on mine.