dongweiming / lyanna

My Blog Using Sanic
http://www.dongwm.com
GNU General Public License v3.0
637 stars 173 forks source link

这个错误是连不上mysql吗? #38

Closed imysm closed 5 years ago

imysm commented 5 years ago

OSError Multiple exceptions: [Errno 111] Connection refused, [Errno 113] No route to host

Traceback (most recent call last): File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/sanic/app.py, line 912, in handle_request response = await self._run_request_middleware(request) File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/sanic/app.py, line 1263, in _run_request_middleware response = await response File app.py, line 110, in setup_context config.REDIS_URL, minsize=5, maxsize=20, loop=loop) File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/aioredis/commands/init.py, line 201, in create_redis_pool loop=loop) File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/aioredis/pool.py, line 56, in create_pool await pool._fill_free(override_min=False) File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/aioredis/pool.py, line 388, in _fill_free conn = await self._create_new_connection(self._address) File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/aioredis/connection.py, line 108, in create_connection timeout, loop=loop) File /usr/local/anaconda3/envs/lyanna/lib/python3.7/asyncio/tasks.py, line 414, in wait_for return await fut File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/aioredis/stream.py, line 19, in open_connection lambda: protocol, host, port, **kwds) File uvloop/loop.pyx, line 1930, in create_connection OSError: Multiple exceptions: [Errno 111] Connection refused, [Errno 113] No route to host while handling path /

页面打开的时候报这个错

imysm commented 5 years ago

OSError Multiple exceptions: [Errno 111] Connection refused, [Errno 113] No route to host

Traceback (most recent call last): File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/sanic/app.py, line 912, in handle_request response = await self._run_request_middleware(request) File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/sanic/app.py, line 1263, in _run_request_middleware response = await response File app.py, line 110, in setup_context config.REDIS_URL, minsize=5, maxsize=20, loop=loop) File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/aioredis/commands/init.py, line 201, in create_redis_pool loop=loop) File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/aioredis/pool.py, line 56, in create_pool await pool._fill_free(override_min=False) File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/aioredis/pool.py, line 388, in _fill_free conn = await self._create_new_connection(self._address) File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/aioredis/connection.py, line 108, in create_connection timeout, loop=loop) File /usr/local/anaconda3/envs/lyanna/lib/python3.7/asyncio/tasks.py, line 414, in wait_for return await fut File /usr/local/anaconda3/envs/lyanna/lib/python3.7/site-packages/aioredis/stream.py, line 19, in open_connection lambda: protocol, host, port, **kwds) File uvloop/loop.pyx, line 1930, in create_connection OSError: Multiple exceptions: [Errno 111] Connection refused, [Errno 113] No route to host while handling path /

页面打开的时候报

imysm commented 5 years ago

这个是连不上redis 。因为redis配置了密码 ,最终去掉了密码