Closed kakkotetsu closed 3 months ago
Found a work around on how to resolve the issue while preserving remote server connectivity & keeping my topology & nodes intact.
I'm adding this as a note for now for historical purposes, updating the bug link below with my work around if others face this issue:
IMPORTANT:
Troubleshooting section.
_________________________________
= [Verify GNS3 Server Services] =
_________________________________
sudo systemctl status gns3server.service
○ gns3server.service - GNS3 server
Loaded: loaded (/usr/lib/systemd/system/gns3server.service; enabled; preset: enabled)
Active: inactive (dead) since Wed 2024-07-24 15:11:09 PDT; 10min ago
Duration: 3min 30.040s
Process: 2759 ExecStart=/usr/bin/gns3server (code=exited, status=0/SUCCESS)
Main PID: 2759 (code=exited, status=0/SUCCESS)
CPU: 1.602s
Jul 24 15:11:09 MyUser systemd[1]: Stopping gns3server.service - GNS3 server...
Jul 24 15:11:09 MyUser gns3server[2759]: 2024-07-24 15:11:09 INFO web_server.py:115 Closing 2 websocket connections...
Jul 24 15:11:09 MyUser gns3server[2759]: 2024-07-24 15:11:09 INFO compute.py:457 Connection closed to compute 'local' WebSocket 'http://127.0.0.1:3080/v2/com>
Jul 24 15:11:09 MyUser gns3server[2759]: 2024-07-24 15:11:09 INFO __init__.py:146 Controller is stopping
Jul 24 15:11:09 MyUser gns3server[2759]: 2024-07-24 15:11:09 INFO compute.py:457 Connection closed to compute '98f0ddbf-990c-43a1-96c0-353af1962b54' WebSocke>
Jul 24 15:11:09 MyUser gns3server[2759]: 2024-07-24 15:11:09 INFO notification_handler.py:59 Client has disconnected from compute WebSocket
Jul 24 15:11:09 MyUser gns3server[2759]: 2024-07-24 15:11:09 INFO notification_handler.py:59 Client has disconnected from compute WebSocket
Jul 24 15:11:09 MyUser systemd[1]: gns3server.service: Deactivated successfully.
Jul 24 15:11:09 MyUser systemd[1]: Stopped gns3server.service - GNS3 server.
Jul 24 15:11:09 MyUser systemd[1]: gns3server.service: Consumed 1.602s CPU time, 51.8M memory peak, 0B memory swap peak.
__________________________________________________________
= [Start GNS3Server Services - NORMALLY /w Debug Option] =
__________________________________________________________
gns3server --debug
==========
= [LOGS] =
==========
Ignore, unlikely logs here until you start a project.
___________________________________________
= [Start GNS3 Client - With Debug Option] =
___________________________________________
#1) - Run from the CLI (remove the -):
- gns3 --debug
#2) - Then open/start a project, you should get an error below
==========
= [LOGS] =
==========
2024-07-24 15:22:33 DEBUG http_client:662 Response error: Error transferring http://admin@localhost:3080/v2/projects/load - server replied: Forbidden (localhost:3080) for http://admin@localhost:3080/v2/projects/load (error: 201)
2024-07-24 15:22:33 CRITICAL topology.py:258 Error transferring http://admin@localhost:3080/v2/projects/load - server replied: Forbidden (localhost:3080)
___________________________________________
= [View Error Logs From Server CLI Debug] =
___________________________________________
2024-07-24 15:22:33 ERROR project_handler.py:210 Cannot load 'MyProjectPath' because the server has not been started with the '--local' parameter
___________________________________
= [Kill Any Running GNS3 Process] =
___________________________________
===================================
= [Verify If Service Is Running] =
===================================
sudo lsof -i :3080
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
gns3serve 9286 MyUser 6u IPv4 57418 0t0 TCP localhost:3080 (LISTEN)
gns3serve 9286 MyUser 7u IPv4 57428 0t0 TCP localhost:46360->localhost:3080 (ESTABLISHED)
gns3serve 9286 MyUser 8u IPv4 57443 0t0 TCP localhost:3080->localhost:36306 (CLOSE_WAIT)
gns3serve 9286 MyUser 16u IPv4 57429 0t0 TCP localhost:3080->localhost:46360 (ESTABLISHED)
=========================================
= [Run Below Command To Kill The Process]
=========================================
sudo kill -9 9286
===================================
= [Verify If Service Is Running] =
===================================
sudo lsof -i :3080
________________________________________
= [Start GNS3Server Services --Local] =
________________________________________
gns3server --local --debug
##########
# [LOGS] #
##########
2024-07-24 15:32:57 INFO response.py:62 Response: 200 OK
2024-07-24 15:32:57 DEBUG response.py:63 {'Connection': 'close', 'X-Route': '/v2/projects/{project_id}/drawings', 'Server': 'Python/3.12 GNS3/2.2.48.1', 'Content-Type': 'application/json'}
____________________________
= [Start GNS3 GUI Client] =
____________________________
#1) - Open a project/create a new project. This should work now.
environment
I testd Ubuntu22.04 + gns3server
2.2.48
,2.2.48.1
issue
Unable to create project. When I try to create a project from gns3 file, I get the following error.
When I try to create blank project, I get the following error.
The gns3server process is follows.
reproduction procedure
<Yes>
the following question. (if select<No>
, this problem does not occur.)Use Systemd to automatically launch the GNS3 server at boot. Do you want to enable and start the GNS3 server as a service?
ubuntu@cn-ab0914:~$ ps -ef | grep [g]ns3 ubuntu 8788 2995 23 02:27 ? 00:00:01 /usr/share/gns3/gns3-gui/bin/python /usr/bin/gns3 ubuntu 8824 8788 25 02:27 ? 00:00:01 /usr/share/gns3/gns3-server/bin/python /usr/bin/gns3server --local --log=/home/ubuntu/.config/GNS3/2.2/gns3_server.log --pid=/home/ubuntu/.config/GNS3/2.2/gns3_server.pid