Ich bin am Thema der Föderation mit Lemmy schon sehr interessiert. Und ich möchte gerne herausfinden, warum das nicht klappt.

Wenn ich in Lemmy eine Community von friendica aus abonniere und in dieser Community einen Beitrag poste, bekomme ich in Friendica dieses Zeilen im Log (wenn ich das Protokoll auf DEBUG aufdrehe):

2022-01-10T01:54:42Z index [INFO]: Set inbox status to success {"inbox":"https://lemmy.schuerz.at/c/test/inbox"} - {"file":"APContact.php","line":487,"function":"unmarkForArchival","uid":"795e9c","process_id":1169641}
2022-01-10T01:54:42Z index [INFO]: Set shared inbox status to success {"sharedinbox":"https://lemmy.schuerz.at/inbox"} - {"file":"APContact.php","line":491,"function":"unmarkForArchival","uid":"795e9c","process_id":1169641}
2022-01-10T01:54:42Z index [INFO]: Set inbox status to success {"inbox":"https://lemmy.schuerz.at/c/test/inbox"} - {"file":"APContact.php","line":487,"function":"unmarkForArchival","uid":"76f009","process_id":1169631}
2022-01-10T01:54:42Z index [INFO]: Set shared inbox status to success {"sharedinbox":"https://lemmy.schuerz.at/inbox"} - {"file":"APContact.php","line":491,"function":"unmarkForArchival","uid":"76f009","process_id":1169631}
2022-01-10T01:54:42Z index [INFO]: Taking key from id {"id":"https://lemmy.schuerz.at/c/test#main-key"} - {"file":"HTTPSignature.php","line":644,"function":"fetchKey","uid":"76f009","process_id":1169631}
2022-01-10T01:54:42Z index [INFO]: Taking key from id {"id":"https://lemmy.schuerz.at/c/test#main-key"} - {"file":"HTTPSignature.php","line":644,"function":"fetchKey","uid":"795e9c","process_id":1169641}
2022-01-10T01:54:42Z index [INFO]: Verification failed [] - {"file":"HTTPSignature.php","line":575,"function":"getSigner","uid":"76f009","process_id":1169631}
2022-01-10T01:54:42Z index [WARNING]: Invalid HTTP signature, message will be discarded. [] - {"file":"Receiver.php","line":104,"function":"processInbox","uid":"76f009","process_id":1169631}
2022-01-10T01:54:42Z index [INFO]: Verification failed [] - {"file":"HTTPSignature.php","line":575,"function":"getSigner","uid":"795e9c","process_id":1169641}
2022-01-10T01:54:42Z index [WARNING]: Invalid HTTP signature, message will be discarded. [] - {"file":"Receiver.php","line":104,"function":"processInbox","uid":"795e9c","process_id":1169641}
2022-01-10T01:54:42Z index [INFO]: Set inbox status to success {"inbox":"https://lemmy.schuerz.at/c/test/inbox"} - {"file":"APContact.php","line":487,"function":"unmarkForArchival","uid":"489fc8","process_id":1169705}
2022-01-10T01:54:42Z index [INFO]: Set shared inbox status to success {"sharedinbox":"https://lemmy.schuerz.at/inbox"} - {"file":"APContact.php","line":491,"function":"unmarkForArchival","uid":"489fc8","process_id":1169705}
2022-01-10T01:54:42Z index [INFO]: Taking key from id {"id":"https://lemmy.schuerz.at/c/test#main-key"} - {"file":"HTTPSignature.php","line":644,"function":"fetchKey","uid":"489fc8","process_id":1169705}
2022-01-10T01:54:42Z index [INFO]: Verification failed [] - {"file":"HTTPSignature.php","line":575,"function":"getSigner","uid":"489fc8","process_id":1169705}
2022-01-10T01:54:42Z index [WARNING]: Invalid HTTP signature, message will be discarded. [] - {"file":"Receiver.php","line":104,"function":"processInbox","uid":"489fc8","process_id":1169705}
2022-01-10T01:54:43Z index [DEBUG]: No HTTP_SIGNATURE header [] - {"file":"HTTPSignature.php","line":477,"function":"getSigner","uid":"009635","process_id":1169685}
2022-01-10T01:54:43Z index [DEBUG]: No HTTP_SIGNATURE header [] - {"file":"HTTPSignature.php","line":477,"function":"getSigner","uid":"6fffdd","process_id":1169686}
2022-01-10T01:54:47Z index [DEBUG]: No HTTP_SIGNATURE header [] - {"file":"HTTPSignature.php","line":477,"function":"getSigner","uid":"d87367","process_id":1169895}

