Sanic:无法连接Aerospike

时间:2018-08-03 07:32:40

标签: database python-3.x kibana aerospike sanic

我对连接航空尖峰有疑问。我将Docker映像推送到部署系统,然后在系统启动时出错:

    ERROR:sanic:Experienced exception while trying to serve
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/sanic/app.py", line 559, in run
    serve(**server_settings)
  File "/usr/lib/python3.6/site-packages/sanic/server.py", line 398, in serve
    trigger_events(before_start, loop)
  File "/usr/lib/python3.6/site-packages/sanic/server.py", line 352, in trigger_events
    result = event(loop)
  File "/aioads/aioads/sanik.py", line 774, in after_server_stop
    loop.run_until_complete(adserver.init())
  File "uvloop/loop.pyx", line 1448, in uvloop.loop.Loop.run_until_complete
  File "/usr/lib/python3.6/site-packages/aioads/adserver.py", line 56, in init
    self.lead_collector.init())
  File "/usr/lib/python3.6/site-packages/aioads/storage/aerospike.py", line 38, in init
    await self.loop.run_in_executor(e, self._init)
  File "/usr/lib64/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/aioads/storage/aerospike.py", line 27, in _init
    'timeout': self.timeout,
exception.ClientError: (-1, 'Failed to connect', 'src/main/aerospike/as_cluster.c', 253, False)

我在本地进行了所有测试,sanic正常工作。我也更改了超时但没有结果。我的问题是:如何调试它出了什么问题。我只需要访问kibana,就可以观看日志。另外我用主管来运行它

0 个答案:

没有答案