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

Ubuntu 24.04 NetworkManager issues #609

Open
jwijenbergh opened this issue Oct 1, 2024 · 8 comments
Open

Ubuntu 24.04 NetworkManager issues #609

jwijenbergh opened this issue Oct 1, 2024 · 8 comments

Comments

@jwijenbergh
Copy link
Collaborator

jwijenbergh commented Oct 1, 2024

There has been quite a lot of reports for NetworkManager crashing on Ubuntu 24.04. We're currently not sure if this is a client issue but as NetworkManager is crashing it does not make sense to only be an issue of this client.

I currently can not reproduce this issue in a VM. So it's tricky to figure out what is wrong.

The issues that have been reported:

Use the correct version

Make sure you are using the correct version of the client. For Ubuntu 24.04, the install instructions are the following:

https://docs.eduvpn.org/client/linux/installation.html#ubuntu-2404

If you're having issues please post the output of /etc/apt/sources.list.d/eduvpn-v4.list

Run updates

Maybe this has already been fixed in the Ubuntu 24.04 packaging, make sure your system is fully up to date and rebooted by running:

sudo apt update
sudo apt upgrade

and then rebooting your machine.

Try manually importing a configuration

If NetworkManager is still crashing, please try to manually import a WireGuard or OpenVPN config and report here that this step does work:

  • Go to the base URL of your server in the browser: You can find the base URL here: https://disco.eduvpn.org/v2/ by searching for your server. Or in the case you're testing a custom server, you should already know the URL.
  • If WireGuard: nmcli con import type wireguard file pathtowg.conf
  • If OpenVPN: nmcli con import type openvpn file pathtoopenvpn.ovpn
  • Then make sure the VPN is up with nmcli con up nameofvpnprofile

Possible upstream issues

@KajWiik
Copy link

KajWiik commented Nov 1, 2024

This is really strange, older 24.04.1 install in another laptops work fine but the same versions installed today crash NM.
/etc/apt/sources.list.d/eduvpn-v4.list:

deb [arch=amd64 signed-by=/usr/share/keyrings/eduvpn-v4.gpg] https://app.eduvpn.org/linux/v4/deb/ noble main
$ eduvpn-cli -d connect -n 1
2024-11-01 17:22:38,015 - <function ApplicationModelTransitions.get_previous_servers at 0x758aa39ba7a0> - DEBUG - eduvpn.app - app.py:47 - Transition: MAIN, old state: 1
2024-11-01 17:22:38,019 - MainThread - DEBUG - eduvpn.nm - nm.py:897 - calling action with CLI mainloop
2024-11-01 17:22:38,029 - MainThread - DEBUG - eduvpn.nm - nm.py:901 - Quiting main loop, thanks!
2024-11-01 17:22:38,038 - <function ApplicationModelTransitions.get_previous_servers at 0x758aa39ba7a0> - DEBUG - eduvpn.app - app.py:47 - Transition: MAIN, old state: 1
2024-11-01 17:22:38,038 - MainThread - DEBUG - eduvpn.nm - nm.py:897 - calling action with CLI mainloop
2024-11-01 17:22:38,040 - <function ApplicationModelTransitions.getting_config at 0x758aa39bac00> - DEBUG - eduvpn.app - app.py:62 - Transition: GETTING_CONFIG, old state: 1
2024/11/01 17:22:38 - Go - DEBUG - got 304 for discovery, server_list.json not modified
2024/11/01 17:22:38 - Go - DEBUG - saving state file
2024-11-01 17:22:38,502 - <function ApplicationModelTransitions.parse_config at 0x758aa39bb740> - DEBUG - eduvpn.app - app.py:102 - Transition: GOT_CONFIG, old state: 4
2024-11-01 17:22:38,507 - <function ApplicationModelTransitions.parse_connecting at 0x758aa39bbc40> - DEBUG - eduvpn.app - app.py:127 - Transition: CONNECTING, old state: 7
2024-11-01 17:22:38,508 - MainThread - DEBUG - eduvpn.nm - nm.py:447 - writing wireguard configuration to Network Manager
2024-11-01 17:22:38,511 - MainThread - DEBUG - eduvpn.nm - nm.py:365 - Adding new connection
2024-11-01 17:22:39,387 - MainThread - ERROR - eduvpn.nm - nm.py:917 - add connection error: g-dbus-error-quark: Message recipient disconnected from message bus without replying (4)
2024-11-01 17:22:39,390 - MainThread - DEBUG - eduvpn.nm - nm.py:901 - Quiting main loop, thanks!
2024/11/01 17:22:39 - Go - DEBUG - saving state file
2024-11-01 17:22:39,411 - <function ApplicationModelTransitions.deregistered at 0x758aa39ba840> - DEBUG - eduvpn.app - app.py:52 - Transition: DEREGISTERED, old state: 8

If I go to the root of our eduvpn (https://eduvpn.utu.fi/vpn-user-portal/home), I do not see any wireguard configs.

Any suggestions?

@jwijenbergh
Copy link
Collaborator Author

hi, did you update and reboot your system? I have had multiple reports that went away after rebooting or so

@KajWiik
Copy link

KajWiik commented Nov 1, 2024

Yes, I just updated and rebooted, no change. I also tried with wireless and wired connections, no effect. Upgrade of the working computer did have no effect, eduvpn is working there fine.

I also tried to copy .config/eduvpn from the working to the nonworking system, no effect, the same error message:

$ eduvpn-cli connect -n 1
2024-11-01 17:45:57,746 - MainThread - ERROR - eduvpn.nm - nm.py:917 - add connection error: g-dbus-error-quark: Message recipient disconnected from message bus without replying (4)

A variant of Heisenbug...

@KajWiik
Copy link

KajWiik commented Nov 1, 2024

Do you have any further instructions how I could find our wireguard setup?

@jwijenbergh
Copy link
Collaborator Author

So what you can do is go to the URL manually https://eduvpn.utu.fi. you say you do not see any wireguard configs. Do you see OpenVPN ones? Try to manually import these with networkmanager:

WireGuard:

nmcli con import type wireguard file file.conf

OpenVPN

nmcli con import type openvpn file file.ovpn

@KajWiik
Copy link

KajWiik commented Nov 3, 2024

I got a reply from the UTU Digital Services. They have blocked manual wireguard configs due to "life cycle control of user accounts" and do not support OpenVPN at all. That's the reason I do not see them in that web page. They will look into the issue next week in their test environment.

@KajWiik
Copy link

KajWiik commented Nov 4, 2024

deb [arch=amd64 signed-by=/usr/share/keyrings/eduvpn-v4.gpg] https://app.eduvpn.org/linux/v4/deb/ noble main

@jwijenbergh
Copy link
Collaborator Author

deb [arch=amd64 signed-by=/usr/share/keyrings/eduvpn-v4.gpg] https://app.eduvpn.org/linux/v4/deb/ noble main

Sorry I removed my comment as I saw you already mentioned it.

In journalctl -u NetworkManager or dmesg do you see indeed that NM is crashing when you try to connect?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants