GNS3 / gns3-gui

GNS3 Graphical Network Simulator
http://www.gns3.com
GNU General Public License v3.0
2.15k stars 434 forks source link

2.2 : Bug : "Unknown error" when stop GNS3 #2576

Closed Raizo62 closed 6 years ago

Raizo62 commented 6 years ago

Hi

With GNS3 2.2, with an empty default config

I start GNS3, use the default project. I do nothing.

I close GNS3, then the console shows the messages "Unknown error"

2018-09-01 07:54:45 ERROR controller.py:416 The remote host closed the connection
2018-09-01 07:54:45 ERROR project.py:624 Unknown error
2018-09-01 07:54:45 ERROR controller.py:416 Connection refused
2018-09-01 07:54:45 ERROR project.py:624 Unknown error
2018-09-01 07:54:45 ERROR controller.py:416 Unknown error
2018-09-01 07:54:45 ERROR project.py:624 Unknown error
2018-09-01 07:54:45 ERROR controller.py:416 Connection refused
2018-09-01 07:54:45 ERROR project.py:624 Unknown error
2018-09-01 07:54:45 ERROR controller.py:416 Unknown error
2018-09-01 07:54:45 ERROR project.py:624 Unknown error
2018-09-01 07:54:45 ERROR controller.py:416 Unknown error
2018-09-01 07:54:45 ERROR project.py:624 Unknown error
2018-09-01 07:54:45 ERROR controller.py:416 Unknown error
Raizo62 commented 6 years ago

Even, i can't put any device on the topology (vpcs device for example)

grossmj commented 6 years ago

Please start the server separately in a terminal using gns3server --local and let me know if you see any error after starting the GUI.

Thanks!

Raizo62 commented 6 years ago

No error message : GNS3-gui close correctly. But i can't start again a topology with the same name : "Project "untitled" is opened. it cannot be overwritten" Again, i can't add vpcs device on the topology.

grossmj commented 6 years ago

I couldn't reproduce the problem. Make sure all requirements have been installed using sudo pip3 install -r requirements.txt

Raizo62 commented 6 years ago

It did already do.

I have tried with default config : same result.

I will send you an iso to test on it.

Raizo62 commented 6 years ago

Log wit debug enable :

2018-10-09 06:35:51 DEBUG local_config:434 Section MainWindow has not changed. Skip saving configuration
Section MainWindow has not changed. Skip saving configuration
Section MainWindow has not changed. Skip saving configuration
2018-10-09 06:35:51 DEBUG local_server:545 Stopping local server (PID=2028)
Stopping local server (PID=2028)
Stopping local server (PID=2028)
2018-10-09 06:35:51 DEBUG http_client:533 POST http://127.0.0.1:3080/v2/shutdown {}
POST http://127.0.0.1:3080/v2/shutdown {}
POST http://127.0.0.1:3080/v2/shutdown {}
2018-10-09 06:35:51 DEBUG utils.progress_dialog:71 Set worker inside a thread <class 'gns3.local_server.StopLocalServerWorker'>
Set worker inside a thread <class 'gns3.local_server.StopLocalServerWorker'>
Set worker inside a thread <class 'gns3.local_server.StopLocalServerWorker'>
2018-10-09 06:35:51 DEBUG utils.progress_dialog:112 StopLocalServerWorker thread started
StopLocalServerWorker thread started
StopLocalServerWorker thread started
2018-10-09 06:35:51 DEBUG http_client:698 Decoding response from http://user@127.0.0.1:3080/v2/shutdown response 201
Decoding response from http://user@127.0.0.1:3080/v2/shutdown response 201
Decoding response from http://user@127.0.0.1:3080/v2/shutdown response 201
2018-10-09 06:35:51 ERROR controller:416 The remote host closed the connection
The remote host closed the connection
The remote host closed the connection
2018-10-09 06:35:51 ERROR project:624 Unknown error
Unknown error
Unknown error
2018-10-09 06:35:51 ERROR controller:416 Connection refused
Connection refused
Connection refused
2018-10-09 06:35:51 ERROR project:624 Unknown error
Unknown error
Unknown error
2018-10-09 06:35:51 ERROR controller:416 Unknown error
Unknown error
Unknown error
Raizo62 commented 6 years ago

The shared iso is send

Raizo62 commented 6 years ago

And I can't add device to topology : no error but the device is not on the topolgy

grossmj commented 6 years ago

I had a quick look and it seems the issue is with websocket connection with the GNS3 server. Have you tried to see if upgrading Qt to a more recent version would fix that issue?

Raizo62 commented 6 years ago

I don't know : i use packages of stretch (last stable debian) with backport. I can test (and you can also because you have the iso ;-) [ don't forget to do "sudo apt update" before] ) But the others users who uses also stretch debian will have also the bug ?

grossmj commented 6 years ago

And I can't add device to topology : no error but the device is not on the topology

I have fixed this in my last commit. Please give it a try.

Raizo62 commented 6 years ago

Yes, it works :-) Thanks a lot :-D And i believe that the bug #2565 can be closed also