找回密码
 注册
查看: 680|回复: 0

gnocchi/metricd.log ToozConnectionError: Error 111 connecting to controller:637

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-5-28 22:53:34 | 显示全部楼层 |阅读模式
The above exception was the direct cause of the following exception:
% O+ F5 M0 N! G2 ?+ x; _2 nTraceback (most recent call last):$ \7 @' m: H' ^+ J1 p3 J
  File "/usr/lib/python3.6/site-packages/tenacity/__init__.py", line 412, in call/ J. ^9 l) k# q- H/ R" t
    result = fn(*args, **kwargs)* v7 I' w' N- G
  File "/usr/lib/python3.6/site-packages/gnocchi/cli/metricd.py", line 45, in get_coordinator_and_start
4 W/ d9 ~* L  v    coord.start(start_heart=True)% A- Y4 D4 R% q
  File "/usr/lib/python3.6/site-packages/tooz/coordination.py", line 689, in start% t$ j/ H3 [' H9 Z" ~' i
    super(CoordinationDriverWithExecutor, self).start(start_heart)* O$ _! a! h8 Y( `  W$ ?! Q
  File "/usr/lib/python3.6/site-packages/tooz/coordination.py", line 426, in start" X1 _8 k1 {1 ]2 g, d
    self._start()& V9 _4 q9 w0 j* Q
  File "/usr/lib/python3.6/site-packages/tooz/drivers/redis.py", line 65, in wrapper
8 r/ }8 N. b: H7 Q% T0 b    cause=e)
1 n& w, Q( i6 Y% G5 U' l( X  File "/usr/lib/python3.6/site-packages/tooz/utils.py", line 224, in raise_with_cause
/ \! H' v3 r- P    excutils.raise_with_cause(exc_cls, message, *args, **kwargs)
/ K' D3 x3 G6 y( C  K- C" {/ ?  File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 142, in raise_with_cause- c. b+ |) b6 \0 g; J- h
    raise exc_cls(message, *args, **kwargs) from kwargs.get('cause')4 S) t" G* w" Y& ]  {  o- W
tooz.coordination.ToozConnectionError: Error 111 connecting to controller:6379. Connection refused.9 s( h. \) ]: x9 D1 P+ S1 D
2022-05-28 22:42:17,458 [71505] ERROR    gnocchi.utils: Unable to initialize coordination driver
- M( B! T( W( F7 z2 ?7 _& {, {Traceback (most recent call last):
  P* P9 Q. V7 }( |; s5 p) n  File "/usr/lib/python3.6/site-packages/redis/connection.py", line 559, in connect! z1 x4 P7 b: ^% |5 o- b) [
    sock = self._connect()+ D5 H  ?0 q6 x( V0 c) n
  File "/usr/lib/python3.6/site-packages/redis/connection.py", line 615, in _connect
0 o2 @5 I& S- x& O7 ]7 u( |    raise err4 [- e5 ?7 }! A
  File "/usr/lib/python3.6/site-packages/redis/connection.py", line 603, in _connect2 H/ |7 `/ M2 u  n: g( J
    sock.connect(socket_address)& @0 _( R) [$ C& L
ConnectionRefusedError: [Errno 111] Connection refused
9 k* g; k# l% c/ R5 YDuring handling of the above exception, another exception occurred:
) j; v: K2 ~$ _- C- b, V. Y+ zTraceback (most recent call last):
& H" F- {- }& Z) U, a7 U: i) F9 ^  File "/usr/lib/python3.6/site-packages/tooz/drivers/redis.py", line 58, in wrapper( P' ~/ W* a. R3 x( ~
    return func(*args, **kwargs)" w( `* G. D7 A8 n
  File "/usr/lib/python3.6/site-packages/tooz/drivers/redis.py", line 476, in _start
( [' f: |' q+ Z    self._server_info = self._client.info()% d( R! C  B: b; ^8 {2 k! O3 w. a
  File "/usr/lib/python3.6/site-packages/redis/client.py", line 1304, in info
. O8 y- o' W( c8 Z    return self.execute_command('INFO')
& j0 v& t& E7 J) h7 S  File "/usr/lib/python3.6/site-packages/redis/client.py", line 898, in execute_command3 w- J$ z" Q% m4 l  A8 u6 B6 X
    conn = self.connection or pool.get_connection(command_name, **options)
8 n8 w9 I1 `( Z* I2 u  File "/usr/lib/python3.6/site-packages/redis/connection.py", line 1192, in get_connection
( v! s+ L: t2 X- L! w5 F' a    connection.connect()
4 x1 B/ R1 B. ^. r  File "/usr/lib/python3.6/site-packages/redis/connection.py", line 563, in connect: F1 B2 \$ `: c4 l! S
    raise ConnectionError(self._error_message(e))% p' P6 E0 Z7 g! C) n1 O* Z) ?$ X
redis.exceptions.ConnectionError: Error 111 connecting to controller:6379. Connection refused.& d4 V+ e. b0 k( r+ p. y- ^
The above exception was the direct cause of the following exception:5 f  q1 T! l4 c# L1 T& r
Traceback (most recent call last):
. h  Z' k7 C, H' k( A# ~  File "/usr/lib/python3.6/site-packages/tenacity/__init__.py", line 412, in call7 j- X# v& ?- W9 s
    result = fn(*args, **kwargs)& c( y4 m- m' d( w% y/ D  P7 B( v
  File "/usr/lib/python3.6/site-packages/gnocchi/cli/metricd.py", line 45, in get_coordinator_and_start( x3 {9 O) F/ i3 f1 W8 D* D9 P% l. ]
    coord.start(start_heart=True): K4 N. t& B0 W* I
  File "/usr/lib/python3.6/site-packages/tooz/coordination.py", line 689, in start$ m( {' J* i( @5 e3 \$ y" b, q
    super(CoordinationDriverWithExecutor, self).start(start_heart)
3 z$ e) |( r" ^7 E" M. Q3 ~  File "/usr/lib/python3.6/site-packages/tooz/coordination.py", line 426, in start" ?3 P$ ^, ]3 x
    self._start()
& V: P# P! A; D  File "/usr/lib/python3.6/site-packages/tooz/drivers/redis.py", line 65, in wrapper  K# _$ |4 V8 v, A% }) F  V/ i
    cause=e)
  g3 J$ T9 e' x$ X3 a6 I/ r: r. B  File "/usr/lib/python3.6/site-packages/tooz/utils.py", line 224, in raise_with_cause
4 g7 u* u3 z- i6 x    excutils.raise_with_cause(exc_cls, message, *args, **kwargs)
  L* q# Z3 D% b1 [# F$ h) r  File "/usr/lib/python3.6/site-packages/oslo_utils/excutils.py", line 142, in raise_with_cause# k. ?* }" z: g2 _4 X  `
    raise exc_cls(message, *args, **kwargs) from kwargs.get('cause')
6 G$ ~/ |8 ]' g$ ^! ttooz.coordination.ToozConnectionError: Error 111 connecting to controller:6379. Connection refused.9 s4 V2 z# {& G7 E# w& N

, [0 _! I7 n# K4 M# [8 A$ [/ i" {* H; S  U
解决办法:1 P9 _5 D( G3 W3 B. g2 g' V
检查redis服务。
$ f, X0 b  P/ O# l  Zredis可以正常连接,就能解决问题。, [. T% k- ~6 O3 j
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:06 , Processed in 0.023323 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表