Unable to get Twingate client working with networkd

Anyone else running twingate on Ubuntu and NOT using Network Manager?

Nov 29 08:12:36 smitty-5950x twingated[354038]: [2023-11-29T08:12:36.376903-0600] [INFO] [client] [354038] Starting Twingate Client 2023.250.97595
Nov 29 08:12:36 smitty-5950x twingated[354038]: [2023-11-29T08:12:36.377047-0600] [INFO] [client] [354038] Ubuntu 22.04.3 LTS
Nov 29 08:12:36 smitty-5950x twingated[354038]: [2023-11-29T08:12:36.377123-0600] [INFO] [client] [354038] Configured Desktop client with controller url 'https://<REMOVED>.twingate.com'
Nov 29 08:12:36 smitty-5950x networkd-dispatcher[1415]: WARNING:Unknown index 46831 seen, reloading interface list
Nov 29 08:12:36 smitty-5950x NetworkManager[1450]: <info>  [1701267156.3842] manager: (sdwan0): new Tun device (/org/freedesktop/NetworkManager/Devices/46960)
Nov 29 08:12:36 smitty-5950x systemd-udevd[354041]: Using default interface naming scheme 'v249'.
Nov 29 08:12:36 smitty-5950x NetworkManager[1450]: <info>  [1701267156.3953] audit: op="device-managed" interface="sdwan0" ifindex=46831 args="true" pid=354038 uid=0 result="success"
Nov 29 08:12:40 smitty-5950x twingated[354038]: [2023-11-29T08:12:40.12966-0600] [ERROR] [client][354038] nm_wait_for_device: it was not possible to activate sdwan0 device. Please make sure NetworkManager is running and it's the current system network renderer
Nov 29 08:12:40 smitty-5950x twingated[354038]: [2023-11-29T08:12:40.13067-0600] [ERROR] [client][354038] linux_nm_create_and_activate_conn: "nm_wait_for_managed_device(ifname, iface_obj_path) == true" failed
Nov 29 08:12:40 smitty-5950x twingated[354038]: [2023-11-29T08:12:40.13132-0600] [ERROR] [client][354038] linux_nm_create_tun: "linux_nm_create_and_activate_conn(tun_config->ifname, root, tun_config->obj_path) == true" failed
Nov 29 08:12:40 smitty-5950x gnome-shell[4122]: Removing a network device that was not added
Nov 29 08:12:40 smitty-5950x twingated[354038]: [2023-11-29T08:12:40.62239-0600] [ERROR] [client][354038] linux_cm_new: linux_tun_new
Nov 29 08:12:40 smitty-5950x twingated[354038]: [2023-11-29T08:12:40.62359-0600] [ERROR] [client] [354038] Failed to initialize Network Controller
Nov 29 08:12:40 smitty-5950x twingate-notifier[4862]: 14:12:40 [ERROR] Error: Failed to peek from socket: Connection reset by peer (os error 104)

Hey Mike!

I’ve come across this in the past and IIRC what was happening was that NM was active and running on the system, however networkd was the network renderer. In that env, the same errors you are showing were being thrown by the TG client. In my instance the solution that worked for me was to stop and disable the NM service, for the Client to stop experiencing the issue.

You rock! Thanks man.

Sure enough, NetworkManager was running , but not being used as I have renderer set to networkd in netplan. systemctl disable NetworkManager did the trick.

Appreciate it. I can confirm I am able to use on this box now.

1 Like