VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 2
声望: 0

2022-07-22 14:49:42 --------------------------------------------------
2022-07-22 14:49:42 VeighNa Trader进程启动
2022-07-22 14:50:12 VeighNa Trader进程终止
2022-07-22 14:50:28 --------------------------------------------------
2022-07-22 14:50:28 VeighNa Trader进程启动
2022-07-22 14:50:59 Traceback (most recent call last):
File "C:\veighna_studio\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\veighna_studio\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "build\bdist.win-amd64\egg\veighna_station\trader.py", line 39, in <module>
File "build\bdist.win-amd64\egg\veighna_station\trader.py", line 30, in run_trader
2022-07-22 14:50:59 File "C:\veighna_studio\lib\site-packages\vnpy\trader\engine.py", line 101, in add_app
engine: BaseEngine = self.add_engine(app.engine_class)
File "C:\veighna_studio\lib\site-packages\vnpy\trader\engine.py", line 72, in add_engine
engine: BaseEngine = engine_class(self, self.event_engine)
File "C:\veighna_studio\lib\site-packages\vnpy_ctastrategy\engine.py", line 110, in init
self.database: BaseDatabase = get_database()
File "C:\veighna_studio\lib\site-packages\vnpy\trader\database.py", line 138, in get_database
database = module.Database()
File "C:\veighna_studio\lib\site-packages\vnpy_mongodb\mongodb_database.py", line 52, in init
self.bar_collection.create_index(
File "C:\veighna_studio\lib\site-packages\pymongo\collection.py", line 2023, in create_index
2022-07-22 14:50:59 return self.create_indexes([index], session, **cmd_options)[0]
File "C:\veighna_studio\lib\site-packages\pymongo\collection.py", line 1879, in
create_indexes
with self._socket_for_writes(session) as sock_info:
File "C:\veighna_studio\lib\site-packages\pymongo\collection.py", line 228, in _socket_for_writes
2022-07-22 14:50:59 return self.__database.client._socket_for_writes(session)
File "C:\veighna_studio\lib\site-packages\pymongo\mongo_client.py", line 1206, in _socket_for_writes
server = self._select_server(writable_server_selector, session)
File "C:\veighna_studio\lib\site-packages\pymongo\mongo_client.py", line 1196, in _select_server
2022-07-22 14:50:59 server = topology.select_server(server_selector)
File "C:\veighna_studio\lib\site-packages\pymongo\topology.py", line 251, in select_server
2022-07-22 14:50:59 servers = self.select_servers(selector, server_selection_timeout, address)
File "C:\veighna_studio\lib\site-packages\pymongo\topology.py", line 212, in select_servers
server_descriptions = self._select_servers_loop(selector, server_timeout, address)
File "C:\veighna_studio\lib\site-packages\pymongo\topology.py", line 227, in _select_servers_loop
2022-07-22 14:50:59 raise ServerSelectionTimeoutError(
pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [WinError 10061] 由于目标计算机积极拒绝,无法连接。, Timeout: 30s, Topology Description: <TopologyDescription id: 62da48b4edbce7afd0894275, topology_type: Unknown, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:27017: [WinError 10061] 由于目标计算机积极拒绝,无法连接。')>]>
2022-07-22 15:16:04 VeighNa Trader进程终止

Member
avatar
加入于:
帖子: 644
声望: 35

配置了使用MongoDB数据库,但是后端MongoDB服务进程没开,在操作系统配置里打开下吧

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】