eduvpn / python-eduvpn-client

Linux client for eduVPN
https://eduvpn.org/
GNU General Public License v3.0
39 stars 38 forks source link

Errors when using with Ubuntu 22.04 under WSL2, unable to connect using cli #525

Closed jguhlin closed 1 year ago

jguhlin commented 1 year ago

Installation

Via the wiki, https://python-eduvpn-client.readthedocs.io/en/master/installation.html Ubuntu options: via apt (Minor note, those instructions require using the bash shell, and are not compatible with some others, but worked great once I switched over temporarily)

Version

eduVPN client version 4.0.1

OS/Distribution

Ubuntu 22.04 under WSL 1.1.6.0 under Windows 10

Logs

(base) josephguhlin@Joey-PC:~$ eduvpn-cli interactive
error when checking if keyring is available: g-spawn-exit-error-quark: Error spawning command line “dbus-launch --autolaun
ch=f13bd90ea507e1e5c10c0a0c5efd72b6 --binary-syntax --close-stderr”: Child process exited with code 1 (1)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/eduvpn/nm.py", line 770, in <lambda>
    GLib.idle_add(lambda: action(callback=quit_loop))
  File "/usr/lib/python3/dist-packages/eduvpn/cli.py", line 471, in update_state_callback
    state = self.nm_manager.connection_state
  File "/usr/lib/python3/dist-packages/eduvpn/nm.py", line 175, in connection_state
    for connection in self.client.get_active_connections()
AttributeError: 'NoneType' object has no attribute 'get_active_connections'

From here it is frozen, this is my first attempt to connect.

Do you have a problem while adding before connecting?

n/a

Do you have a problem during or after connecting?

n/a

jwijenbergh commented 1 year ago

Hi,

Unfortunately, the Linux client cannot work under wsl due to limitations with wsl. We use Network manager which relies heavily on dbus and systemd which will not play well with wsl.

You can use the windows client or download a VPN configuration in the portal. I will see how I can improve the error message also