ConnectionRefusedError: [Errno 10061] Connect call failed ('127.0.0.1', 6379)
channel layer를 구현하다 생긴 에러입니다.
에러 전문
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Users\kas23\Desktop\Project\chat_test\myvenv\lib\site-packages\asgiref\sync.py", line 139, in __call__
return call_result.result()
File "C:\Users\kas23\AppData\Local\Programs\Python\Python38-32\lib\concurrent\futures\_base.py", line 432, in result
return self.__get_result()
File "C:\Users\kas23\AppData\Local\Programs\Python\Python38-32\lib\concurrent\futures\_base.py", line 388, in __get_result
raise self._exception
File "C:\Users\kas23\Desktop\Project\chat_test\myvenv\lib\site-packages\asgiref\sync.py", line 204, in main_wrap
result = await self.awaitable(*args, **kwargs)
File "C:\Users\kas23\Desktop\Project\chat_test\myvenv\lib\site-packages\channels_redis\core.py", line 319, in send
async with self.connection(index) as connection:
File "C:\Users\kas23\Desktop\Project\chat_test\myvenv\lib\site-packages\channels_redis\core.py", line 884, in __aenter__
self.conn = await self.pool.pop()
File "C:\Users\kas23\Desktop\Project\chat_test\myvenv\lib\site-packages\channels_redis\core.py", line 78, in pop
conn = await aioredis.create_redis(**self.host)
File "C:\Users\kas23\Desktop\Project\chat_test\myvenv\lib\site-packages\aioredis\commands\__init__.py", line 168, in create_redis
conn = await create_connection(address, db=db,
File "C:\Users\kas23\Desktop\Project\chat_test\myvenv\lib\site-packages\aioredis\connection.py", line 111, in create_connection
reader, writer = await asyncio.wait_for(open_connection(
File "C:\Users\kas23\AppData\Local\Programs\Python\Python38-32\lib\asyncio\tasks.py", line 455, in wait_for
return await fut
File "C:\Users\kas23\Desktop\Project\chat_test\myvenv\lib\site-packages\aioredis\stream.py", line 23, in open_connection
transport, _ = await get_event_loop().create_connection(
File "C:\Users\kas23\AppData\Local\Programs\Python\Python38-32\lib\asyncio\base_events.py", line 1025, in create_connection
raise exceptions[0]
File "C:\Users\kas23\AppData\Local\Programs\Python\Python38-32\lib\asyncio\base_events.py", line 1010, in create_connection
sock = await self._connect_sock(
File "C:\Users\kas23\AppData\Local\Programs\Python\Python38-32\lib\asyncio\base_events.py", line 924, in _connect_sock
await self.sock_connect(sock, address)
File "C:\Users\kas23\AppData\Local\Programs\Python\Python38-32\lib\asyncio\selector_events.py", line 494, in sock_connect
return await fut
File "C:\Users\kas23\AppData\Local\Programs\Python\Python38-32\lib\asyncio\selector_events.py", line 526, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 10061] Connect call failed ('127.0.0.1', 6379)
원인
RelRedis이 설치되어 있지 않거나 5.0 이하 버전
github.com/tporadowski/redis/releases
해당 github에서 5.0 버전의 msi 파일을 다운로드하여 설치하여 줍니다.
끝