Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lemmy_server - single-line logging message for http connect timeout on federation #3627

Closed
4 tasks done
RocketDerp opened this issue Jul 15, 2023 · 1 comment
Closed
4 tasks done

Comments

@RocketDerp
Copy link
Contributor

RocketDerp commented Jul 15, 2023

Requirements

  • Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a feature request? Do not put multiple feature requests in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.

Is your proposal related to a problem?

This is an example of version 0.18.2 messages logged in the Linux syslog by the lemmy_server application:

Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]: 2023-07-15T15:33:34.382323Z  WARN lemmy_server::root_span_builder: Unknown: Request error: error sending request for url (https://lemmy.world/u/joaqonwater): operation timed out
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]: Caused by:
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:     0: error sending request for url (https://lemmy.world/u/joaqonwater): operation timed out
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:     1: operation timed out
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:    0: lemmy_apub::activities::verify_person_in_community
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:              at crates/apub/src/activities/mod.rs:59
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:    1: lemmy_apub::activities::voting::vote::verify
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:              at crates/apub/src/activities/voting/vote.rs:57
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:    2: lemmy_apub::activities::community::announce::receive
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:              at crates/apub/src/activities/community/announce.rs:154
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:    3: lemmy_server::root_span_builder::HTTP request
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:            with http.method=POST http.scheme="http" http.host=bulletintree.com http.target=/inbox otel.kind="server" request_id=93fac926-a9c4-4797-ae73-f4d32b721dae
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:              at src/root_span_builder.rs:16

Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]: LemmyError { message: Unknown("Request error: error sending request for url (https://lemmy.world/u/joaqonwater): operation timed out"), inner: Request error: error sending request for url (https://lemmy.world/u/joaqonwater): operation timed out
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]: Caused by:
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:     0: error sending request for url (https://lemmy.world/u/joaqonwater): operation timed out
Jul 15 15:33:34 instance-20230117-wakereality0 lemmy_server[2142192]:     1: operation timed out, context: SpanTrace [{ target: "lemmy_apub::activities", name: "verify_person_in_community", file: "crates/apub/src/activities/mod.rs", line: 59 }, { target: "lemmy_apub::activities::voting::vote", name: "verify", file: "crates/apub/src/activities/voting/vote.rs", line: 57 }, { target: "lemmy_apub::activities::community::announce", name: "receive", file: "crates/apub/src/activities/community/announce.rs", line: 154 }, { target: "lemmy_server::root_span_builder", name: "HTTP request", fields: "http.method=POST http.scheme=\"http\" http.host=bulletintree.com http.target=/inbox otel.kind=\"server\" request_id=93fac926-a9c4-4797-ae73-f4d32b721dae", file: "src/root_span_builder.rs", line: 16 }] }

Describe the solution you'd like.

Ideally a single line of log entry with the essence of the information for this common point of failure. Such as:

error sending request for url (https://lemmy.world/u/joaqonwater): operation timed out

Describe alternatives you've considered.

N/A

Additional context

No response

@RocketDerp

This comment was marked as abuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants