Prematurely reached end of stream

Describe your incident:

My Opnsense-Monitoring Stack, based off elasticsearch, mongodb and graylog is not working anymore. The culprit seems to be graylog that cannot connect to mongodb, yet mongodb is healthy. Every 60 seconds, graylog looses connection to mongodb, yet it connects again successfully, then after 60 seconds again the error “Prematurely reached end of stream” and so on.

Describe your environment:

OS Information: Debian 13 Docker VM,

Package Version: graylog:6.0.5

Service logs, configurations, and environment variables:

my stack:

I will upload logs and stack seperatly, as I’m not allowed mutiple links, and my other post has been flagged as spam and has been reviewed by support in a reasonable time.

What steps have you already taken to try and solve the problem?

I repaired the MongoDB, checked various things online and using LLM, yet I found no solution.

I also tried this parameter ?socketKeepAlive=true at the end of GRAYLOG_MONGODB_URI, but that didn’t help.

How can the community help?

Help me find the root cause so I can mitigate this issue.