两天前,我在Manjaro/ArchLinux中安装了GNS3 2.1.16,今天我试图对其进行配置,结果出现了这个错误。
WaitForConnectionWorker thread stopping with an error: Could not connect to 127.0.0.1 on port 3090: [Errno 111] Conexión rehusada
Could not connect to 127.0.0.1 on port 3090: [Errno 111] Conexión rehusada
我试图为其他人更改端口:3091、3099和其他人,但这一点都没有帮助。因为这个原因,我以为3090号港口很忙。然后我使用下面的命令来验证它。
ss -anp | grep 3090
Output when I execute command
端口不忙。
我允许自己向您展示在GNS3中标记我的错误:
GNS3 management console.
Running GNS3 version 2.1.16 on Linux (64-bit) with Python 3.7.3 Qt 5.12.2 and PyQt 5.12.1.
Copyright (c) 2006-2019 GNS3 Technologies.
Use Help -> GNS3 Doctor to detect common issues.
=> Local server process has stopped
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (aiohttp 2.2.5 (/usr/lib/python3.7/site-packages), Requirement.parse('aiohttp<2.4.0,>=2.3.3'), {'gns3-server'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/gns3server", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3241, in <module>
@_call_aside
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3225, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3254, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'aiohttp<2.4.0,>=2.3.3' distribution was not found and is required by gns3-server
WaitForConnectionWorker thread stopping with an error: Could not connect to 127.0.0.1 on port 3090: [Errno 111] Conexión rehusada
Could not connect to 127.0.0.1 on port 3090: [Errno 111] Conexión rehusada
显示错误的图像。
Imagen when GSN3 runs.
Error shown
enter image description here
我真的希望你能帮忙。谢谢。
最佳答案
我已经回答了我的问题。
步骤:
验证正在使用哪个版本的aiohttp。在我的例子中,版本必须是**aiohttp**并且我有**aiohttp**。因此它是不相容的。
验证gns3 server和gns3 gui是相同的版本。
[user@Manhattan ~]$ gns3 --v
2.1.16
[user@Manhattan ~]$ gns3server --v
2.1.16
如果gns3 server或gns3 gui不相同,我们只需更新包。为此,我们使用以下命令。
> sudo pip3 install gns3-server==2.1.16
或
> sudo pip3 install gns3-gui==2.1.16
我们验证了aiohttp的版本。
> pip3 list
关于python - GNS3错误:WaitForConnectionWorker线程因错误而停止:无法在端口3090上连接到127.0.0.1:[Errno 111]Conexiónrehusada,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/55978902/