duosecurity / duo_log_sync

MIT License
37 stars 28 forks source link

SSL Error. #16

Open banil246 opened 3 years ago

banil246 commented 3 years ago

Hi

Python 3.9.1 duo_log_sync duo_log_sync-authlog_export_script.zip

config.yml duoclient: skey: "xxxx" ikey: "xxx" host: "xxxx"

logs: logDir: "/tmp" endpoints: enabled: ["auth", "telephony", "adminaction"] polling: duration: 5 daysinpast: 180 checkpointDir: "/tmp"

transport: protocol: "TCP" host: "localhost" port: 515 certFileDir: "/etc/ssl/certs" certFileName: "ca-bundle.crt"

recoverFromCheckpoint: enabled: False

but error There is sparse communication to the duo api host. What is the error and how can I deal with it?

Traceback (most recent call last): File "/usr/local/python-3.9.1/bin/duologsync", line 33, in sys.exit(load_entry_point('duologsync==1.0.0', 'console_scripts', 'duologsync')()) File "/usr/local/python-3.9.1/lib/python3.9/site-packages/duologsync-1.0.0-py3.9.egg/duologsync/app.py", line 12, in main File "/usr/local/python-3.9.1/lib/python3.9/site-packages/duologsync-1.0.0-py3.9.egg/duologsync/duo_log_sync_base.py", line 79, in start File "/usr/local/python-3.9.1/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/usr/local/python-3.9.1/lib/python3.9/site-packages/duologsync-1.0.0-py3.9.egg/duologsync/producer/telephony_producer.py", line 26, in telephony_producer File "/usr/local/python-3.9.1/lib/python3.9/concurrent/futures/thread.py", line 52, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/python-3.9.1/lib/python3.9/site-packages/duo_client/admin.py", line 494, in get_telephony_log response = self.json_api_call( File "/usr/local/python-3.9.1/lib/python3.9/site-packages/duo_client/client.py", line 382, in json_api_call (response, data) = self.api_call(method, path, params) File "/usr/local/python-3.9.1/lib/python3.9/site-packages/duo_client/admin.py", line 195, in api_call return super(Admin, self).api_call(method, path, params) File "/usr/local/python-3.9.1/lib/python3.9/site-packages/duo_client/client.py", line 269, in api_call return self._make_request(method, uri, body, encoded_headers) File "/usr/local/python-3.9.1/lib/python3.9/site-packages/duo_client/client.py", line 337, in _make_request response, data = self._attempt_single_request( File "/usr/local/python-3.9.1/lib/python3.9/site-packages/duo_client/client.py", line 350, in _attempt_single_request conn.request(method, uri, body, headers) File "/usr/local/python-3.9.1/lib/python3.9/http/client.py", line 1255, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/python-3.9.1/lib/python3.9/http/client.py", line 1301, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/local/python-3.9.1/lib/python3.9/http/client.py", line 1250, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/local/python-3.9.1/lib/python3.9/http/client.py", line 1010, in _send_output self.send(msg) File "/usr/local/python-3.9.1/lib/python3.9/http/client.py", line 950, in send self.connect() File "/usr/local/python-3.9.1/lib/python3.9/site-packages/duo_client/https_wrapper.py", line 121, in connect self.sock = self.default_ssl_context.wrap_socket(self.sock) File "/usr/local/python-3.9.1/lib/python3.9/ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "/usr/local/python-3.9.1/lib/python3.9/ssl.py", line 1040, in _create self.do_handshake() File "/usr/local/python-3.9.1/lib/python3.9/ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() ConnectionResetError: [Errno 104] Connection reset by peer