Jetzt frage ich mich, ob der Fehler bei meinem Lemmy oder Friendica liegt? Hab ich die beiden schon mal Verknüpft gehabt und nun passen die Keys nicht mehr? Oder ob es ein allgemeines Problem der Föderation zwischen Lemmy und Friendica ist.

  • jakobOP
    link
    fedilink
    02 years ago

    was nicht funktioniert sind die benachrichtigungen.
    ich hab für die testcommunity eingestellt, dass ich über neue beiträge benachrichtigt werden möchte… aber das klappt nicht.

    der neue beitrag wurde dann aber föderiert.

    schau doch schon mal gut aus.

    very cool B-)

      • jakobOP
        link
        fedilink
        02 years ago

        @heluecht und dass kommentare von friendica NICHT auf lemmy landen, hast du auch bemerkt, oder ist das nur bei mir so?

        kannst du mal probeweise antworten?

        • heluecht
          link
          fedilink
          0
          edit-2
          2 years ago

          @jakob Ich habe irgendwo etwas von einer Positivliste gelesen, die es bei Lemmy gibt.

          • jakobOP
            link
            fedilink
            02 years ago

            @heluecht
            Ja Lemmy arbeitet ursprünglich mit “Whitelisting”… aber das sollte deaktiviert sein bei mir.

            Ich hab meine instanz dennoch einmal vorsichtshalber auf die whitelist gesetzt. Und ich krieg in Lemmy jetzt das, wenn ich auf ein föderiertes Posting antworte:

            lemmy_1     | 2022-01-23T20:21:26.183621Z  INFO HTTP request{http.method=POST http.scheme="http" http.host=lemmy.schuerz.at http.target=/inbox otel.kind="server" request_id=0d4a8d70-5c5a-46d3-8866-4ea6ee988123}:
            shared_inbox: lemmy_apub::http: Received shared inbox activity {"@context":["https://www.w3.org/ns/activitystreams","https://w3id.org/security/v1",{"vcard":"http://www.w3.org/2006/vcard/ns#","dfrn":"http://purl.
            org/macgirvin/dfrn/1.0/","diaspora":"https://diasporafoundation.org/ns/","litepub":"http://litepub.social/ns#","toot":"http://joinmastodon.org/ns#","schema":"http://schema.org#","manuallyApprovesFollowers":"as:m
            anuallyApprovesFollowers","sensitive":"as:sensitive","Hashtag":"as:Hashtag","directMessage":"litepub:directMessage","discoverable":"toot:discoverable","PropertyValue":"schema:PropertyValue","value":"schema:value
            "}],"id":"https://soc.schuerz.at/objects/4edd2508-4361-edb8-c4d8-b45181083984/Create","type":"Create","actor":"https://soc.schuerz.at/profile/jakob","published":"2022-01-23T20:21:24Z","instrument":{"type":"Servi
            ce","name":"Friendica 'Siberian Iris' 2021.12-rc-1448","url":"https://soc.schuerz.at"},"to":["https://lemmy.schuerz.at/u/jakob","https://www.w3.org/ns/activitystreams#Public","https://lemmy.schuerz.at/c/test"],"cc":["https://soc.schuerz.at/followers/jakob"],"object":{"id":"https://soc.schuerz.at/objects/4edd2508-4361-edb8-c4d8-b45181083984","type":"Note","summary":"","inReplyTo":"https://lemmy.schuerz.at/post/25360","diaspora:guid":"4edd2508-4361-edb8-c4d8-b45181083984","published":"2022-01-23T20:21:24Z","url":"https://soc.schuerz.at/display/4edd2508-4361-edb8-c4d8-b45181083984","attributedTo":"https://soc.schuerz.at/profile/jakob","sensitive":false,"context":"https://lemmy.schuerz.at/post/25360#context","content":"<span class=\"h-card\"><a href=\"https://lemmy.schuerz.at/u/jakob\" class=\"u-url mention\">@<span>jakob</span></a></span> test","contentMap":{"de":"<bdi>@<a href=\"https://lemmy.schuerz.at/u/jakob\" class=\"userinfo mention\" title=\"jakob\">jakob</a></bdi> test"},"source":{"content":"@[url=https://lemmy.schuerz.at/u/jakob]jakob[/url] test","mediaType":"text/bbcode"},"diaspora:comment":"{\"author\":\"jakob@soc.schuerz.at\",\"guid\":\"4edd2508-4361-edb8-c4d8-b45181083984\",\"created_at\":\"2022-01-23T20:21:24Z\",\"edited_at\":\"2022-01-23T20:21:24Z\",\"parent_guid\":\"ea620d1e-742c8b4d15249a9b-18b5fca3\",\"text\":\"@{Jakob; jakob@lemmy.schuerz.at} test\",\"author_signature\":\"JNCqOui5Cg8\/Uxw+f0NtGCRjRnhPOrqE6kGJnMkZvOOKhlCdZbCqvyPlNJzEYDa3Z30mOWQKTTNo5BVI+VVZtGrVEqFOdzNog7jOLQoY1dKU9iEQ9vc8USwUCkyJyv48w1iXpfea87KPwv+03DMlftmD6kC7jdUVwhc7+jm0g4fh06tpOcCMQJOZqTTV\/80EjxIJQ+8eEk5evSw\/S98ohD1ahcwSomJ9hJUV1H48ucDvMod1FCLcN5h4ALHqubCu4TZIYhGhw9zoCl52GeHhrD3\/vL6OW4ftZ7UG4rEKQ4HowuXqmNwydrQldtprRtu2UrZBjLqVusPXEs\/xERQqZnalNXHijyd1TwwCmfTV4YjKwH4BhX\/p4hdWMqEP4yYXlfA4apalVeAaYZLrNR58kPJjBHad\/yqH30ziBFheqZ5odFh\/jnKB4OCFVST3u9b1OKE0jyTrbTepPTaONwc8giQH1sM8koj1gFdulwuJuOTRUKR\/8ishgHi5SWwbp5YG5Z3YSINkF10IcLiFZAF300AvwgOCdf7ferim4i\/7TR1D2CBpoNUZnKCKZRymZbE0GuKEE+A6Pk3lk\/DCsDtmMXpnxlPZ8Nq8OZS\/olXevAu1y57MNnxBDXtojr4F54MP2fO7E2JwBr7AlwoeSEvtZSAO\/elzrKfW0eVWOUM2OnI=\"}","attachment":[],"tag":[{"type":"Mention","href":"https://lemmy.schuerz.at/u/jakob","name":"@jakob@lemmy.schuerz.at"}],"to":["https://lemmy.schuerz.at/u/jakob","https://www.w3.org/ns/activitystreams#Public","https://lemmy.schuerz.at/c/test"],"cc":["https://soc.schuerz.at/followers/jakob"]},"signature":{"type":"RsaSignature2017","nonce":"fe42f1478453c9c5e92efdc8a1b00c7e2dd2ce89501f2437c4438b8add1c8ff7","creator":"https://soc.schuerz.at/profile/jakob#main-key","created":"2022-01-23T20:21:25Z","signatureValue":"iWeNKyfH/d5+f6FDmZIadF4hW7XBliL8w3PQ2QkeKQG7fheqx1MB6825JX+Eaq8C0aNESesTTiDJgy3Xdcw8tgKwAVdji2DNZh7rNbSy57AzXlXOPRDnGJUbXp8gAuW2PJNZx3TTsJ5yM7tKLmHk0PpwsnKbvjFabL5O+htyfRZNVjFAsB9bVym/dBvf4jiTZiLufGDprgsaDVygUi3QrzmwsE41NZtL/MIEtbiC5pROWQvdQBEzeLfMDsnjI4CR+3tnaSlvepipuFxeSFpwl5Ae5+YM6IYRvSDsssjr8kAg1t3XnHUyeBdBdys0A6ryR5t5QuY0ygAHFs+X633JsgHDuCxxHiqNYxFuTs1xO0gmHydFy1iKlEt2rbr9pcX05hSvEFg0bI8HEC5M9GuafpY7sOyLX0jobBUH9CxdHUu0qri4ntORlvvAYsGFNHj+folFlMRBNMkcZ+MbrAxdoXBdjhsAp+tD6nje+PeZy63yJJQmPLQi9E+fHGGe0DAobGrBE/XF8X1ABH+ywyKwVu0t6lkSxu+zdr9+JXKgnf7HaFSsknapumw9aQwC7N/Q0M5KO41fF0R4VL2GtoppyB9Ck9Dg1zwMWjL2KZN3ckbWABb+frWtmKIVQACzupRWzHiHSZjRRNJalK3uugVisHF2PFGkjYoUjHDCNegKHO0="}}
            lemmy_1 | 2022-01-23T20:21:26.191104Z WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: data did not match any variant of untagged enum SharedInboxActivities at line 1 column 4107
            lemmy_1 | 0: lemmy_apub::http::shared_inbox
            lemmy_1 | at crates/apub/src/http/mod.rs:40
            lemmy_1 | 1: lemmy_server::root_span_builder::HTTP request
            lemmy_1 | with http.method=POST http.scheme="http" http.host=lemmy.schuerz.at http.target=/inbox otel.kind="server" request_id=0d4a8d70-5c5a-46d3-8866-4ea6ee988123 http.status_code=400 otel.status_code="OK"
            lemmy_1 | at src/root_span_builder.rs:16
            lemmy_1 | 2: tokio::task::runtime.spawn
            lemmy_1 | with kind=local task.name= loc.file="/root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/task/local.rs" loc.line=302 loc.col=22
            lemmy_1 | at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/util/trace.rs:16
            lemmy_1 | 3: tokio::task::runtime.spawn
            lemmy_1 | with kind=local task.name= loc.file="/root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/task/local.rs" loc.line=302 loc.col=22
            lemmy_1 | at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/util/trace.rs:16
            lemmy_1 | 4: tokio::task::runtime.spawn
            lemmy_1 | with kind=local task.name= loc.file="/root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/task/local.rs" loc.line=302 loc.col=22
            lemmy_1 | at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/util/trace.rs:16
            lemmy_1 | 5: tokio::task::runtime.spawn
            lemmy_1 | with kind=local task.name= loc.file="/root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/task/local.rs" loc.line=302 loc.col=22
            lemmy_1 | at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/util/trace.rs:16
            lemmy_1 | 6: tokio::task::runtime.spawn
            lemmy_1 | with kind=block_on task.name= loc.file="/root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/task/local.rs" loc.line=466 loc.col=12
            lemmy_1 | at /root/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.15.0/src/util/trace.rs:16
            lemmy_1 | LemmyError { message: None, inner: data did not match any variant of untagged enum SharedInboxActivities at line 1 column 4107, context: "SpanTrace" }
            

            ich hab keine ahnung was “otel.kind” sein soll… vielleicht ist das irgendwie ein ganz blöder tippfehler im code…

            • heluecht
              link
              fedilink
              1
              edit-2
              2 years ago

              @jakob @jakob Am Besten fragst Du bei den Lemmy-Leuten nach. Es wäre gut zu wissen, auf welcher Seite da was geändert werden muss.