Errno 10061
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 274
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Description
While attempting to setup, I am getting Errno 10061. Below is the entire message.
Initializing database...
Importing collection attack_technique
Traceback (most recent call last):
File "cascade.py", line 179, in <module>
app.settings.setup(auto_defaults=True)
File "C:\windows\system32\cascade-server\app\settings.py", line 86, in setup
import_database_from_file('misc/{}'.format(filename))
File "C:\windows\system32\cascade-server\app\utils.py", line 122, in import_database_from_file
import_database(dump, collections=collections, overwrite=overwrite)
File "C:\windows\system32\cascade-server\app\utils.py", line 101, in import_database
database[collection].insert_many(content)
File "C:\Python27\lib\site-packages\pymongo\collection.py", line 753, in insert_many
blk.execute(write_concern, session=session)
File "C:\Python27\lib\site-packages\pymongo\bulk.py", line 521, in execute
return self.execute_command(generator, write_concern, session)
File "C:\Python27\lib\site-packages\pymongo\bulk.py", line 344, in execute_command
with client._tmp_session(session) as s:
File "C:\Python27\lib\contextlib.py", line 17, in __enter__
return self.gen.next()
File "C:\Python27\lib\site-packages\pymongo\mongo_client.py", line 1576, in _tmp_session
s = self._ensure_session(session)
File "C:\Python27\lib\site-packages\pymongo\mongo_client.py", line 1563, in _ensure_session
return self.__start_session(True, causal_consistency=False)
File "C:\Python27\lib\site-packages\pymongo\mongo_client.py", line 1516, in __start_session
server_session = self._get_server_session()
File "C:\Python27\lib\site-packages\pymongo\mongo_client.py", line 1549, in _get_server_session
return self._topology.get_server_session()
File "C:\Python27\lib\site-packages\pymongo\topology.py", line 427, in get_server_session
None)
File "C:\Python27\lib\site-packages\pymongo\topology.py", line 199, in _select_servers_loop
self._error_message(selector))
pymongo.errors.ServerSelectionTimeoutError: 127.0.0.1:27017: [Errno 10061] No connection could be made because the target machine actively refused it
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with app/settings.py setup and app/utils.py import_database, where the traceback reaches the MongoDB client at 127.0.0.1:27017. Reproduce the setup failure and determine why the local database connection is refused; done means setup completes without the ServerSelectionTimeoutError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- mongodb, python
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100