lemmy icon indicating copy to clipboard operation
lemmy copied to clipboard

[Bug]: lemmy_server::root_span_builder: Domain is not in allowlist

Open geoffcorey opened this issue 2 years ago • 4 comments
trafficstars

Requirements

  • [X] Is this a bug report? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • [X] Did you check to see if this issue already exists?
  • [X] Is this only a single bug? Do not put multiple bugs in one issue.
  • [ ] Is this a UI / front end issue? Use the lemmy-ui repo.

Summary

I upgraded lemmy and lemmy-ui from 0.17.3 to 0.18.0-rc.3 on docker. Using Caddy as proxy. Now seeing multiple log errors like:

2023-06-20T22:42:29.260826836Z    1: lemmy_server::root_span_builder::HTTP request
2023-06-20T22:42:29.260832829Z            with http.method=POST http.scheme="https" http.host=lemmy.thesmokinglounge.club http.target=/inbox otel.kind="server" request_id=263d4c7a-bb7d-4c7b-a819-5390d8ef0144 http.status_code=400 otel.status_code="OK"
2023-06-20T22:42:29.260845234Z              at src/root_span_builder.rs:16
2023-06-20T22:42:29.260851484Z LemmyError { message: None, inner: Other errors which are not explicitly handled, context: SpanTrace [{ target: "lemmy_apub::activities::community::announce", name: "receive", file: "crates/apub/src/activities/community/announce.rs", line: 141 }, { target: "lemmy_server::root_span_builder", name: "HTTP request", fields: "\u{1b}[3mhttp.method\u{1b}[0m\u{1b}[2m=\u{1b}[0mPOST \u{1b}[3mhttp.scheme\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"https\" \u{1b}[3mhttp.host\u{1b}[0m\u{1b}[2m=\u{1b}[0mlemmy.thesmokinglounge.club \u{1b}[3mhttp.target\u{1b}[0m\u{1b}[2m=\u{1b}[0m/inbox \u{1b}[3motel.kind\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"server\" \u{1b}[3mrequest_id\u{1b}[0m\u{1b}[2m=\u{1b}[0m263d4c7a-bb7d-4c7b-a819-5390d8ef0144 \u{1b}[3mhttp.status_code\u{1b}[0m\u{1b}[2m=\u{1b}[0m400 \u{1b}[3motel.status_code\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"OK\"", file: "src/root_span_builder.rs", line: 16 }] }
2023-06-20T22:42:40.747370770Z 2023-06-20T22:42:40.747120Z  WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: Domain is not in allowlist
2023-06-20T22:42:40.747439996Z    0: lemmy_apub::objects::comment::verify
2023-06-20T22:42:40.747449879Z              at crates/apub/src/objects/comment.rs:125
2023-06-20T22:42:40.747456327Z    1: lemmy_apub::fetcher::post_or_comment::verify
2023-06-20T22:42:40.747462210Z              at crates/apub/src/fetcher/post_or_comment.rs:68

Steps to Reproduce

  1. Take 0.17.3 docker installation
  2. Upgrade to 0.18.-rc.3

Technical Details

Tried downgrading and got other errors

Version

0.18.-rc.3

Lemmy Instance URL

lemmy.thesmokinglounge.club

geoffcorey avatar Jun 20 '23 22:06 geoffcorey

Site is unable to come up now

geoffcorey avatar Jun 20 '23 22:06 geoffcorey

Site back up after restarts, error still persists. Tried re-adding the allow list and no change

geoffcorey avatar Jun 20 '23 22:06 geoffcorey

I can get in the database and it looks like all subscribed are in the federation_allowlist. Not sure if I should just clear things out or what.

geoffcorey avatar Jun 20 '23 23:06 geoffcorey

Rebuilt the site with 0.17.4 and saved off the old DB. Guess I got ahead of myself.

geoffcorey avatar Jun 21 '23 00:06 geoffcorey

closing this ticket as it was a bit bleeding edge

geoffcorey avatar Jun 21 '23 14:06 geoffcorey