Nutomic / ibis

GNU Affero General Public License v3.0
77 stars 5 forks source link

Viewing logs/details on federation activities #31

Closed Demigodrick closed 6 months ago

Demigodrick commented 6 months ago

Is there a way to see what is happening in terms of federation on the server? I have a couple of discrepancies where edits don't seem to federate. For example:

https://ibis.wiki/article/Setup_Instructions/history - this has the edit by salamander https://wiki.lemmy.zip/article/Setup_Instructions@ibis.wiki/history - this doesnt have the edit

https://wiki.lemmy.zip/ - main page has image https://open.ibis.wiki/article/Main_Page@wiki.lemmy.zip - main page edit not received

Nutomic commented 6 months ago

Did you follow the remote instance in those cases? You can do this by pasting the instance url (eg https://wiki.lemmy.zip/) in the search field and clicking the follow button.

Demigodrick commented 6 months ago

Yes - so this action has federated which is an edit I've made recently: https://ibis.wiki/article/Fediverse/diff/3a813c93-3592-6384-18dd-d59d86dd2a79 https://wiki.lemmy.zip/article/Fediverse/diff/3a813c93-3592-6384-18dd-d59d86dd2a79

But the above actions in the OP don't appear to have federated.

Searching for the article on both ibis.wiki and open.ibis.wiki instances directly (with the search "https://wiki.lemmy.zip/article/Main_Page") brings up the original article without the edit.

If I use wiki.mander.xyz and search for "https://wiki.lemmy.zip/" I get the main page with the cat picture. If I search on that instance for "https://wiki.lemmy.zip/article/Main_Page" I get this error: image

Nutomic commented 6 months ago

That error message is just because I didnt code the frontend well, its nothing to worry about.

In case of open.ibis.wiki I can see in the db that no local user is following wiki.lemmy.zip (select * from instance_follow;, select id,domain from instance;) so its normal that changes are not synchronized. So in that case changes would only get synchronized at most once every 24 hours. Ive followed no from open.ibis.wiki so if you make another edit it should federate.

I assume in the other case its the same, you need to follow ibis.wiki. This functionality should be more obvious in the UI. Maybe with a "follow instance" button on the article page?

Demigodrick commented 6 months ago

Ah yeah perfect the main page edit has federated to open.ibis.wiki following a small edit.

The instance has been following ibis.wiki from creation, so would the fact the third party (wiki.mander.xyz) made the change before I was federated with wiki.mander.xyz have any impact, or should ibis.wiki have pushed that change to wiki.lemmy.zip? I can check again at the 24 hour mark after edit and see if its federated across at that point.

Nutomic commented 6 months ago

ibis.wiki would only send edits to your instance after following. Also your instance should fetch all articles and edits from ibis.wiki when first interacting with it, and later every 24h at most.