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

Sentry stops logging issues for projects after some time #3016

Open
leokster opened this issue May 3, 2024 · 4 comments
Open

Sentry stops logging issues for projects after some time #3016

leokster opened this issue May 3, 2024 · 4 comments

Comments

@leokster
Copy link

leokster commented May 3, 2024

Self-Hosted Version

24.2.0

CPU Architecture

x86_64

Docker Version

n.a.

Docker Compose Version

n.a.

Steps to Reproduce

Deployed sentry in a K8s cluster. Create a project and start sending events,

import sentry_sdk
from sentry_sdk import capture_exception
import time

sentry_sdk.init(
    dsn="https://[email protected]/3",
    debug=True,
)

while True:
    current_time = time.strftime("%H:%M:%S")
    print(capture_exception(Exception(f"test exception at {current_time}")))
    time.sleep(60)

Expected Result

getting the events logged and shown in the UI forever.

Actual Result

After few minutes (~30) the logging events for this project doesn't work anymore. Events still get sent to the envelope endpoint and I receive a event ID. All services are healthy and no single container crashes. The events just disappear. If I then create a new project and change the DSN everything works again and events get logged to the new project again for some time until it fails again.

Is there anything I can do to investigate e.g. the kafka logs / topics?

Event ID

No response

@leokster
Copy link
Author

leokster commented May 3, 2024

If I monitor the events
kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic ingest-events
I only see the event getting through which then also gets displayed in the UI

EDIT

I could find a fix by setting the mode of the relay to proxy but that should probably not be the way to go.

@azaslavsky
Copy link
Contributor

It seems like the events are getting dropped between some of the services - either on the way to consumer, or somewhere else along the route.

Unfortunately, we explicitly only support docker-compose.yml setups. There are other unaffiliated repositories that have k8s setups, but we don't offer support for them.

@oniram88
Copy link

oniram88 commented May 8, 2024

I encountered the same thing.
it seems that after some time the upstream IP of the relay changes and another service responds (sentry-self-hosted-subscription-consumer-generic-metrics-1 in my case)

checking the various containers they didn't restart, so technically the internal IP address shouldn't change.
restarting only the nginx container returns it to working correctly (until the next stop)

@azaslavsky
Copy link
Contributor

Does the nginx fix directly above not work? I'm not sure what would cause the relay IP to change on your machine/docker setup, but this doesn't happen for us on our dogfood instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Waiting for: Product Owner
Status: No status
Status: No status
Development

No branches or pull requests

3 participants