DB::Exception: defau lt: Authentication failed: password is incorrect or there is no user with such name. Stack trace:DB::Exception: defau lt: Authentication failed: password is incorrect or there is no user with such name. Stack trace:
A running clickhouse instance occasionally throws an exception with an incorrect username or password, logged as follows:
2021.09.26 10:58:38.329282 [ 121 ] {e90f2fe0-20c3-4a9a-a6a8-49bba12cc67d} <Error> TCPHandler: Code: 516, e.displayText() = DB::Exception: Received from chi-clickhouse-woxshare-0-1:9000. DB::Exception: defau lt: Authentication failed: password is incorrect or there is no user with such name. Stack trace:
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::IAccessStorage::throwCannotAuthenticate(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&) @ 0xf0cb81f in /usr/bin/clickhouse -
DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb662 in /usr/bin/clickhouse
-
DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
-
DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so : While executing Remote, Stack trace:
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::readException(DB::ReadBuffer&, std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, bool) @ 0x8bc8fd4 in /usr/bin/clickhouse -
DB::Connection::receiveException() const @ 0x10352e82 in /usr/bin/clickhouse
-
DB::Connection::receiveHello() @ 0x10352a1f in /usr/bin/clickhouse
-
DB::Connection::connect(DB::ConnectionTimeouts const&) @ 0x1035026c in /usr/bin/clickhouse
-
DB::Connection::forceConnected(DB::ConnectionTimeouts const&) @ 0x10353b91 in /usr/bin/clickhouse
-
DB::ConnectionEstablisher::run(PoolWithFailoverBaseDB::IConnectionPool::TryResult&, std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator >&) @ 0x1036a1a9 in /usr/bin/clic khouse -
? @ 0x10366277 in /usr/bin/clickhouse
-
PoolWithFailoverBaseDB::IConnectionPool::getMany(unsigned long, unsigned long, unsigned long, unsigned long, bool, std::__1::function<PoolWithFailoverBaseDB::IConnectionPool::TryResult (DB::IConnecti onPool&, std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator >&)> const&, std::__1::function<unsigned long (unsigned long)> const&) @ 0x10363b25 in /usr/bin/clickhouse -
DB::ConnectionPoolWithFailover::getManyImpl(DB::Settings const*, DB::PoolMode, std::__1::function<PoolWithFailoverBaseDB::IConnectionPool::TryResult (DB::IConnectionPool&, std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator >&)> const&) @ 0x103633ed in /usr/bin/clickhouse -
DB::ConnectionPoolWithFailover::getManyChecked(DB::ConnectionTimeouts const&, DB::Settings const*, DB::PoolMode, DB::QualifiedTableName const&) @ 0x10363726 in /usr/bin/clickhouse
-
? @ 0xf32bcef in /usr/bin/clickhouse
-
DB::RemoteQueryExecutor::sendQuery() @ 0xf3229af in /usr/bin/clickhouse
-
DB::RemoteSource::tryGenerate() @ 0x10628d47 in /usr/bin/clickhouse
-
DB::ISource::work() @ 0x1046f13a in /usr/bin/clickhouse
-
DB::SourceWithProgress::work() @ 0x1062ee2a in /usr/bin/clickhouse
-
? @ 0x104aa3dd in /usr/bin/clickhouse
-
DB::PipelineExecutor::executeStepImpl(unsigned long, unsigned long, std::__1::atomic
*) @ 0x104a6f71 in /usr/bin/clickhouse -
? @ 0x104ab9f6 in /usr/bin/clickhouse
-
ThreadPoolImplstd::__1::thread::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x8bacedf in /usr/bin/clickhouse
-
? @ 0x8bb0403 in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so
2021.09.26 10:58:40.268422 [ 196 ] {} <Error> ServerErrorHandler: Code: 210, e.displayText() = DB::NetException: Connection reset by peer, while reading from socket (10.16.0.74:38048), Stack trace (when cop ying this message, always include the lines below):
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::ReadBufferFromPocoSocket::nextImpl() @ 0xf5d2b53 in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042e1d4 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.09.26 10:58:40.289323 [ 121 ] {1568d01d-e4a2-4b9a-9556-ba6cf8687e9c} <Error> executeQuery: Code: 516, e.displayText() = DB::Exception: Received from chi-clickhouse-woxshare-0-1:9000. DB::Exception: def ault: Authentication failed: password is incorrect or there is no user with such name. Stack trace:
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::IAccessStorage::throwCannotAuthenticate(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&) @ 0xf0cb81f in /usr/bin/clickhouse -
DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb662 in /usr/bin/clickhouse
-
DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
-
DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so : While executing Remote (version 21.6.5.37 (official build)) (from 10.16.0.81:56210) (in query: SELECT service_name, lang, error_num, slow_api_num FROM (select service_name, lang, sum(error_num) error_num, sum(slow_api_num) slow_api_num from ((SELECT service_name, tracker_lang as lang, 0 as error_num, count(distinct path(JSONExtractString(tags, 'url'))) AS slow_api_num FROM
446847926040268800.log_detail_a llWHERE (1=1 and (event_time >= toDateTime('2021-09-20 00:00:00', 'Asia/Shanghai') and event_time < toDateTime('2021-09-26 23:59:59', 'Asia/Shanghai')+1 )) AND span_type=0 AND duration > 1000 GROU P BY tracker_lang, service_name) union all (SELECT service_name, tracker_lang as lang, count(distinct fingerprint) error_num, 0 as slow_api_num FROM446847926040268800.log_mv_trace_errstat_allWHERE 1=1 and (event_time >= toDateTime('2021-09-20 00:00:00', 'Asia/Shanghai') and event_time < toDateTime('2021-09-26 23:59:59', 'Asia/Shanghai')+1 ) GROUP BY tracker_lang, service_name)) as t group by lan g, service_name) as tt ORDER BY error_num desc LIMIT 100), Stack trace (when copying this message, always include the lines below): -
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::readException(DB::ReadBuffer&, std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, bool) @ 0x8bc8fd4 in /usr/bin/clickhouse -
DB::Connection::receiveException() const @ 0x10352e82 in /usr/bin/clickhouse
-
DB::Connection::receiveHello() @ 0x10352a1f in /usr/bin/clickhouse
-
DB::Connection::connect(DB::ConnectionTimeouts const&) @ 0x1035026c in /usr/bin/clickhouse
-
DB::ConnectionEstablisher::run(PoolWithFailoverBaseDB::IConnectionPool::TryResult&, std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator >&) @ 0x1036a0d7 in /usr/bin/clic khouse -
? @ 0x10366277 in /usr/bin/clickhouse
-
PoolWithFailoverBaseDB::IConnectionPool::getMany(unsigned long, unsigned long, unsigned long, unsigned long, bool, std::__1::function<PoolWithFailoverBaseDB::IConnectionPool::TryResult (DB::IConnecti onPool&, std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator >&)> const&, std::__1::function<unsigned long (unsigned long)> const&) @ 0x10363b25 in /usr/bin/clickhouse -
DB::ConnectionPoolWithFailover::getManyImpl(DB::Settings const*, DB::PoolMode, std::__1::function<PoolWithFailoverBaseDB::IConnectionPool::TryResult (DB::IConnectionPool&, std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator >&)> const&) @ 0x103633ed in /usr/bin/clickhouse -
DB::ConnectionPoolWithFailover::getManyChecked(DB::ConnectionTimeouts const&, DB::Settings const*, DB::PoolMode, DB::QualifiedTableName const&) @ 0x10363726 in /usr/bin/clickhouse
-
? @ 0xf32bcef in /usr/bin/clickhouse
-
DB::RemoteQueryExecutor::sendQuery() @ 0xf3229af in /usr/bin/clickhouse
-
DB::RemoteSource::tryGenerate() @ 0x10628d47 in /usr/bin/clickhouse
-
DB::ISource::work() @ 0x1046f13a in /usr/bin/clickhouse
-
DB::SourceWithProgress::work() @ 0x1062ee2a in /usr/bin/clickhouse
-
? @ 0x104aa3dd in /usr/bin/clickhouse
-
DB::PipelineExecutor::executeStepImpl(unsigned long, unsigned long, std::__1::atomic
*) @ 0x104a6f71 in /usr/bin/clickhouse -
? @ 0x104ab9f6 in /usr/bin/clickhouse
-
ThreadPoolImplstd::__1::thread::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x8bacedf in /usr/bin/clickhouse
-
? @ 0x8bb0403 in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so
2021.09.26 10:58:40.289392 [ 121 ] {1568d01d-e4a2-4b9a-9556-ba6cf8687e9c} <Error> TCPHandler: Code: 516, e.displayText() = DB::Exception: Received from chi-clickhouse-woxshare-0-1:9000. DB::Exception: defau lt: Authentication failed: password is incorrect or there is no user with such name. Stack trace:
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::IAccessStorage::throwCannotAuthenticate(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&) @ 0xf0cb81f in /usr/bin/clickhouse -
DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb662 in /usr/bin/clickhouse
-
DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
-
DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so : While executing Remote, Stack trace:
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::readException(DB::ReadBuffer&, std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, bool) @ 0x8bc8fd4 in /usr/bin/clickhouse -
DB::Connection::receiveException() const @ 0x10352e82 in /usr/bin/clickhouse
-
DB::Connection::receiveHello() @ 0x10352a1f in /usr/bin/clickhouse
-
DB::Connection::connect(DB::ConnectionTimeouts const&) @ 0x1035026c in /usr/bin/clickhouse
-
DB::ConnectionEstablisher::run(PoolWithFailoverBaseDB::IConnectionPool::TryResult&, std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator >&) @ 0x1036a0d7 in /usr/bin/clic khouse -
? @ 0x10366277 in /usr/bin/clickhouse
-
PoolWithFailoverBaseDB::IConnectionPool::getMany(unsigned long, unsigned long, unsigned long, unsigned long, bool, std::__1::function<PoolWithFailoverBaseDB::IConnectionPool::TryResult (DB::IConnecti onPool&, std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator >&)> const&, std::__1::function<unsigned long (unsigned long)> const&) @ 0x10363b25 in /usr/bin/clickhouse -
DB::ConnectionPoolWithFailover::getManyImpl(DB::Settings const*, DB::PoolMode, std::__1::function<PoolWithFailoverBaseDB::IConnectionPool::TryResult (DB::IConnectionPool&, std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator >&)> const&) @ 0x103633ed in /usr/bin/clickhouse -
DB::ConnectionPoolWithFailover::getManyChecked(DB::ConnectionTimeouts const&, DB::Settings const*, DB::PoolMode, DB::QualifiedTableName const&) @ 0x10363726 in /usr/bin/clickhouse
-
? @ 0xf32bcef in /usr/bin/clickhouse
-
DB::RemoteQueryExecutor::sendQuery() @ 0xf3229af in /usr/bin/clickhouse
-
DB::RemoteSource::tryGenerate() @ 0x10628d47 in /usr/bin/clickhouse
-
DB::ISource::work() @ 0x1046f13a in /usr/bin/clickhouse
-
DB::SourceWithProgress::work() @ 0x1062ee2a in /usr/bin/clickhouse
-
? @ 0x104aa3dd in /usr/bin/clickhouse
-
DB::PipelineExecutor::executeStepImpl(unsigned long, unsigned long, std::__1::atomic
*) @ 0x104a6f71 in /usr/bin/clickhouse -
? @ 0x104ab9f6 in /usr/bin/clickhouse
-
ThreadPoolImplstd::__1::thread::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0x8bacedf in /usr/bin/clickhouse
-
? @ 0x8bb0403 in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so
2021.09.26 10:58:40.438361 [ 196 ] {} <Error> Access(user directories): default: Authentication failed: Code: 195, e.displayText() = DB::Exception: Connections from 10.16.0.74 are not allowed, Stack trace ( when copying this message, always include the lines below):
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::IAccessStorage::throwAddressNotAllowed(Poco::Net::IPAddress const&) @ 0xf0cbb83 in /usr/bin/clickhouse
-
DB::IAccessStorage::loginImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&) const @ 0xf0cba96 in /usr/bin/clickhouse
-
DB::MultipleAccessStorage::loginImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&) const @ 0xf0ef998 in /usr/bin/clickhouse
-
DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb5dc in /usr/bin/clickhouse
-
DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
-
DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.09.26 10:58:40.438537 [ 196 ] {} <Error> ServerErrorHandler: Code: 516, e.displayText() = DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name, Stack trace (when copying this message, always include the lines below):
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::IAccessStorage::throwCannotAuthenticate(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&) @ 0xf0cb81f in /usr/bin/clickhouse -
DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb662 in /usr/bin/clickhouse
-
DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
-
DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.09.26 10:58:44.638217 [ 188 ] {fcaef4b6-0816-4264-859b-ed84efe3e8b9} <Warning> ConnectionPoolWithFailover: Connection failed at try №1, reason: Code: 32, e.displayText() = DB::Exception: Attempt to rea d after eof (version 21.6.5.37 (official build))
Try to use dns cache, the k8s dns have some problem.
Try to use dns cache, the k8s dns have some problem.
Is this caused by kubernetes dns resolution?
@czhfe, do you use chCredentialsSecretName in your etc-clickhouse-operator-files ConfigMap?
chCredentialsSecretName
Not used
2021.10.14 14:13:09.834562 [ 243 ] {} <Error> Access(user directories): default: Authentication failed: Code: 195, e.displayText() = DB::Exception: Connections from 10.16.1.32 are not allowed, Stack trace (when copying this message, always include the lines below):
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::IAccessStorage::throwAddressNotAllowed(Poco::Net::IPAddress const&) @ 0xf0cbb83 in /usr/bin/clickhouse
-
DB::IAccessStorage::loginImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&) const @ 0xf0cba96 in /usr/bin/clickhouse
-
DB::MultipleAccessStorage::loginImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&) const @ 0xf0ef998 in /usr/bin/clickhouse
-
DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb5dc in /usr/bin/clickhouse
-
DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
-
DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:09.834745 [ 243 ] {} <Error> ServerErrorHandler: Code: 516, e.displayText() = DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name, Stack trace (when copying this message, always include the lines below):
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::IAccessStorage::throwCannotAuthenticate(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&) @ 0xf0cb81f in /usr/bin/clickhouse -
DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb662 in /usr/bin/clickhouse
-
DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
-
DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:09.886759 [ 239 ] {} <Error> ServerErrorHandler: Code: 210, e.displayText() = DB::NetException: Connection reset by peer, while reading from socket (10.16.0.79:36340), Stack trace (when copying this message, always include the lines below):
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::ReadBufferFromPocoSocket::nextImpl() @ 0xf5d2b53 in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042e1d4 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:10.011699 [ 242 ] {} <Error> ServerErrorHandler: Code: 210, e.displayText() = DB::NetException: Connection reset by peer, while reading from socket (10.16.1.40:39208), Stack trace (when copying this message, always include the lines below):
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::ReadBufferFromPocoSocket::nextImpl() @ 0xf5d2b53 in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042e1d4 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:10.074208 [ 242 ] {} <Error> Access(user directories): default: Authentication failed: Code: 195, e.displayText() = DB::Exception: Connections from 10.16.1.32 are not allowed, Stack trace (when copying this message, always include the lines below):
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::IAccessStorage::throwAddressNotAllowed(Poco::Net::IPAddress const&) @ 0xf0cbb83 in /usr/bin/clickhouse
-
DB::IAccessStorage::loginImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&) const @ 0xf0cba96 in /usr/bin/clickhouse
-
DB::MultipleAccessStorage::loginImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&) const @ 0xf0ef998 in /usr/bin/clickhouse
-
DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb5dc in /usr/bin/clickhouse
-
DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
-
DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:10.074389 [ 242 ] {} <Error> ServerErrorHandler: Code: 516, e.displayText() = DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name, Stack trace (when copying this message, always include the lines below):
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::IAccessStorage::throwCannotAuthenticate(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&) @ 0xf0cb81f in /usr/bin/clickhouse -
DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb662 in /usr/bin/clickhouse
-
DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
-
DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:10.180054 [ 240 ] {} <Error> ServerErrorHandler: Code: 210, e.displayText() = DB::NetException: Connection reset by peer, while reading from socket (10.16.0.79:36430), Stack trace (when copying this message, always include the lines below):
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::ReadBufferFromPocoSocket::nextImpl() @ 0xf5d2b53 in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042e1d4 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:10.180175 [ 238 ] {} <Error> ServerErrorHandler: Code: 210, e.displayText() = DB::NetException: Connection reset by peer, while reading from socket (10.16.0.79:36408), Stack trace (when copying this message, always include the lines below):
-
DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits
, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse -
DB::ReadBufferFromPocoSocket::nextImpl() @ 0xf5d2b53 in /usr/bin/clickhouse
-
DB::TCPHandler::runImpl() @ 0x1042e1d4 in /usr/bin/clickhouse
-
DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
-
Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
-
Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
-
Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
-
Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
-
start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
-
clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build))
This should be a problem with the clickhouse whitelist. Because clickhouse-operator deploys clickhouse with default user networks set to allow only local and nodes in the same cluster to access, when a copy of clickhouse changes IP after reboot for some reason, this time the node resumes after DNS resolution out of IP may exist cache In this case, the IP resolved by the node after recovery may be cached and may not be consistent with the IP resolved by the host in the whitelist, thus being specifically accessed. I have tried to set disable_internal_dns_cache to 1, but this did not alleviate the problem
2021.10.14 14:13:09.834562 [ 243 ] {} Access(user directories): default: Authentication failed: Code: 195, e.displayText() = DB::Exception: Connections from 10.16.1.32 are not allowed, Stack trace (when copying this message, always include the lines below):
- DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse
- DB::IAccessStorage::throwAddressNotAllowed(Poco::Net::IPAddress const&) @ 0xf0cbb83 in /usr/bin/clickhouse
- DB::IAccessStorage::loginImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&) const @ 0xf0cba96 in /usr/bin/clickhouse
- DB::MultipleAccessStorage::loginImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&) const @ 0xf0ef998 in /usr/bin/clickhouse
- DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb5dc in /usr/bin/clickhouse
- DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
- DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
- DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
- DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
- Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
- Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
- Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
- Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
- start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
- clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:09.834745 [ 243 ] {} ServerErrorHandler: Code: 516, e.displayText() = DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name, Stack trace (when copying this message, always include the lines below):
- DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse
- DB::IAccessStorage::throwCannotAuthenticate(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) @ 0xf0cb81f in /usr/bin/clickhouse
- DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb662 in /usr/bin/clickhouse
- DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
- DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
- DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
- DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
- Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
- Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
- Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
- Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
- start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
- clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:09.886759 [ 239 ] {} ServerErrorHandler: Code: 210, e.displayText() = DB::NetException: Connection reset by peer, while reading from socket (10.16.0.79:36340), Stack trace (when copying this message, always include the lines below):
- DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse
- DB::ReadBufferFromPocoSocket::nextImpl() @ 0xf5d2b53 in /usr/bin/clickhouse
- DB::TCPHandler::runImpl() @ 0x1042e1d4 in /usr/bin/clickhouse
- DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
- Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
- Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
- Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
- Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
- start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
- clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:10.011699 [ 242 ] {} ServerErrorHandler: Code: 210, e.displayText() = DB::NetException: Connection reset by peer, while reading from socket (10.16.1.40:39208), Stack trace (when copying this message, always include the lines below):
- DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse
- DB::ReadBufferFromPocoSocket::nextImpl() @ 0xf5d2b53 in /usr/bin/clickhouse
- DB::TCPHandler::runImpl() @ 0x1042e1d4 in /usr/bin/clickhouse
- DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
- Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
- Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
- Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
- Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
- start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
- clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:10.074208 [ 242 ] {} Access(user directories): default: Authentication failed: Code: 195, e.displayText() = DB::Exception: Connections from 10.16.1.32 are not allowed, Stack trace (when copying this message, always include the lines below):
- DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse
- DB::IAccessStorage::throwAddressNotAllowed(Poco::Net::IPAddress const&) @ 0xf0cbb83 in /usr/bin/clickhouse
- DB::IAccessStorage::loginImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&) const @ 0xf0cba96 in /usr/bin/clickhouse
- DB::MultipleAccessStorage::loginImpl(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&) const @ 0xf0ef998 in /usr/bin/clickhouse
- DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb5dc in /usr/bin/clickhouse
- DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
- DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
- DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
- DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
- Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
- Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
- Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
- Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
- start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
- clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:10.074389 [ 242 ] {} ServerErrorHandler: Code: 516, e.displayText() = DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name, Stack trace (when copying this message, always include the lines below):
- DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse
- DB::IAccessStorage::throwCannotAuthenticate(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&) @ 0xf0cb81f in /usr/bin/clickhouse
- DB::IAccessStorage::login(DB::Credentials const&, Poco::Net::IPAddress const&, DB::ExternalAuthenticators const&, bool) const @ 0xf0cb662 in /usr/bin/clickhouse
- DB::Context::setUser(DB::Credentials const&, Poco::Net::SocketAddress const&) @ 0xf5191b9 in /usr/bin/clickhouse
- DB::TCPHandler::receiveHello() @ 0x10434aac in /usr/bin/clickhouse
- DB::TCPHandler::runImpl() @ 0x1042de74 in /usr/bin/clickhouse
- DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
- Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
- Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
- Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
- Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
- start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
- clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:10.180054 [ 240 ] {} ServerErrorHandler: Code: 210, e.displayText() = DB::NetException: Connection reset by peer, while reading from socket (10.16.0.79:36430), Stack trace (when copying this message, always include the lines below):
- DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse
- DB::ReadBufferFromPocoSocket::nextImpl() @ 0xf5d2b53 in /usr/bin/clickhouse
- DB::TCPHandler::runImpl() @ 0x1042e1d4 in /usr/bin/clickhouse
- DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
- Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
- Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
- Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
- Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
- start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
- clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build)) 2021.10.14 14:13:10.180175 [ 238 ] {} ServerErrorHandler: Code: 210, e.displayText() = DB::NetException: Connection reset by peer, while reading from socket (10.16.0.79:36408), Stack trace (when copying this message, always include the lines below):
- DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, int, bool) @ 0x8b6cbba in /usr/bin/clickhouse
- DB::ReadBufferFromPocoSocket::nextImpl() @ 0xf5d2b53 in /usr/bin/clickhouse
- DB::TCPHandler::runImpl() @ 0x1042e1d4 in /usr/bin/clickhouse
- DB::TCPHandler::run() @ 0x10441839 in /usr/bin/clickhouse
- Poco::Net::TCPServerConnection::start() @ 0x12a3fd4f in /usr/bin/clickhouse
- Poco::Net::TCPServerDispatcher::run() @ 0x12a417da in /usr/bin/clickhouse
- Poco::PooledThread::run() @ 0x12b7ab39 in /usr/bin/clickhouse
- Poco::ThreadImpl::runnableEntry(void*) @ 0x12b76b2a in /usr/bin/clickhouse
- start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
- clone @ 0x122293 in /usr/lib/x86_64-linux-gnu/libc-2.31.so (version 21.6.5.37 (official build))
This should be a problem with the clickhouse whitelist. Because clickhouse-operator deploys clickhouse with default user networks set to allow only local and nodes in the same cluster to access, when a copy of clickhouse changes IP after reboot for some reason, this time the node resumes after DNS resolution out of IP may exist cache In this case, the IP resolved by the node after recovery may be cached and may not be consistent with the IP resolved by the host in the whitelist, thus being specifically accessed. I have tried to set disable_internal_dns_cache to 1, but this did not alleviate the problem
This is the conclusion of my analysis, and the following errors are misleading. 2021.10.14 14:13:09.834745 [ 243 ] {} <Error> ServerErrorHandler: Code: 516, e.displayText() = DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name, Stack trace (when copying this message, always include the lines below):
I don't know if my analysis is right
2021.10.26 15:29:41.794500 [ 130 ] {} <Error> cdn_data.http_access_data.DirectoryMonitor: Code: 516, e.displayText() = DB::Exception: Received from chi-vxclickhouse-clickhouse-1-0:9000. DB::Exception: default: Authentication failed: password is incorrect or there is no user with such name. Stack trace:
0. Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x123fd060 in /usr/bin/clickhouse
1. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0xa23c3fd in /usr/bin/clickhouse
2. ? @ 0xef774e4 in /usr/bin/clickhouse
3. DB::TCPHandler::receiveHello() @ 0xfb55d8a in /usr/bin/clickhouse
4. DB::TCPHandler::runImpl() @ 0xfb598b9 in /usr/bin/clickhouse
5. DB::TCPHandler::run() @ 0xfb5af00 in /usr/bin/clickhouse
6. Poco::Net::TCPServerConnection::start() @ 0x1231ae8b in /usr/bin/clickhouse
7. Poco::Net::TCPServerDispatcher::run() @ 0x1231b31b in /usr/bin/clickhouse
8. Poco::PooledThread::run() @ 0x12499e46 in /usr/bin/clickhouse
9. Poco::ThreadImpl::runnableEntry(void*) @ 0x12495240 in /usr/bin/clickhouse
10. start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
11. __clone @ 0x122103 in /usr/lib/x86_64-linux-gnu/libc-2.31.so
, Stack trace (when copying this message, always include the lines below):
0. Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x123fd060 in /usr/bin/clickhouse
1. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0xa23c3fd in /usr/bin/clickhouse
2. DB::readException(DB::ReadBuffer&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) @ 0xa27c199 in /usr/bin/clickhouse
3. DB::Connection::receiveException() @ 0xfab87cf in /usr/bin/clickhouse
4. DB::Connection::receiveHello() @ 0xfab8ad6 in /usr/bin/clickhouse
5. DB::Connection::connect(DB::ConnectionTimeouts const&) @ 0xfabbdb8 in /usr/bin/clickhouse
6. DB::Connection::forceConnected(DB::ConnectionTimeouts const&) @ 0xfabc4cb in /usr/bin/clickhouse
7. DB::ConnectionPool::get(DB::ConnectionTimeouts const&, DB::Settings const*, bool) @ 0xa36eb82 in /usr/bin/clickhouse
8. DB::StorageDistributedDirectoryMonitor::processFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, CurrentMetrics::Increment&) @ 0xf82d416 in /usr/bin/clickhouse
9. DB::StorageDistributedDirectoryMonitor::run() @ 0xf8307c5 in /usr/bin/clickhouse
10. DB::BackgroundSchedulePoolTaskInfo::execute() @ 0xef92cf9 in /usr/bin/clickhouse
11. DB::BackgroundSchedulePool::threadFunction() @ 0xef93182 in /usr/bin/clickhouse
12. ? @ 0xef932b2 in /usr/bin/clickhouse
13. ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0xa26afd7 in /usr/bin/clickhouse
14. ? @ 0xa269513 in /usr/bin/clickhouse
15. start_thread @ 0x9609 in /usr/lib/x86_64-linux-gnu/libpthread-2.31.so
16. __clone @ 0x122103 in /usr/lib/x86_64-linux-gnu/libc-2.31.so
(version 20.6.7.4 (official build))
Not sure if this is related to your error, but the message i get is same.
I am getting the above error, when executing queries on clickhouse client. the application is also not able to query data because of this error.
I started with clickhouse:21.3 then tried using with latest clickhouse image, and then saw some change which wraps over the exact message so went back to clickhouse:20.6.7.4 which was the version before that change was introduced, to see if i could get a better exception in the log, but no changes in error.
I have two environments the only difference between them is one has firewall enabled and other has firewall disabled.
the firewall disabled environment works fine, but the environment with firewall enabled always returns this error.
I have opened the following ports in the firewall (obtained from kubectl get svc)
- 8123
- 9000
- 9009
- 9010
- 9440
- 8888
but still things did not work. I am getting the error.
If I disable the firewall then things work.
If I disable firewall and re-enable firewall after a few mins then things work.
I am guessing, things are cached somewhere.
Its already late here, will check again tomorrow if the cache expires with firewall still enabled.
So, what can be done to make it work in the environment with firewall.
Am I missing any other port to be enabled in firewall.
or is this something entirely different?
Try to use dns cache, the k8s dns have some problem.
Is this caused by kubernetes dns resolution?
yes,you can try