Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project does not load anymore #3140

Closed
IurmanJ opened this issue Feb 28, 2021 · 11 comments
Closed

Project does not load anymore #3140

IurmanJ opened this issue Feb 28, 2021 · 11 comments
Labels
Milestone

Comments

@IurmanJ
Copy link

IurmanJ commented Feb 28, 2021

Describe the bug
When opening a project locally, GNS3 does not load (or, at least, display) it anymore. No error, it just fails silently. This issue appeared after upgrading to 2.2.18 (I was on 2.2.17 before that, everything was working fine).

GNS3 version and operating system:

  • OS: Linux (Ubuntu 18.04.5 LTS)
  • GNS3 version: 2.2.18

To Reproduce
Either via "File > Open project" or by directly opening a project file. Same behavior (see screenshot).

Screenshots
screenshot

@IurmanJ IurmanJ added the Bug label Feb 28, 2021
@IurmanJ
Copy link
Author

IurmanJ commented Feb 28, 2021

I forgot to mention that starting GNS3 alone works. I can see the gns3 server up and running and the GUI is asking for a project to create/open. However, same issue when opening a project.

Screenshot from 2021-02-28 19-09-46

@IurmanJ IurmanJ changed the title Project not loaded anymore Project does not load anymore Feb 28, 2021
@grossmj grossmj added this to the 2.2.19 milestone Mar 1, 2021
@IurmanJ
Copy link
Author

IurmanJ commented Mar 1, 2021

@grossmj Any idea of the origin?

@grossmj
Copy link
Member

grossmj commented Mar 2, 2021

@grossmj Any idea of the origin?

No but you could try to manually start the GNS3 server and see if you have any message indicating an error.

Type this to start the server in a terminal: python3 -m gns3server --local

@IurmanJ
Copy link
Author

IurmanJ commented Mar 2, 2021

Sure, glad to help. I actually got something quite interesting:

2021-03-02 13:02:20 ERROR web_protocol.py:355 Error handling request
Traceback (most recent call last):
  File "/usr/share/gns3/gns3-server/lib/python3.6/site-packages/aiohttp/web_protocol.py", line 275, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 523, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: invalid HTTP method

Same behavior for both the direct opening of a project or the opening of GNS3 alone.

@grossmj
Copy link
Member

grossmj commented Mar 4, 2021

Interesting, have you tried to configure SSL with the server or client?

@grossmj grossmj modified the milestones: 2.2.19, 2.2.20 Mar 4, 2021
@IurmanJ
Copy link
Author

IurmanJ commented Mar 4, 2021

No, I didn't. Should I?

@eknoes
Copy link

eknoes commented Apr 5, 2021

I have a similar problem: I start GNS3 with a project like that gns3 PATH-TO-PROJECT and it used to work. After upgrading from 2.2.7 to 2.2.19 it does not load at the first stage, but after clicking on "New Blank Project", the initial loaded project is displayed and everything works like normal.

Server output:

2021-04-05 10:35:00 INFO web_log.py:233 127.0.0.1 [05/Apr/2021:10:35:00 +0000] "GET /v2/version HTTP/1.1" 200 227 "-" "GNS3 QT Client v2.2.19"
2021-04-05 10:35:00 INFO web_log.py:233 127.0.0.1 [05/Apr/2021:10:35:00 +0000] "GET /v2/version HTTP/1.1" 200 227 "-" "GNS3 QT Client v2.2.19"
2021-04-05 10:35:00 INFO web_log.py:233 127.0.0.1 [05/Apr/2021:10:35:00 +0000] "GET /v2/version HTTP/1.1" 200 227 "-" "GNS3 QT Client v2.2.19"
2021-04-05 10:35:00 ERROR web_protocol.py:355 Error handling request
Traceback (most recent call last):
  File "/usr/share/gns3/gns3-server/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 275, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "/usr/share/gns3/gns3-server/lib/python3.8/site-packages/aiohttp/http_parser.py", line 264, in feed_data
    msg = self.parse_message(self._lines)
  File "/usr/share/gns3/gns3-server/lib/python3.8/site-packages/aiohttp/http_parser.py", line 437, in parse_message
    raise BadStatusLine(method)
aiohttp.http_exceptions.BadStatusLine: /version

# Here, only a blank screen is shown. After clicking "New Blank Project", the following happens:

2021-04-05 10:35:09 INFO web_log.py:233 127.0.0.1 [05/Apr/2021:10:35:09 +0000] "GET /v2/version HTTP/1.1" 200 227 "-" "GNS3 QT Client v2.2.19"
2021-04-05 10:35:09 INFO notification_handler.py:73 New client has connected to controller WebSocket                                                                                         

@ghost
Copy link

ghost commented Apr 5, 2021

This aiohttp.http_exceptions.BadStatusLine: /version error was also reported in #3144, in my case it didn't create any bad effects. But I have to confess I started gns3 without an argument.

@IurmanJ
Copy link
Author

IurmanJ commented Apr 5, 2021

[...] it does not load at the first stage, but after clicking on "New Blank Project", the initial loaded project is displayed and everything works like normal.

+1, got the same behavior. Btw, thx for the temp solution before a fix.

@eknoes
Copy link

eknoes commented Apr 5, 2021

I tried a quick fix for #3144 which resolves the wrong request error, but does not resolve the project loading error:

        status, json_data = self.httpClient().getSynchronous('GET', '/version', timeout=60)
        self._versionGetSlot(json_data, status >= 300)

But I do not know, if this is the intended way to use self._versionGetSlot

@grossmj
Copy link
Member

grossmj commented Apr 7, 2021

Should be fixed now. Thanks.

@grossmj grossmj closed this as completed Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants