기술스택을 쌓아보자/에러 로그 수집기
python dash gunicorn RecursionError: maximum recursion depth exceeded while calling a Python object
소리331
2023. 7. 5. 17:49
반응형
[INFO|/locdisk/code/cc/framework/helper/s3_helper.py:114] 2023-07-05 07:06:29,341 > Traceback (most recent call last):
File "/locdisk/code/cc/framework/helper/s3_helper.py", line 109, in get_data
s3_client = session.create_client('s3', aws_access_key_id=AWS_S3_KEY, aws_secret_access_key=AWS_S3_SECRET_KEY)
File "/venv/lib/python3.6/site-packages/botocore/session.py", line 838, in create_client
client_config=config, api_version=api_version)
File "/venv/lib/python3.6/site-packages/botocore/client.py", line 85, in create_client
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/venv/lib/python3.6/site-packages/botocore/client.py", line 308, in _get_client_args
verify, credentials, scoped_config, client_config, endpoint_bridge)
File "/venv/lib/python3.6/site-packages/botocore/args.py", line 107, in get_client_args
client_cert=new_config.client_cert)
File "/venv/lib/python3.6/site-packages/botocore/endpoint.py", line 298, in create_endpoint
client_cert=client_cert,
File "/venv/lib/python3.6/site-packages/botocore/httpsession.py", line 180, in __init__
self._manager = PoolManager(**self._get_pool_manager_kwargs())
File "/venv/lib/python3.6/site-packages/botocore/httpsession.py", line 188, in _get_pool_manager_kwargs
'ssl_context': self._get_ssl_context(),
File "/venv/lib/python3.6/site-packages/botocore/httpsession.py", line 197, in _get_ssl_context
return create_urllib3_context()
File "/venv/lib/python3.6/site-packages/botocore/httpsession.py", line 72, in create_urllib3_context
context.options |= options
File "/usr/lib/python3.6/ssl.py", line 465, in options
super(SSLContext, SSLContext).options.__set__(self, value)
File "/usr/lib/python3.6/ssl.py", line 465, in options
super(SSLContext, SSLContext).options.__set__(self, value)
File "/usr/lib/python3.6/ssl.py", line 465, in options
super(SSLContext, SSLContext).options.__set__(self, value)
[Previous line repeated 973 more times]
RecursionError: maximum recursion depth exceeded while calling a Python object
내용이 아래와 같은 config 파일을 만든다.
try:
import gevent.monkey
gevent.monkey.patch_all()
except ImportError:
pass
실행 커맨드라인에 --config 옵션을 추가한다 .
/venv/bin/gunicorn --config gevent_config.py --preload dashboard:server -w 12 -k gevent -b :15000
끝!
반응형