ClickHouse遇到的一些配置导致的报错问题记录


ClickHouse遇到的一些配置导致的报错问题记录

1.OS禁用IPv6后配置:::,该配置支持了IPv4和IPv6,而OS又禁用了IPv6会导致报错如下:

Application: DB::Exception: Listen [::]:8123 failed: Poco::Exception. Code: 1000, e.code() = 0, DNS error: EAI: Address family for hostname not supported (version 22.3.2.1)

2.interserver_http_host配置不合理,报错如下:

HTTP status code: 500 Internal Server Error, body: Code: 221. DB::Exception: No interserver IO endpoint named DataPartsExchange:/clickhouse/tables/traffic_cluster-02/zkm/replicas/01. (NO_SUCH_INTERSERVER_IO_ENDPOINT)

这个不是报错信息不是很能明显看出是该参配置导致的,对该参数深入理解后看看能否关联上。

2022.04.15 15:31:03.884070 [ 21775 ] {}  TRAFFIC_TEST.zkm (7455565c-c94b-40b1-af31-66c7e73581d2): auto DB::StorageReplicatedMergeTree::processQueueEntry(ReplicatedMergeTreeQueue::SelectedEntryPtr)::(anonymous class)::operator()(DB::StorageReplicatedMergeTree::LogEntryPtr &) const: Code: 86. DB::Exception: Received error from remote server /?endpoint=DataPartsExchange%3A%2Fclickhouse%2Ftables%2Ftraffic_cluster-02%2Fzkm%2Freplicas%2F01&part=all_0_0_0&client_protocol_version=7&compress=false. HTTP status code: 500 Internal Server Error, body: Code: 221. DB::Exception: No interserver IO endpoint named DataPartsExchange:/clickhouse/tables/traffic_cluster-02/zkm/replicas/01. (NO_SUCH_INTERSERVER_IO_ENDPOINT), Stack trace (when copying this message, always include the lines below):

0. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0xa4dde1a in /usr/bin/clickhouse
1. DB::InterserverIOHandler::getEndpoint(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x151e36db in /usr/bin/clickhouse
2. DB::InterserverIOHTTPHandler::processQuery(DB::HTTPServerRequest&, DB::HTTPServerResponse&, DB::InterserverIOHTTPHandler::Output&) @ 0x151e2f29 in /usr/bin/clickhouse
3. DB::InterserverIOHTTPHandler::handleRequest(DB::HTTPServerRequest&, DB::HTTPServerResponse&) @ 0x151e3a51 in /usr/bin/clickhouse
4. DB::HTTPServerConnection::run() @ 0x1545979b in /usr/bin/clickhouse
5. Poco::Net::TCPServerConnection::start() @ 0x164b264f in /usr/bin/clickhouse
6. Poco::Net::TCPServerDispatcher::run() @ 0x164b4aa1 in /usr/bin/clickhouse
7. Poco::PooledThread::run() @ 0x16671e49 in /usr/bin/clickhouse
8. Poco::ThreadImpl::runnableEntry(void*) @ 0x1666f1a0 in /usr/bin/clickhouse
9. start_thread @ 0x7ea5 in /usr/lib64/libpthread-2.17.so
10. __clone @ 0xfe96d in /usr/lib64/libc-2.17.so
 (version 22.3.2.1). (RECEIVED_ERROR_FROM_REMOTE_IO_SERVER), Stack trace (when copying this message, always include the lines below):

0. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0xa4dde1a in /usr/bin/clickhouse
1. DB::assertResponseIsOk(Poco::Net::HTTPRequest const&, Poco::Net::HTTPResponse&, std::__1::basic_istream<char, std::__1::char_traits<char> >&, bool) @ 0xa6b63f2 in /usr/bin/clickhouse
2. DB::detail::ReadWriteBufferFromHTTPBase >::callImpl(Poco::URI, Poco::Net::HTTPResponse&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x14deb756 in /usr/bin/clickhouse
3. DB::detail::ReadWriteBufferFromHTTPBase >::call(Poco::Net::HTTPResponse&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0x14de78e8 in /usr/bin/clickhouse
4. DB::detail::ReadWriteBufferFromHTTPBase >::initialize() @ 0x14de68fb in /usr/bin/clickhouse
5. DB::detail::ReadWriteBufferFromHTTPBase >::ReadWriteBufferFromHTTPBase(std::__1::shared_ptr, Poco::URI, Poco::Net::HTTPBasicCredentials const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::functionchar, std::__1::char_traits<char> >&)>, unsigned long, DB::ReadSettings const&, std::__1::vectorchar, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocatorchar, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > >, DB::detail::ReadWriteBufferFromHTTPBase >::Range, DB::RemoteHostFilter const*, bool, bool, bool) @ 0x14de4944 in /usr/bin/clickhouse
6. DB::PooledReadWriteBufferFromHTTP::PooledReadWriteBufferFromHTTP(Poco::URI, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::functionchar, std::__1::char_traits<char> >&)>, DB::ConnectionTimeouts const&, Poco::Net::HTTPBasicCredentials const&, unsigned long, unsigned long, unsigned long) @ 0x14ddcde0 in /usr/bin/clickhouse
7. DB::DataPartsExchange::Fetcher::fetchPart(std::__1::shared_ptr const&, std::__1::shared_ptr, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, DB::ConnectionTimeouts const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr, bool, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::optional*, bool, std::__1::shared_ptr) @ 0x14dd9f72 in /usr/bin/clickhouse
8. ? @ 0x14c5b86d in /usr/bin/clickhouse
9. DB::StorageReplicatedMergeTree::fetchPart(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, unsigned long, std::__1::shared_ptr) @ 0x14bb49c2 in /usr/bin/clickhouse
10. DB::StorageReplicatedMergeTree::executeFetch(DB::ReplicatedMergeTreeLogEntry&) @ 0x14ba6d14 in /usr/bin/clickhouse
11. DB::StorageReplicatedMergeTree::executeLogEntry(DB::ReplicatedMergeTreeLogEntry&) @ 0x14b961ad in /usr/bin/clickhouse
12. ? @ 0x14c58e7f in /usr/bin/clickhouse
13. DB::ReplicatedMergeTreeQueue::processEntry(std::__1::function ()>, std::__1::shared_ptr&, std::__1::function<bool (std::__1::shared_ptr&)>) @ 0x1507c5e5 in /usr/bin/clickhouse
14. DB::StorageReplicatedMergeTree::processQueueEntry(std::__1::shared_ptr) @ 0x14bd6f13 in /usr/bin/clickhouse
15. DB::ExecutableLambdaAdapter::executeStep() @ 0x14c599d1 in /usr/bin/clickhouse
16. DB::MergeTreeBackgroundExecutor::routine(std::__1::shared_ptr) @ 0xa4c614b in /usr/bin/clickhouse
17. DB::MergeTreeBackgroundExecutor::threadFunction() @ 0xa4c5ff5 in /usr/bin/clickhouse
18. ThreadPoolImpl::worker(std::__1::__list_iterator) @ 0xa5878ca in /usr/bin/clickhouse
19. ThreadFromGlobalPool::ThreadFromGlobalPool::scheduleImpl(std::__1::function, int, std::__1::optionallong>)::'lambda0'()>(void&&, void ThreadPoolImpl::scheduleImpl(std::__1::function, int, std::__1::optionallong>)::'lambda0'()&&...)::'lambda'()::operator()() @ 0xa589a64 in /usr/bin/clickhouse
20. ThreadPoolImpl::worker(std::__1::__list_iterator) @ 0xa584c97 in /usr/bin/clickhouse
21. ? @ 0xa58881d in /usr/bin/clickhouse
22. start_thread @ 0x7ea5 in /usr/lib64/libpthread-2.17.so
23. __clone @ 0xfe96d in /usr/lib64/libc-2.17.so
 (version 22.3.2.1)
完整的报错信息