python-eduvpn-client icon indicating copy to clipboard operation
python-eduvpn-client copied to clipboard

can’t establish a connection to the server at 127.0.0.1:39569 (using eduvpn-gui)

Open paulzerr opened this issue 3 years ago • 13 comments

Installation

following the steps on the website (apt)

Version

latest

OS/Distribution

Kubuntu 22.04

Logs

2022-11-23 15:06:07,275 - oauth-http-server-run - INFO - eduvpn.oauth2.http - http.py:87 - listening for a request at 127.0.0.1:34899... 2022-11-23 15:06:07,275 - start-oauth-web-server - INFO - eduvpn.interface.event - event.py:49 - opening browser with https://ru.eduvpn.nl/portal/_oauth/authorize?response_type=code&client_id=org.eduvpn.app.linux&redirect_uri=http%3A%2F%2F127.0.0.1%3A34899%2Fcallback&scope=config&state=pB1kT5oCJwURPf88kJ1oImzpOb2VhR&code_challenge=9EvpGL_8QdC6aD2LyjdTzwXLjG-JyZqCKQLLTUonLaw&code_challenge_method=S256 2022-11-23 15:06:07,275 - MainThread - DEBUG - eduvpn.app - app.py:129 - interface transitioning: <OAuthSetupPending server=<InstituteAccessServer 'Radboud University'>> -> ready_for_oauth_setup 2022-11-23 15:06:07,275 - MainThread - DEBUG - eduvpn.app - app.py:140 - interface transitioned: ready_for_oauth_setup -> <OAuthSetup server=<InstituteAccessServer 'Radboud University'>, oauth_web_server=<eduvpn.oauth2.http.OAuthWebServer object at 0x7ff1de39fa30>> 127.0.0.1 - - [23/Nov/2022 15:06:08] code 400, message Bad request version ('\x16nE?ØØÃX\x00"\x13\x01\x13\x03\x13\x02À+À/̨̩À,À0À') 127.0.0.1 - - [23/Nov/2022 15:06:08] "üÒÉ(Aï" Jî§ÁâJÓ_÷X×úë sâ«Ó%ž£Ïl?nE?ØØÃX"À+À/̨̩À,À0À" 400 - 2022-11-23 15:06:08,953 - oauth-http-server-run - ERROR - eduvpn.oauth2.http - http.py:91 - invalid request received

paulzerr avatar Nov 23 '22 14:11 paulzerr

These errors are very weird to me, seems like a redirecting issue somehow triggering SSL?

Which browser are you using? Either chrome or firefox should work. Try with those first with a clean profile (no extensions)

Otherwise try the following in order:

  • Try connecting to the Radboud using secure internet and let me know if that works
  • Delete the local configs ~/.config/eduvpn and try again
  • Try if another client works (window, android, iOS, macOS) to rule out a network error
  • Do you have some kind of firewall that might be an issue, either on the network or the linux install? Try another network if possible

jwijenbergh avatar Nov 23 '22 14:11 jwijenbergh

I'm connecting via Eduroam wifi (university network). My colleagues are using the same (on windows) and it's working fine. I don't have another linux user nearby to test this with.

There is no eduvpn in my ~/.config (the gui is working though).

There is no firewall (ufw status is 'inactive').

paulzerr avatar Nov 23 '22 17:11 paulzerr

I have also tried connecting to a different network and different (clean) browsers. No success.

paulzerr avatar Nov 24 '22 13:11 paulzerr

Sorry for the trouble but do you have the ability to try this in a VM (non kubuntu)? Also tried re-installing the client?

In the meantime let me set up a kubuntu vm

jwijenbergh avatar Nov 25 '22 09:11 jwijenbergh

i'm also quite puzzled by this error log. This doesn't seem to come from eduvpn logging? Or is the webserver we run not using the python logging?

127.0.0.1 - - [23/Nov/2022 15:06:08] code 400, message Bad request version ('\x16nE?ØØÃX\x00"\x13\x01\x13\x03\x13\x02À+À/̨̩À,À0À')
127.0.0.1 - - [23/Nov/2022 15:06:08] "üÒÉ(Aï" Jî§ÁâJÓ_÷X×úë sâ«Ó%ž£Ïl?nE?ØØÃX"À+À/̨̩À,À0À" 400 -

