Is this some sort of federation issue or is this a bug¿?
Both. There is a bug in lemmy_server where federated edits seem to increment the new comment count, It's been mentioned on GitHub issues. See if you can spot if those 5 comments had edits.
looks like a file permission problem. would 1) delete the entire /var/lib/lemmy-ui tree, 2) make sure you are dong sudo -u lemmy bash and on the correct account, 3) start over at git checkout
lemmy-ui dynamically populates content from a JSON fetch in Javascript, so I expect it will be poor for search engines. In both Chrome and FIrefox on desktop, I can't even save a post or comments with the normal browser 'save' feature.
Good news is your post made it. lemmy.ml has been overloaded and I too have had major problems commenting and posting here, hopefully one of the major causes was just identified this week and a fix should be going in to improve performance site-wide.
I’m finding issues with communities not loading posts, comments or general sync issues.
Lemmy's Rust code uses an ORM called Diesel that masks the SQL statements and you really have to watch the PostgreSQL server independently to verify that the SQL isn't doing wild things like loading thousands of records when you only needed 3. Just today people are finally sharing some information out of the big servers (lemmy.world) as to what PostgreSQL side says is actually happening. Hopefully the biggest mistakes are going to get cleaned up quickly.
lemmy_server kicks off a bunch of vote counting and such on startup, then they run as scheduled repeat jobs as it keeps running. It can really put a heavy load on the database all at once.