PhonePe / PhonePe/mantis

No Route to Host Server

Open
#17 14 comments 0 reactions 1 assignee View on GitHub

@Ncoder2 is already working on this.

Since Jun 11, 2024.

help wanted
Dominant language
Python
Stars
1k
Forks
136
PR merge metrics
No merged PRs in 30d

Description

Hi I have followed the instructions but getting this error after installation while running the onboard command.

[2024-04-22 07:33:46,752] --> INFO: MANTIS ASSET DISCOVERY - STARTED
[2024-04-22 07:33:46,753] --> INFO: Executing workname workflowName='default' schedule='daily between 00:00 and 04:00' cmd=[] scanNewOnly=False workflowConfig=[Module(moduleName='discovery', tools=['Subfinder', 'Amass'], order=1), Module(moduleName='prerecon', tools=['FindCDN', 'Naabu'], order=2), Module(moduleName='activehostscan', tools=['HTTPX_Active', 'HTTPX'], order=3), Module(moduleName='activerecon', tools=['Wafw00f'], order=4), Module(moduleName='scan', tools=['DNSTwister', 'Nuclei', 'Corsy'], order=5), Module(moduleName='secretscanner', tools=['SecretScanner'], order=6)]
[2024-04-22 07:33:46,766] --> INFO: Inserting user input into database
Traceback (most recent call last):
File "/home/mantis/launch.py", line 29, in
main()
File "/home/mantis/launch.py", line 23, in main
MantisWorkflow.select_workflow(args=args)
File "/home/mantis/mantis/workflows/mantis_workflow.py", line 9, in select_workflow
asyncio.run(Workflow.workflow_executor(args))
File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/home/mantis/mantis/modules/workflow.py", line 62, in workflow_executor
await CrudUtils.insert_assets(assets=asset_dict_list, source='internal')
File "/home/mantis/mantis/utils/crud_utils.py", line 73, in insert_assets
await add_assets_query(asset_data=asset_list)
File "/home/mantis/mantis/db/crud_assets.py", line 7, in add_assets_query
asset = await assets_collection.insert_many(asset_data, False) # 'ordered': "false"}
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.9/site-packages/pymongo/_csot.py", line 105, in csot_wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/pymongo/collection.py", line 707, in insert_many
blk.execute(write_concern, session=session)
File "/usr/local/lib/python3.9/site-packages/pymongo/bulk.py", line 513, in execute
return self.execute_command(generator, write_concern, session)
File "/usr/local/lib/python3.9/site-packages/pymongo/bulk.py", line 390, in execute_command
with client._tmp_session(session) as s:
File "/usr/local/lib/python3.9/contextlib.py", line 119, in enter
return next(self.gen)
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1729, in _tmp_session
s = self._ensure_session(session)
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1712, in _ensure_session
return self.__start_session(True, causal_consistency=False)
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1657, in __start_session
self._topology._check_implicit_session_support()
File "/usr/local/lib/python3.9/site-packages/pymongo/topology.py", line 538, in _check_implicit_session_support
self._check_session_support()
File "/usr/local/lib/python3.9/site-packages/pymongo/topology.py", line 554, in _check_session_support
self._select_servers_loop(
File "/usr/local/lib/python3.9/site-packages/pymongo/topology.py", line 238, in _select_servers_loop
raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: mantis.db:27017: [Errno 113] No route to host, Timeout: 30s, Topology Description: <TopologyDescription id: 662612da92d7553a2b77459f, topology_type: Unknown, servers: [<ServerDescription ('mantis.db', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('mantis.db:27017: [Errno 113] No route to host')>]>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.