gijzelaerr avatar Nov 25 '22 09:11 gijzelaerr

In your browser, when you do the oauth redirect. What does it say in the url bar? Does it maybe say https 127.0.0.1?

I mean when you reach this page image

jwijenbergh avatar Nov 25 '22 10:11 jwijenbergh

The url bar says

http://127.0.0.1:39119/callback?code=eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCIsImtpZCI6ImY3b1ppWUhpZ3BITkRJMGs0bkdFVnVWeDZBVmNaNTdXR0dOVW1BbUZRMEEifQ.eyJ2Ijo1LCJ0eXBlIjoiYXV0aG9yaXphdGlvbl9jb2RlIiwiYXV0aF9rZXkiOiJlZjNjNWFkZGZkNWIwNGU0ZGU5ODk3ZmI2OTFlNmJhNSIsInVzZXJfaWQiOiJVOTg2MTY3QHJ1Lm5sIiwiY2xpZW50X2lkIjoib3JnLmVkdXZwbi5hcHAubGludXgiLCJzY29wZSI6ImNvbmZpZyIsInJlZGlyZWN0X3VyaSI6Imh0dHA6XC9cLzEyNy4wLjAuMTozOTExOVwvY2FsbGJhY2siLCJjb2RlX2NoYWxsZW5nZSI6InRfcTNjYjh6SnBYaG1HVjcwemNfcVU5M1VBNzJTcmhIa1ZaUXVEaVVCWHMiLCJleHBpcmVzX2F0IjoiMjAyMi0xMS0yNVQxNjoxNDoxOCswMDowMCJ9.CRg_2JMeEQfw0ZIS8_3SkDxgur4xAb-b4tHCZDk3thA8DyNPkF8HPiVCWbS2Vm5GyGy349e6DcSJiXJKFd_SAw&state=jOQfsPJmWN2Ag0YiLl2pA8Zkqm0STv

paulzerr avatar Nov 25 '22 16:11 paulzerr

I'm bad with VM's, but have tried reinstalling the client.

paulzerr avatar Nov 25 '22 16:11 paulzerr

it really looks like your browser is insisting on sending encrypted (HTTPS) traffic to a non-encrypted port (HTTP). What browsers did you try?

gijzelaerr avatar Nov 26 '22 14:11 gijzelaerr

Clean chrome, firefox

paulzerr avatar Nov 26 '22 16:11 paulzerr

could it be that ru.eduvpn.nl forces the session to continue in https? No idea how that would work. also, the windows client doesn't seem to be bothered by this.

This is all super strange.

gijzelaerr avatar Nov 27 '22 11:11 gijzelaerr

could not resolve the issue, can't access university IT stuff I need for work, am sad

are there any problem solving approaches you would recommend?

paulzerr avatar Dec 05 '22 22:12 paulzerr

Sorry we can help you, but this is quite a rare problem. Try to isolate the issue, this is somehow specific to your system and configuration. You could try to see if you can get it to work on a new user account on your computer. Otherwise a fresh install of your OS ( on a different machine first).

On Tue, 6 Dec 2022 at 00:10, paulzerr @.***> wrote:

could not resolve the issue, can't access university IT stuff I need for work, am sad

are there any problem solving approaches you would recommend?

— Reply to this email directly, view it on GitHub https://github.com/eduvpn/python-eduvpn-client/issues/510#issuecomment-1338243622, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACPVJAFBG2SDSPMF3ATKILWLZR5FANCNFSM6AAAAAASJAHUUY . You are receiving this because you commented.Message ID: @.***>

-- Gijs Molenaar http://pythonic.nl

gijzelaerr avatar Dec 06 '22 04:12 gijzelaerr

@paulzerr can you try with version 4? Install instructions https://python-eduvpn-client.readthedocs.io/en/latest/installation.html

jwijenbergh avatar Mar 06 '23 14:03 jwijenbergh

Closing due to inactivity, if this is still an issue, please re-open

jwijenbergh avatar Apr 18 '23 14:04 jwijenbergh