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

"relay_server::services::store: StoreService received unexpected item type" Error from sentry-self-hosted-relay-1 container after upgrade from 23.8.0 to 24.4.1 #3492

Closed
allen12921 opened this issue Apr 25, 2024 · 4 comments
Assignees

Comments

@allen12921
Copy link

Self-Hosted Version

24.4.1

CPU Architecture

x86_64

Docker Version

20.10.23

Docker Compose Version

2.20.0

Steps to Reproduce

1.upgrade from 23.8.0 to 24.4.1
2.docker compose logs -f
3.docker logs -f sentry-self-hosted-relay-1

Expected Result

no such error

Actual Result

There are many such errors for different tags.project_key:
2024-04-25T09:47:02.415953Z ERROR relay_server::services::store: StoreService received unexpected item type: session tags.project_key=xxxxxxxx tags.event_type="none"

Event ID

No response

@azaslavsky azaslavsky transferred this issue from getsentry/self-hosted Apr 26, 2024
@Dav1dde Dav1dde self-assigned this Apr 29, 2024
@Dav1dde
Copy link
Member

Dav1dde commented Apr 29, 2024

I'll take a look, we recently stopped (and removed) session ingestion from Relay, but sessions should still be accepted! But instead Relay should turn sessions into metrics and forward these instead. There is possibly a feature flag missing or too much. The idea is to remove the feature flag alltogether and extract sessions unconditionally into metrics.

This won't help you right now for self hosted, I'll try to figure out what feature flag is missing or what needs to be flipped so you can set it in your self hosted instance and keep using the upgraded version until there is a new release.

@Dav1dde
Copy link
Member

Dav1dde commented Apr 29, 2024

@allen12921 can you try enabling the organizations:metrics-extraction feature flag and see if that resolves your issue?

@Dav1dde
Copy link
Member

Dav1dde commented Apr 29, 2024

Related: #3368

Dav1dde added a commit to getsentry/sentry that referenced this issue Apr 30, 2024
Relay can no longer ingest sessions into Kafka after
getsentry/relay#3271 making these feature flags
obsolete.

See also: getsentry/relay#3368 and
getsentry/relay#3492
@Dav1dde
Copy link
Member

Dav1dde commented May 2, 2024

This should be fixed with the next Sentry release, closing this for now.

As a workaround until the next release, setting the feature flag organizations:metrics-extraction should suffice.

@Dav1dde Dav1dde closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Archived in project
Development

No branches or pull requests

2 participants