Hey all, just wondering if I’m missing something or just have a fundamental misunderstanding of how federation works. I spun up a small docker instance for myself in order to interact with federated lemmy without bogging down the existing servers. I am noticing that although I am subscribed to a lot of communities, some of them don’t seem to be updating. I know that my instance will only fetch new posts and comments from the communities I’m subscribed to, but even those are not being updated. Some communities seem to be working, but others just aren’t updating. Is there a requirement that I’m not meeting to be able to fetch new data? Appreciate any ideas, thank you!

Edit: the problem was in the instance’s language settings. It is not obvious, but you can, and should, select multiple languages in your instance’s admin panel (at least Undetermined and your main language). I solved by selecting every language in the admin panel, and then selecting the relevant ones again from the individual user settings.

  • Slashzero@hakbox.social
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    It should just work. You are able to search for and subscribe to communities on other instances, so it’s not the internal networking issue I ran into with federation and smtp.

    I’ll ask anyway, what do you see in the lemmy logs? Any errors?

    sudo docker logs lemmy_lemmy_1

    • El Gringo Loco@lemmy.donmcgin.comOP
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      I’ve been monitoring the logs, the only error I’ve seen go by is the following one from the postgres container:

      lemmy-postgres-1 | 2023-06-11 17:37:12.579 UTC [31] ERROR: duplicate key value violates unique constraint "idx_activity_ap_id" lemmy-postgres-1 | 2023-06-11 17:37:12.579 UTC [31] DETAIL: Key (ap_id)=(https://lemmy.world/activities/create/f26c82de-548d-405a-bca3-00775a73411f) already exists. lemmy-postgres-1 | 2023-06-11 17:37:12.579 UTC [31] STATEMENT: INSERT INTO "activity" ("data", "local", "updated", "ap_id", "sensitive") VALUES ($1, $2, DEFAULT, $3, $4) RETURNING "activity"."id", "activity"."data", "activity"."local", "activity"."published", "activity"."updated", "activity"."ap_id", "activity"."sensitive"

            • El Gringo Loco@lemmy.donmcgin.comOP
              link
              fedilink
              arrow-up
              1
              ·
              1 year ago

              Still seeing the same behavior. Weirdly, if I search for a specific post that I know should be appearing but isn’t, it pops up immediately in the search results and I can even navigate to it within my instance (it still doesn’t show comments), but it is not popping up in my feed anywhere or on the community’s age in my instance.

              • Slashzero@hakbox.social
                link
                fedilink
                arrow-up
                3
                ·
                edit-2
                1 year ago

                This sounds like it might actually be a bug. I’ve been having issues where some posts show up if I’m logged out, or go directly to the instance hosting the post, but it doesn’t show up when I am logged into my instance and go to the community.

                You could try to file a bug in the project repo on GitHub? Of course someone else could also post some useful information here in [email protected] soon.

                One other possibility, does the post you selected have a language selected? If it was posted with no language, not even undetermined, it will cause display issues and won’t show up for some.

                • El Gringo Loco@lemmy.donmcgin.comOP
                  link
                  fedilink
                  arrow-up
                  2
                  ·
                  edit-2
                  1 year ago

                  Damn, there it is. It was the language, actually the opposite of what you described. I logged out of my instance and magically all the posts appeared. Then I noticed that only posts without a language were appearing. I had undetermined selected as the server language in the admin panel, I didn’t realize I could select more than one thing (and the warning about deselecting Undetermined had me thinking that only having undetermined selected would let me see everything). So, I turned on more languages in the admin panel and then selected English and Undetermined as the languages in my user account and voilá! Thank you for your help!

                  • Slashzero@hakbox.social
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    edit-2
                    1 year ago

                    That’s awesome! I’m glad we figured it out. 😄

                    Looks like the language thing “breaks” stuff in either direction… 🤷‍♂️

                    I am thinking I might just select all the languages in my instance settings. Missing some posts and comments because of this language setting is kind of odd, and as I said sort of feels like a bug.