Skip to content

Constant errors from federation send worker #6212

@Nutomic

Description

@Nutomic

Voyager constantly throws this error in a loop, which causes significant cpu usage:

lemmy-1  |
lemmy-1  | Caused by:
lemmy-1  |     err getting activity: LemmyError { message: NotFound, caller: /lemmy/crates/utils/src/error.rs:278:20, inner: Record not found
lemmy-1  |
lemmy-1  |     Stack backtrace:
lemmy-1  |        0: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from
lemmy-1  |        1: <core::result::Result<T,E> as lemmy_utils::error::LemmyErrorExt<T,E>>::with_lemmy_type::{{closure}}
lemmy-1  |        2: moka::future::value_initializer::ValueInitializer<K,V,S>::try_init_or_read::{{closure}}
lemmy-1  |        3: lemmy_apub_send::worker::InstanceWorker::spawn_send_if_needed::{{closure}}
lemmy-1  |        4: lemmy_apub_send::worker::InstanceWorker::loop_until_stopped::{{closure}}
lemmy-1  |        5: lemmy_apub_send::util::CancellableTask::spawn::{{closure}}
lemmy-1  |        6: tokio::runtime::task::raw::poll
lemmy-1  |        7: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
lemmy-1  |        8: tokio::runtime::task::raw::poll
lemmy-1  |        9: std::sys::backtrace::__rust_begin_short_backtrace
lemmy-1  |       10: core::ops::function::FnOnce::call_once{{vtable.shim}}
lemmy-1  |       11: std::sys::thread::unix::Thread::new::thread_start
lemmy-1  |       12: <unknown>
lemmy-1  |       13: __clone }
lemmy-1  |
lemmy-1  | Stack backtrace:
lemmy-1  |    0: anyhow::error::<impl anyhow::Error>::msg
lemmy-1  |    1: anyhow::__private::format_err.11233
lemmy-1  |    2: lemmy_apub_send::util::get_activity_cached::{{closure}}::{{closure}}
lemmy-1  |    3: lemmy_apub_send::worker::InstanceWorker::spawn_send_if_needed::{{closure}}
lemmy-1  |    4: lemmy_apub_send::worker::InstanceWorker::loop_until_stopped::{{closure}}
lemmy-1  |    5: lemmy_apub_send::util::CancellableTask::spawn::{{closure}}
lemmy-1  |    6: tokio::runtime::task::raw::poll
lemmy-1  |    7: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
lemmy-1  |    8: tokio::runtime::task::raw::poll
lemmy-1  |    9: std::sys::backtrace::__rust_begin_short_backtrace
lemmy-1  |   10: core::ops::function::FnOnce::call_once{{vtable.shim}}
lemmy-1  |   11: std::sys::thread::unix::Thread::new::thread_start
lemmy-1  |   12: <unknown>
lemmy-1  |   13: __clone })

As a workaround I set LEMMY_DISABLE_ACTIVITY_SENDING=true for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions