Upgrade to 26.2.1: Issue feed no new issues...
Self-Hosted Version
26.2.1
CPU Architecture
x86_64
Docker Version
28.0.4, build b8034c0ed70494a90c133461d145cd072d920d7c
Docker Compose Version
5.1.0
Machine Specification
- [x] My system meets the minimum system requirements of Sentry
Installation Type
Upgrade from 25.10
Steps to Reproduce
Took me a while to fix this so I wanted to leave this here in case someone else experiences this problem:
- Upgrade from 25.10 to 26.2.1
- First cron updates stopped taking in state updates
- Then no more updates in the issue feed
- Tried restarts and redeploys by cleaning up to no avail
Expected Result
After the Upgrade new issues should be processed and appear in the feed.
Actual Result
No new issues appeared, then started debugging.
Here the result(s):
- Relay project configs never generated (immediate symptom) The taskworker was running but consuming zero tasks. All tasks queued in the taskworker Kafka topic had application="" (set by Sentry 25.x). The new 26.2.1 taskworker sends GetTaskRequest(application='sentry') when fetching work β the taskbroker filter mismatch meant it found nothing and entered a slow backoff loop.
- Huge task backlog from the old version Every event ingested by the old Sentry (25.10) created save_event_transaction tasks in the taskworker Kafka topic. These expired tasks were never processed and blocked the consumer offset.
This was the fix I went for: Manually populated Redis with project configs for all project keys using compute_projectkey_config(), unblocking relay immediately. Then stopped taskbroker + taskworker and deleted all stale tasks from the SQLite database (DELETE FROM inflight_taskactivations) Reset the taskworker Kafka consumer group offset to latest (skipping those obsolete tasks) Restarted both services β new tasks generated by 26.2.1 including application='sentry' were then processed.
This is fixed for me - so no idea if I should immediately close it or maybe let it should linger for some time to make it easier for other people to find it.
Event ID
No response
Thank you for this π
I've had a similar issue - "taskworker was running but consuming zero tasks". I don't understand kafka nor sentry that much, so I couldn't check tasks queued in kafka to see it's tags or something. I only saw growing lag in redpanda on the taskworker topic with no change on the current offset.
I've first tried stopping taskbroker + taskworker and updated the offset to latest (trying to skip any broken tasks) but after starting them again, no change.
Then I stopped them again, opened sqlite3 /var/lib/docker/volumes/sentry-self-hosted_sentry-taskbroker/_data/taskbroker-activations.sqlite and ran delete from inflight_taskactivations, started everything again and voila, tasks started processing again.
Could you please further elaborate on the first step regarding the relay? In relay's logs I'm getting lots of
WARN relay_server::services::projects::source::upstream: error fetching project state 0378232551a7174cdb36e08cdc81627a: deadline exceeded errors=0 pending=260 tags.did_error=false tags.was_pending=true tags.project_key=0378232551a7174cdb36e08cdc81627a
Not sure whether that's actually a problem, but from the Usage stats overview in Sentry it seems that many projects are suspiciously quiet. But maybe it's just the lag from taskworker.
Edit: added the full warn line from relay. The pending=260 is worrying me, but again, no idea what that means and whether that relates to suspiciously quiet activity in our instance.
Edit 2: To add some context.
I've had issues since early morning that tasks were not processing, even though everything looked alive. At the time we were running 25.10.0. Then I tried restart, which seemed to process few issues, but got stuck again after a minute or two. Then I started upgrade to 26.2.1, ran into different issue with seaweedfs migration (https://discord.com/channels/621778831602221064/1478731251904020510) - eventually aborted the seaweed migration and restarted install.sh, booted sentry, but unfortunately tasks were not processing even though all services seemed happy in their logs.
Thank you for submitting the issue. I wonder what's the actual root cause for this.
Looping @markstory if you have some ideas.
Next time I will just delete all file systems except for PostGreSQL. The history of the shell I used is unfortunately gone - the above text is a destillation from my browser history... I used compute_projectkey_config() from https://github.com/getsentry/sentry/blob/master/src/sentry/tasks/relay.py
Looping @markstory if you have some ideas.
The change in application is a rough bump. There are a couple solutions to it:
- Go into each broker pod and use
sqlite3to update any activations that have been stored.UPDATE inflight_taskactivations SET application = 'sentry'should do the trick. - Delete the pending activations like
wodCZdid.
The pending=260 is worrying me, but again, no idea what that means and whether that relates to suspiciously quiet activity in our instance.
That metric indicates the number of stored tasks in sqlite. Do you have any old containers that could be producing tasks without application set?
Hi,
I encountered the same issue while upgrading from 25.10 to 26.1.2. My logs for relay also indicates a error while trying to fetch
relay-1 | 2026-03-05T04:39:00.461963Z WARN relay_server::services::projects::source::upstream: error fetching project state 84f19e405ba***684: deadline exceeded errors=0 pending=266 tags.did_error=false tags.was_pending=true tags.project_key=84f19e405ba***684
and a bunch of this error in taskworker
taskworker-1 | 04:40:53 [WARNING] sentry.workflow_engine.processors.detector: ensure_association_with_detector_detector_not_found (group_id=30 group_type=1 project_id=6)
Following @wodCZ 's suggestion I deleted any pendinginflight_taskactivationsbut nothing seemed to work. I also tried to reset taskworker's Kafka offset to latest by executing
docker compose exec kafka kafka-consumer-groups \
--bootstrap-server kafka:9092 \
--group taskworker \
--all-topics \
--reset-offsets \
--to-latest \
--execute
Then finally, I tried to trigger a manual migration using docker compose exec web sentry upgrade --noinput, which generated the following output
* Unknown config option found: 'uptime.snuba_uptime_results.enabled'
Checking for migrations to run for default
No migrations to run for default
Creating missing DSNs
Correcting Group.num_comments counter
04:44:00 [INFO] sentry.outboxes: Executing outbox replication backfill
04:44:00 [INFO] sentry.outboxes: Processing sentry.ControlOutboxs...
04:44:00 [INFO] sentry.outboxes: Processing sentry.RegionOutboxs...
04:44:00 [INFO] sentry.outboxes: done
After all these and a compose restart, everything seemed to started working. However, I'm not sure which step helped for the final mitigation, and what is the true underlying cause of it.
I have the same issue. None of suggested workarounds helped
I have the same issue. None of suggested workarounds helped
@Leo506 Hello! Would you please provide details about what you're seeing on the container logs, and what commands have you executed? If it's going to be long and has different message, I recommend you to create a new issue.
same issuse upgrade from 25.7.0Β to 26.2.1
- i didn't find compute_projectkey_config() in self-hosted source code, could anyone provide detail step for that action?
- what's the normal key value for that project configs in 25.7.0Β or 26.2.1 many thx
i didn't find compute_projectkey_config() in self-hosted source code, could anyone provide detail step for that action?
It is right here https://github.com/getsentry/sentry/blob/master/src/sentry/tasks/relay.py#L183
You can use sentry django shell to get a python repl with django setup. From there you can import the function and call it.
I have the same issue none of the above work. Sentry Helm Chart version 30.0.1 Sentry 26.2.1 Events are not ingested.
Example log form relay: 2026-04-23T22:03:50.749764Z WARN relay_server::services::projects::source::upstream: error fetching project state 29c7079962b3428da5f2ac61a69f8a0e: deadline exceeded errors=0 pending=219 tags.did_error=false
Invalidate project configs:
from sentry.models import Project
from sentry.tasks.relay import invalidate_project_config
from sentry.tasks.relay import compute_projectkey_config
# Get all project IDs
project_ids = Project.objects.values_list("id", flat=True)
print(f"Starting invalidation for {len(project_ids)} projects...")
for pid in project_ids:
# This calls the internal Sentry task to clear the relay cache
invalidate_project_config(project_id=pid)
key = ProjectKey.objects.get(project_id=pid, date_added__isnull=False)
config = compute_projectkey_config(key)
print(f"Invalidated project ID: {pid}")
import pprint
pprint.pprint(config)
print("Done. All project configs have been marked for refresh.")
I have the same issue none of the above work. Sentry Helm Chart version 30.0.1 Sentry 26.2.1 Events are not ingested.
Example log form relay: 2026-04-23T22:03:50.749764Z WARN relay_server::services::projects::source::upstream: error fetching project state 29c7079962b3428da5f2ac61a69f8a0e: deadline exceeded errors=0 pending=219 tags.did_error=false
Invalidate project configs:
from sentry.models import Project from sentry.tasks.relay import invalidate_project_config from sentry.tasks.relay import compute_projectkey_config # Get all project IDs project_ids = Project.objects.values_list("id", flat=True) print(f"Starting invalidation for {len(project_ids)} projects...") for pid in project_ids: # This calls the internal Sentry task to clear the relay cache invalidate_project_config(project_id=pid) key = ProjectKey.objects.get(project_id=pid, date_added__isnull=False) config = compute_projectkey_config(key) print(f"Invalidated project ID: {pid}") import pprint pprint.pprint(config) print("Done. All project configs have been marked for refresh.")
@sky-philipalmeida I wonder if there's any better way to do project config fixup on Kubernetes. I think you should ask the maintainers of the Helm chart for further help, as this is very different than the Docker Compose version.
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." β Ella Wheeler Wilcox π₯
@aldy505 Should this be closed or left open for people to easier find it?
@aldy505 Should this be closed or left open for people to easier find it?
I would prefer to close it by adding the information to the documentation. Yet I'm not quite sure because everyone's problem is different.
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!
"A weed is but an unloved flower." β Ella Wheeler Wilcox π₯
The interesting part for us here is the operational sequence around the Kafka recovery β stop affected processing, change group position, restart, then verify behavior. ReplayGuard doesn't address the stale Sentry state itself; we're building the control layer around the Kafka recovery step so the target offsets can be previewed/validated and the resulting change is controlled and auditable. I'd be interested in whether that reset sequence is something your team has had to repeat elsewhere.
https://replayguard.in