Logo

dev-resources.site

for different kinds of informations.

Fixing OpenVPN3 bug in Arch

Published at
3/31/2023
Categories
openvpn
archlinux
fix
linux
Author
damiank
Categories
4 categories in total
openvpn
open
archlinux
open
fix
open
linux
open
Author
7 person written this
damiank
open
Fixing OpenVPN3 bug in Arch

After I did the last update in Arch, OpenVPN3 client stopped working and gave me the following error:

** ERROR ** Failed calling D-Bus method UserInputProvide: GDBus.Error:net.openvpn.v3.sessions.error: Backend VPN process has died.  Session is no longer valid.
Enter fullscreen mode Exit fullscreen mode

I found that this error is still not fixed, but you can easily do a workaround.

So why does this error happen?
It seems there is a problem in glib2 v.2.76.1 (which is what I got updated recently) and it generates a Null in one of the functions OpenVPN uses for the authentication. So, after authenticating, that error appears and client crashes.

How to fix it?
While we wait for a better solution, one easy fix for this is to downgrade glibc to version 2.74.6. Just be aware that this has to be a temporary downgrade while a fix is available, and that downgrading might break your system.

To downgrade, you can install the downgrade command from the AUR, and then do the following:

sudo downgrade 'glib2=2.74.6'
Enter fullscreen mode Exit fullscreen mode

This will downgrade your glib to that version which works perfectly with current OpenVPN 3. Once connected, I advise to upgrade again to current glib2 to avoid possible errors in other apps which depend on newer version.
You can upgrade using the same downgrade tool with:

sudo downgrade 'glib2=2.76.1'
Enter fullscreen mode Exit fullscreen mode

This will probably pop a window which lets you select that package from the cache. Just reinstall and you're good to go.

I have used this as a temporary fix, and I hope OpenVPN will get updated soon to support current glib.

Also, I read in some blogs that this issue also happens on other Linux distributions, but I don't use them so I can't provide a solution for them. This fix of downgrading should work on any Linux, let me know if you do it on other distros.

Hope this helps someone.
Regards,
Damian

openvpn Article's
30 articles in total
Favicon
Fixing OpenVPN Connection Issues in Ubuntu 24.04
Favicon
AWS Verified Access preview non-review!
Favicon
How to Install a Private OpenVPN Server on Ubuntu 22.04
Favicon
Building an Ephemeral VPN Solution
Favicon
OpenVPN configuration for Tunnelbear in Windows
Favicon
Cรณmo montar una VPN rรกpido y sin complicaciones donde quieras
Favicon
AT1 has changed IP
Favicon
DE2 migration
Favicon
OpenVPN + SSO via OAUTH2
Favicon
New servers in Germany and Poland
Favicon
FR1 migration
Favicon
JP1 has changed datacenter
Favicon
Changing IP of LV1
Favicon
New Telegram contact
Favicon
Compiling OpenVPN in an Ubuntu 14.04 Chroot
Favicon
Why you should not use WireGuard
Favicon
Configurando o OpenVPN 2.4.7 no Ubuntu 23.04
Favicon
Local port forwarding using shadowsocks-rust + openvpn over shadowsocks
Favicon
Fixing OpenVPN3 bug in Arch
Favicon
Version 1 Terraform AWS OpenVPN Ephemeral Released!
Favicon
Connect to an OpenVPN server running on Synology DSM 7
Favicon
Configure OpenVPN server on Synology DSM 7
Favicon
How To Set Up an OpenVPN Server on Linux Server (Ubuntu)
Favicon
OpenVPN Server: Assigning Static IP Addresses Via A Script
Favicon
Install VPN (OpenVPN) Server on AWS EC2 Instance (Ubuntu)
Favicon
Open Vpn
Favicon
How to connect to the NETGEAR BR500 router using OpenVPN-GUI on Windows
Favicon
Installing and auto connecting to OpenVPN at startup on Gnome/Linux
Favicon
Auto OpenVPN reconnect and killswitch for VPNs with dynamic IPs
Favicon
Site to Site VPN for Google Kubernetes Engine

Featured ones: