Skip to content

Instantly share code, notes, and snippets.

@hut8
Created December 7, 2015 18:35
Show Gist options
  • Save hut8/50e961214d2b01a922e3 to your computer and use it in GitHub Desktop.
Save hut8/50e961214d2b01a922e3 to your computer and use it in GitHub Desktop.
pymongo-issue
2015-12-06 22:35:45.499:processor[DESKTOP-DCPAVOP]:ERROR:unhandled fatal error: localhost:27017: [WinError 10053] An established connection was aborted by the software in your host machine
Traceback (most recent call last):
File "C:\Anaconda3\lib\site-packages\pymongo\pool.py", line 231, in receive_message
return receive_message(self.sock, operation, request_id)
File "C:\Anaconda3\lib\site-packages\pymongo\network.py", line 114, in receive_message
header = _receive_data_on_socket(sock, 16)
File "C:\Anaconda3\lib\site-packages\pymongo\network.py", line 136, in _receive_data_on_socket
chunk = sock.recv(length)
ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\github-contributions\util\archive-processor", line 732, in <module>
raise e
File "D:\github-contributions\util\archive-processor", line 729, in <module>
args.func(args)
File "D:\github-contributions\util\archive-processor", line 689, in process
load(args)
File "D:\github-contributions\util\archive-processor", line 684, in load
loader.load()
File "D:\github-contributions\util\archive-processor", line 91, in load
self.load_file(source)
File "D:\github-contributions\util\archive-processor", line 154, in load_file
records_chunk, ordered=True
File "C:\Anaconda3\lib\site-packages\pymongo\collection.py", line 592, in insert_many
blk.execute(self.write_concern.document)
File "C:\Anaconda3\lib\site-packages\pymongo\bulk.py", line 456, in execute
return self.execute_command(sock_info, generator, write_concern)
File "C:\Anaconda3\lib\site-packages\pymongo\bulk.py", line 296, in execute_command
run.ops, True, self.collection.codec_options, bwc)
File "C:\Anaconda3\lib\site-packages\pymongo\message.py", line 524, in write_command
reply = self.sock_info.write_command(request_id, msg)
File "C:\Anaconda3\lib\site-packages\pymongo\pool.py", line 266, in write_command
response = helpers._unpack_response(self.receive_message(1, request_id))
File "C:\Anaconda3\lib\site-packages\pymongo\pool.py", line 233, in receive_message
self._raise_connection_failure(error)
File "C:\Anaconda3\lib\site-packages\pymongo\pool.py", line 331, in _raise_connection_failure
_raise_connection_failure(self.address, error)
File "C:\Anaconda3\lib\site-packages\pymongo\pool.py", line 62, in _raise_connection_failure
raise AutoReconnect(msg)
pymongo.errors.AutoReconnect: localhost:27017: [WinError 10053] An established connection was aborted by the software in your host machine
@hut8
Copy link
Author

hut8 commented Dec 7, 2015

Problematic file:

2015-12-07 13:56:33.141:processor[DESKTOP-DCPAVOP]:INFO:loading records from D:\github-archive\transformed\2015-04-07-14.json-processed.json.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment