ReceiverWorker nil crash in side effects of like/announce/update handling #888
Labels
No labels
approved, awaiting change
bug
cannot reproduce
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs change/feedback
needs docs
needs tests
not a bug
not our bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AkkomaGang/akkoma#888
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
From source
Extra details
Alpine 3.21
Version
current master (
74182abb5b)PostgreSQL version
17
What’s the issue?
Errors like this have long since showed up in my logs, but i initially didn’t pay too much attention to them assuming (since no further errors are logged) they fix themselves in a retry. However, when I actually checked an examples recently the announce wasn't listed on the announced post. All other examples do however get listed, maybe this one activity just happened to actually get retracted by its actor?
At first look I’m confused by how this can be
nilhere when it must have been non-nil and locally known for the main processing to conclude before.Either way it would probably be best to move all DB alterations related to an activity into the same, single transaction.
Noting it down here so it doesn't keep getting forgotten and to also allow others to pick this up.
Stacktraces
All received activities originated from (almost) up-to-date (stable or develop) Akkoma instances
Announce Stacktrace
Like Stacktrace
Update Stacktrace
Severity
I can manage
Have you searched for this issue?
[bug] nil crash in side effects of like/announce/update handlingto [bug] nil ReceiverWorker crash in side effects of like/announce/update handling[bug] nil ReceiverWorker crash in side effects of like/announce/update handlingto ReceiverWorker nil crash in side effects of like/announce/update handlingI'm also encountering this error
@shadowjonathan have you checked whether the actions still ended up being performed (on retries) by looking at the affected post?
While I didn’t check every occurrence, so far the one mentioned in the OP was the only one which didn’t end up being applied for me. Meaning it might actually have been retracted by the actor. If so, then while the issue annoying and suboptimal, it at least doesn't (unless really unlucky and this happens in the final attempt) cause permanent problems and is thus lower prio for now.
If it actually ends up blocking some things completely though, that’d be bad