self-hosted icon indicating copy to clipboard operation
self-hosted copied to clipboard

Clickhouse not responding; socket is not connected

Open ripesensor opened this issue 1 year ago • 1 comments

Self-Hosted Version

25.8.0

CPU Architecture

x86_64

Docker Version

28.0.1

Docker Compose Version

2.33.1

Machine Specification

  • [x] My system meets the minimum system requirements of Sentry

Steps to Reproduce

We recently ran into two issues on our self-hosted Sentry box. We ran out of space, and shortly thereafter ran into a large stream of issues from an app. One or a combination of these events led to the following errors to be displayed in our logs, similar to issues:

https://github.com/getsentry/self-hosted/issues/3784 https://github.com/clickhouse/clickhouse/issues/62947 https://github.com/clickhouse/clickhouse/issues/46749

Curious about the error and next steps.

Expected Result

No clickhouse errors.

Actual Result

Logs from clickhouse:

2025.08.18 15:14:29.674277 [ 38024 ] {} <Error> ServerErrorHandler: Poco::Exception. Code: 1000, e.code() = 107, Net Exception: Socket is not connected, Stack trace (when copying this message, always include the lines below):

0. Poco::Net::SocketImpl::error(int, String const&) @ 0x0000000015b3dbf2 in /usr/bin/clickhouse
1. Poco::Net::SocketImpl::peerAddress() @ 0x0000000015b40376 in /usr/bin/clickhouse
2. DB::HTTPServerRequest::HTTPServerRequest(std::shared_ptr<DB::IHTTPContext>, DB::HTTPServerResponse&, Poco::Net::HTTPServerSession&) @ 0x0000000013154417 in /usr/bin/clickhouse
3. DB::HTTPServerConnection::run() @ 0x0000000013152ba4 in /usr/bin/clickhouse
4. Poco::Net::TCPServerConnection::start() @ 0x0000000015b42834 in /usr/bin/clickhouse
5. Poco::Net::TCPServerDispatcher::run() @ 0x0000000015b43a31 in /usr/bin/clickhouse
6. Poco::PooledThread::run() @ 0x0000000015c7a667 in /usr/bin/clickhouse
7. Poco::ThreadImpl::runnableEntry(void*) @ 0x0000000015c7893c in /usr/bin/clickhouse
8. ? @ 0x00007fa1c7590609 in ?
9. ? @ 0x00007fa1c74b5353 in ?
 (version 23.8.11.29.altinitystable (altinity build))

Event ID

No response

ripesensor avatar Aug 18 '25 15:08 ripesensor

This is a known issue due to connection being closed prematurely. Please see https://github.com/getsentry/snuba/issues/5707

aldy505 avatar Aug 19 '25 01:08 aldy505