작성
·
177
0
Traceback (most recent call last):
File "c:\programdata\miniconda3\lib\site-packages\aiohttp\connector.py", line 822, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs)
File "c:\programdata\miniconda3\lib\asyncio\base_events.py", line 981, in create_connection
ssl_handshake_timeout=ssl_handshake_timeout)
File "c:\programdata\miniconda3\lib\asyncio\base_events.py", line 1009, in _create_connection_transport
await waiter
File "c:\programdata\miniconda3\lib\asyncio\sslproto.py", line 530, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File "c:\programdata\miniconda3\lib\asyncio\sslproto.py", line 189, in feed_ssldata
self._sslobj.do_handshake()
File "c:\programdata\miniconda3\lib\ssl.py", line 774, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\programdata\miniconda3\lib\site-packages\ai\backend\client\request.py", line 389, in __aenter__
raw_resp = await self.rqst_ctx.__aenter__()
File "c:\programdata\miniconda3\lib\site-packages\aiohttp\client.py", line 855, in __aenter__
self._resp = await self._coro
File "c:\programdata\miniconda3\lib\site-packages\aiohttp\client.py", line 370, in _request
timeout=timeout
File "c:\programdata\miniconda3\lib\site-packages\aiohttp\connector.py", line 445, in connect
proto = await self._create_connection(req, traces, timeout)
File "c:\programdata\miniconda3\lib\site-packages\aiohttp\connector.py", line 757, in _create_connection
req, traces, timeout)
File "c:\programdata\miniconda3\lib\site-packages\aiohttp\connector.py", line 879, in _create_direct_connection
raise last_exc
File "c:\programdata\miniconda3\lib\site-packages\aiohttp\connector.py", line 862, in _create_direct_connection
req=req, client_error=client_error)
File "c:\programdata\miniconda3\lib\site-packages\aiohttp\connector.py", line 825, in _wrap_create_connection
req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host api.backend.ai:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)')]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "c:\programdata\miniconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\programdata\miniconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\ProgramData\Miniconda3\Scripts\backend.ai.exe\__main__.py", line 7, in <module>
File "c:\programdata\miniconda3\lib\site-packages\click\core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "c:\programdata\miniconda3\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "c:\programdata\miniconda3\lib\site-packages\click\core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "c:\programdata\miniconda3\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "c:\programdata\miniconda3\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "c:\programdata\miniconda3\lib\site-packages\ai\backend\client\cli\run.py", line 577, in run
if is_legacy_server():
File "c:\programdata\miniconda3\lib\site-packages\ai\backend\client\session.py", line 24, in is_legacy_server
ret = session.Kernel.hello()
File "c:\programdata\miniconda3\lib\site-packages\ai\backend\client\base.py", line 21, in _method
return cls.session.worker_thread.execute(coro)
File "c:\programdata\miniconda3\lib\site-packages\ai\backend\client\session.py", line 64, in execute
raise result
File "c:\programdata\miniconda3\lib\site-packages\ai\backend\client\session.py", line 48, in run
result = loop.run_until_complete(coro)
File "c:\programdata\miniconda3\lib\asyncio\base_events.py", line 579, in run_until_complete
return future.result()
File "c:\programdata\miniconda3\lib\site-packages\ai\backend\client\kernel.py", line 46, in hello
async with rqst.fetch() as resp:
File "c:\programdata\miniconda3\lib\site-packages\ai\backend\client\request.py", line 399, in __aenter__
raise BackendClientError(msg) from e
ai.backend.client.exceptions.BackendClientError: BackendClientError('Request to the API endpoint has failed.\nCheck your network connection and/or the server status.\n➜ ClientConnectorCertificateError()')
이전에 질문했었는데 답변대로 해도 오류가 나네요.
답변 3
0
저도 윗분과 같은 오류가 뜨는데, 댓글상으로 하라고 하시는 대로 했는데도 안되네요 ㅠㅠ
이 전에는 잘 됐었는데, 윈도우를 포맷한 후 atom이랑 miniconda를 다시 깔고 backendai까지 깔아서 실행했는데
결과가 이렇게 나옵니다.
댓글로 말씀 주신대로 했는데 같은 결과가 나옵니다.
0
두 번째로 ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)
에러를 볼때 인터넷 환경의 문제가 있을수도 있어보이는데 혹시 사내에서 실행하시는 건가요?
0
안녕하세요. 불편을 드려 죄송합니다.
아래와 같이 새롭게 가상환경을 만들어보실수 있을까요?
conda create -n inflearn_python python=3.6
설치
conda activate inflearn_python
pip install -U backend.ai-client==19.03.2
현재 해당 버전으로 설치가 되면 실행에는 문제가 없는 상태입니다.