So I set up a self-hosted lemmy instance to play around with but I’m a bit confused by how the federation system is supposed to work.

I followed these instructions to get setup:

https://join-lemmy.org/docs/administration/install_docker.html

I then found that I was having issues deploying the lemmy proxy as it could not find the nginx config. I was able to resolve that issue by adding the nginx internal config from the git to my instance like so:

wget https://raw.githubusercontent.com/LemmyNet/lemmy-ansible/main/templates/nginx_internal.conf

I noticed that I couldn’t search for any instances from my personal instance, so in the “Allowed Instances” in the server settings on the web UI I added: lemmy.ml lemmy.world programming.dev and sopuli.xyz

I figured that adding some of the major instances should kick-start the federation process and allow it to find other things, but it seems it does not.

Now I’ve been able to subscribe to a couple communities from my instance, [email protected] and [email protected] and of course this Selfhosted community. However, I still cannot seem to add others, for example it still fails to find anything when I try to add [email protected]

Additionally, I can’t seem to see comments from most other users on most of the posts that I do see for some reason. Even if those users are from one of those instances I’ve allowed, I still don’t see them.

Does anybody have any idea why this might be? For example, I’m quite sure I’m not going to see any of the comments on this post even though I posted it, I’ll probably have to come back and check on another account to reply and I really don’t understand why and would like to find a fix.

Thanks.

  • TheOneCurly
    link
    fedilink
    English
    8
    edit-2
    1 year ago

    I am also a novice at hosting my own instance but I think I have some tips:

    First, don’t use the allowed instances list. I believe having any items in that list blocks any instances not in the list. So you’ve effectively defederated from all instances that aren’t lemmy.ml lemmy.world programming.dev and sopuli.xyz.

    Second, make sure your languages are set properly. In the admin page there is a big list of languages. Use ctrl+click to select all the languages you want to see. Make sure that Undetermined is always selected. On mine I have that and English, you might also want German and some others but that’s up to you.

    Third, bump up your federation worker count. I doubled mine to 128.

    Lastly, use the search to connect to new communities. There isn’t really any automated discovery from known instances, you need to manually be searching for anything you want to show up in your instance. I use the default admin account to subscribe to every community I want to show up in all.

    Federation, especially from lemmy.world and kbin.social is also being kinda funky right now with so many new users. So I would also give it a little time for any changes to take effect.

    And feel free to check out all on my instance if you want to compare how comments and communities are coming through to another single user instance.

    • @[email protected]OP
      link
      fedilink
      English
      11 year ago

      Thanks for the description, seems a little counterintuitive to me, but I think I get it now. I removed the allow list and after some time it cleared up quite a bit, also rebooted it and then the “hot” page looked a lot better. I think another issue is that my instance has a pitiful amount of resources and is very slow so it also just takes a long time to get synced up with new communities but it’s definitely better now after some days.

    • @[email protected]OP
      link
      fedilink
      English
      11 year ago

      This looks pretty cool, I might have to check it out later, thanks. I was a little disappointed that you need to add all the other communities manually to get them on “all”. I’m a little worried I need to upgrade my tiny instance before I try automatically adding everything though.

  • @[email protected]
    link
    fedilink
    English
    31 year ago

    By using the allow list you only federate with those instances, however you need search for/join communities on those servers to populate your “all” view. The allowlist doesnt mean your all view gets automatically populated. The comments you are not seeing might be from instances you are not federating with, you might want to remove the allow list.

    • @[email protected]OP
      link
      fedilink
      English
      21 year ago

      Thanks for this advice, been adding some communities from there and it’s definitely improved things significantly.

  • @[email protected]
    link
    fedilink
    English
    31 year ago

    Allowed instances just whitelists them. Federation takes time especially for the large ones to connect to your instance and start working well. You also need to subscribe to remote communities for it to continue updating. There is also currently a timeout that large instances are dropping sending updates (upvotes / down votes / comments) to all connected instances because of them having to update 200k instances for each event. There is a fix in the pipeline to increase the timeout though, so hopefully that’ll be better in the near future.

  • bootyberrypancakes
    link
    fedilink
    English
    21 year ago

    Not getting comments on old posts seems to be normal for how federation works here. You should be getting new comments and new posts as their sent out though.

    Leave allowed instances blank otherwise it acts as a whitelist and you won’t federate with anything not on the list. Check your url.xyz/instances URL to see what instances you’re federated with

  • @[email protected]
    link
    fedilink
    English
    21 year ago

    If you have something in the “Allowed instances” (whitelist), everything else will be blocked. So I suggest you first start by leaving this field blank.

    Regarding the comments, I also have this issue. What I found out is that they do get synced eventually, but it can take a really long time. I just hope it will get better with time as Lemmy is improved and servers are less overloaded.

  • Lupec
    link
    fedilink
    English
    21 year ago

    In my very limited experience with my personal instance, I’ve had to give federation time for it to start working as expected. When I started out, sometimes I wouldn’t find posts or my comments wouldn’t show on the instance a post came from and whatnot, don’t notice that anymore. Could easily be something wonky on my end though, I’m not sure.
    One thing that I still find extremely confusing and unintuitive is searching for a not yet federated community doesn’t return any results, but also immediately makes the community visible in the “all” view if it does indeed exist. I was under the impression it’d just show the community link there and then so I assumed it was broken for the longest time, for all I know that’s actually how it’s supposed to go and I still have something broken somewhere lol.

    • @[email protected]
      link
      fedilink
      English
      21 year ago

      When you search for a new community on another instance it fetches the latest posts from it so it doesn’t usually show in the search for a little bit. This could be tweaked with a better API/interface to make it load though (ie notice it’s a new community and wait for it to download before search returns)

      • Lupec
        link
        fedilink
        English
        11 year ago

        Right, that’s totally fair. I guess I just think it’s such a critical step when it comes to onboarding and user friendliness it could definitely use some extra polish.

        • @[email protected]
          link
          fedilink
          English
          21 year ago

          Yeah I agree. I have been waiting on an app that supports it or for new Lemmy-ui website release that fixes the refresh on back to the feed issue since the website is the best so far at adding new communities. I also plan to load a bot someone made to subscribe by posts in larger instances to get better contents.