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

OpenVPN 3 Linux does not work with glib2-2.76 and newer (ArchLinux, Ubuntu 23+, Fedora 38+) #171

Open
Jipok opened this issue Mar 15, 2023 · 258 comments
Assignees
Labels
bug regression This worked in an earlier release

Comments

@Jipok
Copy link

Jipok commented Mar 15, 2023

Package: https://aur.archlinux.org/packages/openvpn3
ERROR Failed calling D-Bus method UserInputProvide: GDBus.Error:net.openvpn.v3.sessions.error: Backend VPN process has died. Session is no longer valid.

Tried to rollback to previous versions:
https://aur.archlinux.org/cgit/aur.git/commit/?h=openvpn3&id=92bc949acae50959fd7ac49b81e3c2bec2572a62
https://aur.archlinux.org/cgit/aur.git/commit/?h=openvpn3&id=575161a346fe326a8ab3ea7da6598b5e473acfd5

Got same error. Tried systemctl enable systemd-resolved. Nothing changed.

sudo journalctl --since -30m SYSLOG_IDENTIFIER=net.openvpn.v3.log + SYSLOG_IDENTIFIER=openvpn3-service-logger + SYSLOG_IDENTIFIER=dbus + _SYSTEMD_UNIT=dbus.service + UNIT=dbus.service

Logs
мар 15 15:14:14 nik-omenbyhplaptop16c0xxx net.openvpn.v3.configuration[182365]: openvpn3-service-configmgr starting idle shutdown (pid: 182365)
мар 15 15:14:14 nik-omenbyhplaptop16c0xxx openvpn3-service-logger[3197]: Detached: {tag:17596408883715589883}  [:1.2154/net.openvpn.v3.configuration]
мар 15 15:14:16 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.2186' (uid=0 pid=205598 comm="sudo pacman -r openvpn3")
мар 15 15:14:16 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:14:37 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating via systemd: service name='org.manjaro.pamac.daemon' unit='pamac-daemon.service' requested by ':1.2187' (uid=1000 pid=206856 comm="pamac-manager")
мар 15 15:14:38 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Successfully activated service 'org.manjaro.pamac.daemon'
мар 15 15:14:57 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.2189' (uid=0 pid=208145 comm="/usr/lib/polkit-1/polkit-agent-helper-1 nik")
мар 15 15:14:57 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:15:00 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:15:00 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:15:00 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Reloaded configuration
мар 15 15:15:00 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:15:00 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:15:00 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Reloaded configuration
мар 15 15:15:00 nik-omenbyhplaptop16c0xxx systemd[1]: Reloading D-Bus System Message Bus...
мар 15 15:15:00 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:15:00 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:15:00 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Reloaded configuration
мар 15 15:15:00 nik-omenbyhplaptop16c0xxx dbus-send[208369]: method return time=1678875300.585617 sender=org.freedesktop.DBus -> destination=:1.2192 serial=3 reply_serial=2
мар 15 15:15:00 nik-omenbyhplaptop16c0xxx systemd[1]: Reloaded D-Bus System Message Bus.
мар 15 15:18:15 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.2158" (uid=967 pid=182465 comm="/usr/libexec/openvpn3-linux/openvpn3-service-netcf") interface="net.openvpn.v3.log" member="Detach" error name="(unset)" requested_reply="0" destination=":1.74" (uid=967 pid=3197 comm="/usr/libexec/openvpn3-linux/openvpn3-service-logge")
мар 15 15:18:15 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Rejected send message, 1 matched rules; type="method_call", sender=":1.2158" (uid=967 pid=182465 comm="/usr/libexec/openvpn3-linux/openvpn3-service-netcf") interface="net.openvpn.v3.log" member="Detach" error name="(unset)" requested_reply="0" destination=":1.74" (uid=967 pid=3197 comm="/usr/libexec/openvpn3-linux/openvpn3-service-logge")
мар 15 15:22:28 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.2243' (uid=1000 pid=242789 comm="/opt/google/chrome/chrome https://www.jetbrains.co")
мар 15 15:22:28 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service not found.
мар 15 15:24:07 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.2275' (uid=0 pid=250165 comm="sudo pacman -U ./openvpn3-18_beta-4-any.pkg.tar.zs")
мар 15 15:24:07 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Reloaded configuration
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Reloaded configuration
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Reloaded configuration
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx systemd[1]: Reloading D-Bus System Message Bus...
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: Unknown group "netdev" in message bus configuration file
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Reloaded configuration
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx dbus-send[250710]: method return time=1678875854.796421 sender=org.freedesktop.DBus -> destination=:1.2279 serial=3 reply_serial=2
мар 15 15:24:14 nik-omenbyhplaptop16c0xxx systemd[1]: Reloaded D-Bus System Message Bus.
мар 15 15:24:20 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating via systemd: service name='org.manjaro.pamac.daemon' unit='pamac-daemon.service' requested by ':1.2280' (uid=1000 pid=250989 comm="pamac checkupdates -q --refresh-tmp-files-dbs --us")
мар 15 15:24:20 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Successfully activated service 'org.manjaro.pamac.daemon'
мар 15 15:24:34 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating service name='net.openvpn.v3.configuration' requested by ':1.2282' (uid=1000 pid=252119 comm="openvpn3 session-start --config profile.ovpn") (using servicehelper)
мар 15 15:24:34 nik-omenbyhplaptop16c0xxx net.openvpn.v3.configuration[252124]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-configmgr)
мар 15 15:24:34 nik-omenbyhplaptop16c0xxx net.openvpn.v3.configuration[252124]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:24:34 nik-omenbyhplaptop16c0xxx net.openvpn.v3.configuration[252124]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:24:34 nik-omenbyhplaptop16c0xxx openvpn3-service-logger[3197]: Attached: {tag:11290672473054087421}  [:1.2283/net.openvpn.v3.configuration]
мар 15 15:24:34 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Successfully activated service 'net.openvpn.v3.configuration'
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx openvpn3-service-logger[3197]: {tag:11290672473054087421} Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.879' (uid=967 pid=62321 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi") (using servicehelper)
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[252203]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[252203]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[252203]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx openvpn3-service-logger[3197]: Attached: {tag:15424916788340851321}  [:1.2284/net.openvpn.v3.backends]
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[252208]: Re-initiated process from pid 252208 to backend process pid 252213
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[252213]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[252213]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[252213]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx openvpn3-service-logger[3197]: Attached: {tag:11389014820456218785}  [:1.2285/net.openvpn.v3.backends]
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx openvpn3-service-logger[3197]: Attached: {tag:15407280605843496166}  [:1.2285/net.openvpn.v3.sessions]
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx openvpn3-service-logger[3197]: Assigned session /net/openvpn/v3/sessions/7907cbf2s749cs4547s8a15s07c9c5346906 to {tag:11389014820456218785}
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating service name='net.openvpn.v3.netcfg' requested by ':1.2285' (uid=967 pid=252213 comm="/usr/libexec/openvpn3-linux/openvpn3-service-clien") (using servicehelper)
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx net.openvpn.v3.netcfg[252219]: Loading configuration file: /var/lib/openvpn3/netcfg.json
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx openvpn3-service-logger[3197]: Attached: {tag:8912792636715682768}  [:1.2286/net.openvpn.v3.netcfg]
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx openvpn3-service-logger[3197]: Attached: {tag:13601448941505107197}  [:1.2286/net.openvpn.v3.netcfg.core]
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx net.openvpn.v3.netcfg[252219]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-netcfg)
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx net.openvpn.v3.netcfg[252219]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx net.openvpn.v3.netcfg[252219]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:24:35 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Successfully activated service 'net.openvpn.v3.netcfg'
мар 15 15:24:36 nik-omenbyhplaptop16c0xxx openvpn3-service-logger[3197]: {tag:8912792636715682768} Redirect method: host-route
мар 15 15:24:40 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.2285" (uid=967 pid=252213 comm="/usr/libexec/openvpn3-linux/openvpn3-service-clien") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.879" (uid=967 pid=62321 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi")
мар 15 15:24:41 nik-omenbyhplaptop16c0xxx openvpn3-service-logger[3197]: Detached: {tag:15424916788340851321}  [:1.2284/net.openvpn.v3.backends]
мар 15 15:24:45 nik-omenbyhplaptop16c0xxx openvpn3-service-logger[3197]: {tag:852312002354459030} Session is closing
мар 15 15:25:06 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.7' (uid=0 pid=540 comm="/usr/bin/NetworkManager --no-daemon")
мар 15 15:25:06 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Refusing activation, D-Bus is shutting down.
мар 15 15:25:06 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.7' (uid=0 pid=540 comm="/usr/bin/NetworkManager --no-daemon")
мар 15 15:25:06 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Refusing activation, D-Bus is shutting down.
мар 15 15:25:06 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.7' (uid=0 pid=540 comm="/usr/bin/NetworkManager --no-daemon")
мар 15 15:25:06 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Refusing activation, D-Bus is shutting down.
мар 15 15:25:06 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.7' (uid=0 pid=540 comm="/usr/bin/NetworkManager --no-daemon")
мар 15 15:25:06 nik-omenbyhplaptop16c0xxx dbus-daemon[497]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Refusing activation, D-Bus is shutting down.
мар 15 15:25:06 nik-omenbyhplaptop16c0xxx systemd[1]: Stopping D-Bus System Message Bus...
мар 15 15:25:06 nik-omenbyhplaptop16c0xxx systemd[1]: dbus.service: Deactivated successfully.
мар 15 15:25:06 nik-omenbyhplaptop16c0xxx systemd[1]: Stopped D-Bus System Message Bus.
мар 15 15:25:06 nik-omenbyhplaptop16c0xxx systemd[1]: dbus.service: Consumed 14.770s CPU time.
-- Boot 4251afee3e4f494dbc1b3a48e22edd52 --
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx systemd[1]: Starting D-Bus System Message Bus...
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: dbus[511]: Unknown group "netdev" in message bus configuration file
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: dbus[511]: Unknown group "netdev" in message bus configuration file
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating systemd to hand-off: service name='org.freedesktop.PolicyKit1' unit='polkit.service' requested by ':1.2' (uid=0 pid=512 comm="/usr/lib/power-profiles-daemon")
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx systemd[1]: Started D-Bus System Message Bus.
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'org.freedesktop.systemd1'
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.7' (uid=0 pid=552 comm="/usr/bin/NetworkManager --no-daemon")
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.Accounts' unit='accounts-daemon.service' requested by ':1.8' (uid=0 pid=586 comm="/usr/bin/lightdm")
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'org.freedesktop.hostname1'
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.7' (uid=0 pid=552 comm="/usr/bin/NetworkManager --no-daemon")
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
мар 15 15:25:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'org.freedesktop.Accounts'
мар 15 15:25:22 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='fi.w1.wpa_supplicant1' unit='wpa_supplicant.service' requested by ':1.7' (uid=0 pid=552 comm="/usr/bin/NetworkManager --no-daemon")
мар 15 15:25:22 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'fi.w1.wpa_supplicant1'
мар 15 15:25:23 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.19' (uid=0 pid=679 comm="(systemd)")
мар 15 15:25:23 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:25:24 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.22' (uid=0 pid=747 comm="lightdm --session-child 13 20")
мар 15 15:25:24 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:25:26 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.resolve1' unit='dbus-org.freedesktop.resolve1.service' requested by ':1.7' (uid=0 pid=552 comm="/usr/bin/NetworkManager --no-daemon")
мар 15 15:25:26 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.resolve1.service': Unit dbus-org.freedesktop.resolve1.service not found.
мар 15 15:25:29 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.26' (uid=0 pid=784 comm="(systemd)")
мар 15 15:25:29 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:25:30 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service' requested by ':1.32' (uid=1000 pid=921 comm="/usr/lib/xfce4/panel/wrapper-2.0 /usr/lib/xfce4/pa")
мар 15 15:25:30 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.34' (uid=1000 pid=1000 comm="/usr/bin/wireplumber")
мар 15 15:25:30 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'org.freedesktop.RealtimeKit1'
мар 15 15:25:30 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service' requested by ':1.44' (uid=1000 pid=1121 comm="/usr/lib/gvfs-udisks2-volume-monitor")
мар 15 15:25:30 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'org.freedesktop.UDisks2'
мар 15 15:25:30 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'org.freedesktop.UPower'
мар 15 15:25:30 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.blueman.Mechanism' unit='blueman-mechanism.service' requested by ':1.48' (uid=1000 pid=1017 comm="/usr/bin/python /usr/bin/blueman-applet")
мар 15 15:25:30 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'org.blueman.Mechanism'
мар 15 15:25:30 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.48' (uid=1000 pid=1017 comm="/usr/bin/python /usr/bin/blueman-applet")
мар 15 15:25:30 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service not found.
мар 15 15:25:30 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.57' (uid=1000 pid=958 comm="/usr/lib/slack/slack -s --enable-crashpad")
мар 15 15:25:30 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service not found.
мар 15 15:25:43 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.sessions' requested by ':1.66' (uid=1000 pid=2634 comm="openvpn3 session-start --config profile.ovpn") (using servicehelper)
мар 15 15:25:43 nik-omenbyhplaptop16c0xxx net.openvpn.v3.sessions[2640]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-sessionmgr)
мар 15 15:25:43 nik-omenbyhplaptop16c0xxx net.openvpn.v3.sessions[2640]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:25:43 nik-omenbyhplaptop16c0xxx net.openvpn.v3.sessions[2640]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:25:43 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.log' requested by ':1.67' (uid=967 pid=2640 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi") (using servicehelper)
мар 15 15:25:43 nik-omenbyhplaptop16c0xxx net.openvpn.v3.log[2645]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-logger)
мар 15 15:25:43 nik-omenbyhplaptop16c0xxx net.openvpn.v3.log[2645]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:25:43 nik-omenbyhplaptop16c0xxx net.openvpn.v3.log[2645]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:25:43 nik-omenbyhplaptop16c0xxx net.openvpn.v3.log[2645]: Idle exit set to 10 minutes
мар 15 15:25:43 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.log'
мар 15 15:25:43 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:5176876094042800767}  [:1.67/net.openvpn.v3.sessions]
мар 15 15:25:43 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.sessions'
мар 15 15:25:44 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.configuration' requested by ':1.66' (uid=1000 pid=2634 comm="openvpn3 session-start --config profile.ovpn") (using servicehelper)
мар 15 15:25:44 nik-omenbyhplaptop16c0xxx net.openvpn.v3.configuration[2670]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-configmgr)
мар 15 15:25:44 nik-omenbyhplaptop16c0xxx net.openvpn.v3.configuration[2670]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:25:44 nik-omenbyhplaptop16c0xxx net.openvpn.v3.configuration[2670]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:25:45 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:3294001832531507693}  [:1.73/net.openvpn.v3.configuration]
мар 15 15:25:45 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.configuration'
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:3294001832531507693} Config Manager INFO: Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.67' (uid=967 pid=2640 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi") (using servicehelper)
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[2676]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[2676]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[2676]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:10538780266484486144}  [:1.74/net.openvpn.v3.backends]
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[2681]: Re-initiated process from pid 2681 to backend process pid 2682
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[2682]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[2682]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[2682]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:17752863769272376516}  [:1.75/net.openvpn.v3.backends]
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:14770816093798362931}  [:1.75/net.openvpn.v3.sessions]
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger DEBUG: Assigned session /net/openvpn/v3/sessions/d32e75d5sabb6s4f2bs9216s657e1b4a21aa to {tag:17752863769272376516}
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.netcfg' requested by ':1.75' (uid=967 pid=2682 comm="/usr/libexec/openvpn3-linux/openvpn3-service-clien") (using servicehelper)
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx net.openvpn.v3.netcfg[2688]: Loading configuration file: /var/lib/openvpn3/netcfg.json
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:6801382472851710627}  [:1.76/net.openvpn.v3.netcfg]
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:9019385048387530505}  [:1.76/net.openvpn.v3.netcfg.core]
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx net.openvpn.v3.netcfg[2688]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-netcfg)
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx net.openvpn.v3.netcfg[2688]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx net.openvpn.v3.netcfg[2688]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.netcfg'
мар 15 15:25:46 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:6801382472851710627} Network Configuration VERB1: Redirect method: host-route
мар 15 15:25:52 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:5176876094042800767} Session Manager VERB1: Session is closing
мар 15 15:25:52 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Detached: {tag:10538780266484486144}  [:1.74/net.openvpn.v3.backends]
мар 15 15:26:02 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.manjaro.pamac.daemon' unit='pamac-daemon.service' requested by ':1.77' (uid=1000 pid=2723 comm="pamac checkupdates -q --refresh-tmp-files-dbs --us")
мар 15 15:26:02 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'org.manjaro.pamac.daemon'
мар 15 15:26:41 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.79' (uid=1000 pid=2799 comm="openvpn3-admin version --services") (using servicehelper)
мар 15 15:26:41 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[2804]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 15:26:41 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[2804]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:26:41 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[2804]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:26:41 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:1363051216171063034}  [:1.80/net.openvpn.v3.backends]
мар 15 15:26:41 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 15:26:44 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Detached: {tag:1363051216171063034}  [:1.80/net.openvpn.v3.backends]
мар 15 15:27:34 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.82' (uid=1000 pid=2887 comm="/opt/google/chrome/chrome")
мар 15 15:27:34 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service not found.
мар 15 15:29:35 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.86' (uid=0 pid=3377 comm="sudo openvpn3-admin log-service --log-level 6")
мар 15 15:29:35 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:29:44 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB1: Log level changed to 6
мар 15 15:30:03 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.88' (uid=1000 pid=3438 comm="openvpn3-admin version --services") (using servicehelper)
мар 15 15:30:03 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3443]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 15:30:03 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3443]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:30:03 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3443]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:30:03 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:7877844478751905637}  [:1.89/net.openvpn.v3.backends]
мар 15 15:30:03 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 15:30:06 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Detached: {tag:7877844478751905637}  [:1.89/net.openvpn.v3.backends]
мар 15 15:30:07 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.90' (uid=1000 pid=3449 comm="openvpn3-admin version --services") (using servicehelper)
мар 15 15:30:07 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3454]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 15:30:07 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3454]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:30:07 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3454]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:30:07 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:2165800593456280365}  [:1.91/net.openvpn.v3.backends]
мар 15 15:30:07 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 15:30:11 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:3294001832531507693} Config Manager INFO: Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 15:30:11 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3463]: Re-initiated process from pid 3463 to backend process pid 3464
мар 15 15:30:11 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3464]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 15:30:11 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3464]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:30:11 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3464]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:30:11 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:16929269477665219677}  [:1.93/net.openvpn.v3.backends]
мар 15 15:30:11 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:4312938257175000096}  [:1.93/net.openvpn.v3.sessions]
мар 15 15:30:11 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger DEBUG: Assigned session /net/openvpn/v3/sessions/4a7fe7b7se13fs4697s8d3bs43885543851d to {tag:16929269477665219677}
мар 15 15:30:15 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:5176876094042800767} Session Manager VERB1: Session is closing
мар 15 15:30:16 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Detached: {tag:2165800593456280365}  [:1.91/net.openvpn.v3.backends]
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:3294001832531507693} Config Manager INFO: Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.67' (uid=967 pid=2640 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi") (using servicehelper)
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3795]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3795]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3795]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:6836215536635258495}  [:1.95/net.openvpn.v3.backends]
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3800]: Re-initiated process from pid 3800 to backend process pid 3801
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3801]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3801]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[3801]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:26250808143915863}  [:1.96/net.openvpn.v3.backends]
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:14848863870774143008}  [:1.96/net.openvpn.v3.sessions]
мар 15 15:30:50 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger DEBUG: Assigned session /net/openvpn/v3/sessions/2b093b74s5f0es4daas911asaf75902cf642 to {tag:26250808143915863}
мар 15 15:30:56 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Detached: {tag:6836215536635258495}  [:1.95/net.openvpn.v3.backends]
мар 15 15:31:02 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:5176876094042800767} Session Manager VERB1: Session is closing
мар 15 15:31:05 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.103' (uid=0 pid=3954 comm="sudo journalctl --since -30m SYSLOG_IDENTIFIER=net")
мар 15 15:31:05 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:31:36 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.104' (uid=0 pid=3976 comm="sudo journalctl --since -30m SYSLOG_IDENTIFIER=net")
мар 15 15:31:36 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:33:13 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.manjaro.pamac.daemon' unit='pamac-daemon.service' requested by ':1.107' (uid=1000 pid=4295 comm="pamac-manager")
мар 15 15:33:13 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'org.manjaro.pamac.daemon'
мар 15 15:33:29 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.109' (uid=0 pid=4356 comm="/usr/lib/polkit-1/polkit-agent-helper-1 nik")
мар 15 15:33:29 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:33:57 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.manjaro.pamac.daemon' unit='pamac-daemon.service' requested by ':1.116' (uid=1000 pid=4666 comm="pamac checkupdates -q --refresh-tmp-files-dbs --us")
мар 15 15:33:57 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'org.manjaro.pamac.daemon'
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:3294001832531507693} Config Manager INFO: Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.67' (uid=967 pid=2640 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi") (using servicehelper)
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[4820]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[4820]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[4820]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:9822824572138494725}  [:1.119/net.openvpn.v3.backends]
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[4825]: Re-initiated process from pid 4825 to backend process pid 4826
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[4826]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[4826]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[4826]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:9549042422913387774}  [:1.120/net.openvpn.v3.backends]
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:17522320937480474161}  [:1.120/net.openvpn.v3.sessions]
мар 15 15:34:00 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger DEBUG: Assigned session /net/openvpn/v3/sessions/b3e6a6a8s83das4229sb95fs818e089aa9ea to {tag:9549042422913387774}
мар 15 15:34:04 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:5176876094042800767} Session Manager VERB1: Session is closing
мар 15 15:34:06 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Detached: {tag:9822824572138494725}  [:1.119/net.openvpn.v3.backends]
мар 15 15:34:17 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.bluez' unit='dbus-org.bluez.service' requested by ':1.122' (uid=1000 pid=4887 comm="/opt/google/chrome/chrome https://slack.com/openid")
мар 15 15:34:17 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.bluez.service': Unit dbus-org.bluez.service not found.
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:3294001832531507693} Config Manager INFO: Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.67' (uid=967 pid=2640 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi") (using servicehelper)
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5497]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5497]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5497]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:857984327858672268}  [:1.129/net.openvpn.v3.backends]
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5502]: Re-initiated process from pid 5502 to backend process pid 5503
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5503]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5503]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5503]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:2222412201115115687}  [:1.130/net.openvpn.v3.backends]
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:13927080534446460585}  [:1.130/net.openvpn.v3.sessions]
мар 15 15:36:28 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger DEBUG: Assigned session /net/openvpn/v3/sessions/0e914a21s7398s4a54sa39asc47904cfbfc7 to {tag:2222412201115115687}
мар 15 15:36:34 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Detached: {tag:857984327858672268}  [:1.129/net.openvpn.v3.backends]
мар 15 15:36:37 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.130" (uid=967 pid=5503 comm="/usr/libexec/openvpn3-linux/openvpn3-service-clien") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.67" (uid=967 pid=2640 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi")
мар 15 15:36:44 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:5176876094042800767} Session Manager VERB1: Session is closing
мар 15 15:37:31 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.138' (uid=0 pid=5676 comm="sudo systemctl status systemd-resolved~")
мар 15 15:37:31 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:37:43 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.139' (uid=0 pid=5687 comm="sudo systemctl status systemd-resolved")
мар 15 15:37:43 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:38:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.140' (uid=0 pid=5699 comm="sudo systemctl start systemd-resolved")
мар 15 15:38:21 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:38:26 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.142' (uid=0 pid=5717 comm="sudo systemctl status systemd-resolved")
мар 15 15:38:26 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:3294001832531507693} Config Manager INFO: Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.67' (uid=967 pid=2640 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi") (using servicehelper)
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5843]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5843]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5843]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:15067968577780944010}  [:1.144/net.openvpn.v3.backends]
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5848]: Re-initiated process from pid 5848 to backend process pid 5849
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5849]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5849]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5849]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:4518311142645221373}  [:1.145/net.openvpn.v3.backends]
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:15989938200057676767}  [:1.145/net.openvpn.v3.sessions]
мар 15 15:38:41 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger DEBUG: Assigned session /net/openvpn/v3/sessions/398073f1sdfdbs4694sa753s1db3dd430d42 to {tag:4518311142645221373}
мар 15 15:38:43 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.145" (uid=967 pid=5849 comm="/usr/libexec/openvpn3-linux/openvpn3-service-clien") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.67" (uid=967 pid=2640 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi")
мар 15 15:38:46 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:5176876094042800767} Session Manager VERB1: Session is closing
мар 15 15:38:47 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Detached: {tag:15067968577780944010}  [:1.144/net.openvpn.v3.backends]
мар 15 15:39:07 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.146' (uid=0 pid=5873 comm="sudo journalctl --since -30m SYSLOG_IDENTIFIER=net")
мар 15 15:39:07 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:42:05 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.157' (uid=0 pid=6238 comm="/usr/lib/polkit-1/polkit-agent-helper-1 nik")
мар 15 15:42:05 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:42:16 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.161' (uid=0 pid=6305 comm="/usr/lib/polkit-1/polkit-agent-helper-1 nik")
мар 15 15:42:16 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:3294001832531507693} Config Manager INFO: Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.67' (uid=967 pid=2640 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi") (using servicehelper)
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6438]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6438]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6438]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:849584446241094030}  [:1.165/net.openvpn.v3.backends]
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6443]: Re-initiated process from pid 6443 to backend process pid 6444
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6444]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6444]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6444]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:11897192219778744383}  [:1.166/net.openvpn.v3.backends]
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:17471634842230019982}  [:1.166/net.openvpn.v3.sessions]
мар 15 15:42:28 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger DEBUG: Assigned session /net/openvpn/v3/sessions/32078ad5sf1e5s4d4fs9c4csbcf2103bea81 to {tag:11897192219778744383}
мар 15 15:42:34 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Detached: {tag:849584446241094030}  [:1.165/net.openvpn.v3.backends]
мар 15 15:42:35 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:5176876094042800767} Session Manager VERB1: Session is closing
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:3294001832531507693} Config Manager INFO: Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.67' (uid=967 pid=2640 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi") (using servicehelper)
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6548]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6548]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6548]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:8934332292885703780}  [:1.174/net.openvpn.v3.backends]
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6553]: Re-initiated process from pid 6553 to backend process pid 6554
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6554]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6554]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[6554]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:7066923812535353395}  [:1.175/net.openvpn.v3.backends]
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Attached: {tag:11731903782373737517}  [:1.175/net.openvpn.v3.sessions]
мар 15 15:42:39 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger DEBUG: Assigned session /net/openvpn/v3/sessions/27caf0ddsdbb3s4ca7s8943s1ab5a6a0f053 to {tag:7066923812535353395}
мар 15 15:42:45 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: Logger VERB2: Detached: {tag:8934332292885703780}  [:1.174/net.openvpn.v3.backends]
мар 15 15:42:51 nik-omenbyhplaptop16c0xxx openvpn3-servic[2645]: {tag:5176876094042800767} Session Manager VERB1: Session is closing
мар 15 15:43:03 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.176' (uid=0 pid=6583 comm="sudo journalctl --since -30m SYSLOG_IDENTIFIER=net")
мар 15 15:43:03 nik-omenbyhplaptop16c0xxx dbus-daemon[511]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.

logs.txt

### UPD: Temporary solution:
sudo downgrade 'glib2=2.74.6'
downgrade available on aur.
I don't recommend ignoring the glib2 upgrade and trying to upgrade the system afterwards.

UPD2: The discussion contains scripts to fix this problem on different linux distros(ex: for arch-based). I haven't been following this discussion for a long time since the problem is no longer relevant to me. Read from the end to find the solution.

@dsommers
Copy link
Member

dsommers commented Mar 15, 2023

I see dbus-org.freedesktop.home1.service mentioned. I believe that's related to the systemd-hostnamed service. Is that running? (not related to systemd-hostnamed).

I would try to sort out the home1 service first. That occurs a bit too often.

@Jipok
Copy link
Author

Jipok commented Mar 15, 2023

I would try to sort out the home1 service first. That occurs a bit too often.

How is openvpn related to homed?

@dsommers
Copy link
Member

I would try to sort out the home1 service first. That occurs a bit too often.

How is openvpn related to homed?

That's the question. But there might be some dependency chains here which impacts the privilege drop in OpenVPN 3 Linux somewhere.

Also, please increase the log levels a bit. As root, run these lines:

  # openvpn3-admin log-service --log-level 6
  # openvpn3-admin netcfg-service --config-set log-level 6

If you have used openvpn3-as or openvpn3 config-import, please increase the log-level on the configuration profile:

 $ openvpn3 config-manage --config CONFIG_NAME --log-level 6

Or add ensure you have verb 6 in the OpenVPN configuration file.

This will enable a lot more debug details.

@Jipok
Copy link
Author

Jipok commented Mar 15, 2023

Also, please increase the log levels a bit. As root, run these lines:

Done. Also the user has enabled homed.

If you have used openvpn3-as or openvpn3 config-import, please increase the log-level on the configuration profile:

[nik@nik-omenbyhplaptop16c0xxx vpn]$ openvpn3 config-manage --config profile.ovpn --log-level 6
config-manage: ** ERROR ** No configuration profiles found

Typically the user starts with the command:
openvpn3 session-start --config profile.ovpn
This time we have added --log-level 6.

Logs --since -5m
мар 15 19:51:07 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Activating service name='net.openvpn.v3.sessions' requested by ':1.106' (uid=1000 pid=5079 comm="openvpn3 session-start --config profile.ovpn") (using servicehelper)
мар 15 19:51:08 nik-omenbyhplaptop16c0xxx net.openvpn.v3.sessions[5084]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-sessionmgr)
мар 15 19:51:08 nik-omenbyhplaptop16c0xxx net.openvpn.v3.sessions[5084]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 19:51:08 nik-omenbyhplaptop16c0xxx net.openvpn.v3.sessions[5084]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 19:51:08 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Attached: {tag:11404371163883744884}  [:1.107/net.openvpn.v3.sessions]
мар 15 19:51:08 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Successfully activated service 'net.openvpn.v3.sessions'
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: {tag:16955228298705319744} Config Manager INFO: Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.107' (uid=967 pid=5084 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi") (using servicehelper)
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5091]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5091]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5091]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Attached: {tag:14914606272396780742}  [:1.108/net.openvpn.v3.backends]
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5096]: Re-initiated process from pid 5096 to backend process pid 5097
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5097]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5097]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5097]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Attached: {tag:9447642087059592992}  [:1.109/net.openvpn.v3.backends]
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Attached: {tag:13470623947338309768}  [:1.109/net.openvpn.v3.sessions]
мар 15 19:51:09 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger DEBUG: Assigned session /net/openvpn/v3/sessions/2d902baasd861s4963sa793sb3865412c245 to {tag:9447642087059592992}
мар 15 19:51:11 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.109" (uid=967 pid=5097 comm="/usr/libexec/openvpn3-linux/openvpn3-service-clien") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.107" (uid=967 pid=5084 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi")
мар 15 19:51:14 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: {tag:11404371163883744884} Session Manager VERB1: Session is closing
мар 15 19:51:15 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Detached: {tag:14914606272396780742}  [:1.108/net.openvpn.v3.backends]
мар 15 19:51:40 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.110' (uid=0 pid=5127 comm="sudo journalctl --since -5m SYSLOG_IDENTIFIER=net.")
мар 15 19:51:40 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 19:53:09 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.117' (uid=0 pid=5262 comm="sudo systemctl enable systemd-homed.service")
мар 15 19:53:09 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
мар 15 19:53:20 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.118' (uid=0 pid=5298 comm="sudo systemctl status systemd-homed.service")
мар 15 19:53:20 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Successfully activated service 'org.freedesktop.home1'
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: {tag:16955228298705319744} Config Manager INFO: Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.107' (uid=967 pid=5084 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi") (using servicehelper)
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5308]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5308]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5308]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Attached: {tag:9319451465177446423}  [:1.121/net.openvpn.v3.backends]
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5313]: Re-initiated process from pid 5313 to backend process pid 5314
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5314]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5314]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5314]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Attached: {tag:17260647803632402193}  [:1.122/net.openvpn.v3.backends]
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Attached: {tag:8774358104767179614}  [:1.122/net.openvpn.v3.sessions]
мар 15 19:53:39 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger DEBUG: Assigned session /net/openvpn/v3/sessions/954642f2s8277s4e00sa080sc3b3fe6872fd to {tag:17260647803632402193}
мар 15 19:53:40 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: {tag:11404371163883744884} Session Manager !! CRITICAL !!: Failed communicating with VPN backend: Failed calling D-Bus method UserInputProvide: Message recipient disconnected from message bus without replying
мар 15 19:53:43 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: {tag:16955228298705319744} Config Manager INFO: Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 19:53:43 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5332]: Re-initiated process from pid 5332 to backend process pid 5333
мар 15 19:53:43 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5333]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 19:53:43 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5333]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 19:53:43 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5333]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 19:53:43 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Attached: {tag:16577970484867315866}  [:1.124/net.openvpn.v3.backends]
мар 15 19:53:43 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Attached: {tag:6298501071151946558}  [:1.124/net.openvpn.v3.sessions]
мар 15 19:53:43 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger DEBUG: Assigned session /net/openvpn/v3/sessions/7a87df42sb8ffs4466sbcabsa381360b6666 to {tag:16577970484867315866}
мар 15 19:53:48 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Detached: {tag:9319451465177446423}  [:1.121/net.openvpn.v3.backends]
мар 15 19:53:48 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: {tag:11404371163883744884} Session Manager VERB1: Session is closing
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: {tag:16955228298705319744} Config Manager INFO: Parsed single-use configuration 'profile.ovpn', owner: nik
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Activating service name='net.openvpn.v3.backends' requested by ':1.107' (uid=967 pid=5084 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi") (using servicehelper)
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5354]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-backendstart)
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5354]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5354]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Attached: {tag:7490210805384080231}  [:1.126/net.openvpn.v3.backends]
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Successfully activated service 'net.openvpn.v3.backends'
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5359]: Re-initiated process from pid 5359 to backend process pid 5360
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5360]: OpenVPN 3/Linux git:makepkg:5c47318f719aa046 (openvpn3-service-client)
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5360]: OpenVPN core 3.git:HEAD:c4fa5a69 linux x86_64 64-bit
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx net.openvpn.v3.backends[5360]: Copyright (C) 2012-2020 OpenVPN Inc. All rights reserved.
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Attached: {tag:11852658070550254248}  [:1.127/net.openvpn.v3.backends]
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Attached: {tag:5893166342581689704}  [:1.127/net.openvpn.v3.sessions]
мар 15 19:53:49 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger DEBUG: Assigned session /net/openvpn/v3/sessions/1925570esbba4s4c05s9e6es0c49e4f144b4 to {tag:11852658070550254248}
мар 15 19:53:55 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: Logger VERB2: Detached: {tag:7490210805384080231}  [:1.126/net.openvpn.v3.backends]
мар 15 19:54:00 nik-omenbyhplaptop16c0xxx dbus-daemon[507]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.127" (uid=967 pid=5360 comm="/usr/libexec/openvpn3-linux/openvpn3-service-clien") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.107" (uid=967 pid=5084 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi")
мар 15 19:54:05 nik-omenbyhplaptop16c0xxx openvpn3-servic[4138]: {tag:11404371163883744884} Session Manager VERB1: Session is closing

logs (3).txt

@dsommers
Copy link
Member

dsommers commented Mar 15, 2023

I'm puzzled your log is still quite scarce. So lets try to start these background services manually. You will need more terminals here. Ensure all the openvpn3-service-* processes are stopped before starting them as described below.

  • Log service

     # /usr/libexec/openvpn3-linux/openvpn3-service-logger --log-level 6 --colour --timestamp \
                                                           --service --service-log-dbus-details  --idle-exit 0
    
  • Configuration manager

    # /usr/libexec/openvpn3-linux/openvpn3-service-configmgr --log-file stdout: --log-level 6 --colour \
                                                             --idle-exit 0 --state-dir /var/lib/openvpn3
    
  • Session manager

    # /usr/libexec/openvpn3-linux/openvpn3-service-sessionmgr --log-file stdout: --log-level 6 --colour \
                                                             --idle-exit 0
    
  • VPN client backend starter

    # /usr/libexec/openvpn3-linux/openvpn3-service-backendstart --client-log-file stdout: --log-level 6 \
                                                             --idle-exit 0 --client-log-level 6 --client-colour
    

You may swap out stdout: to a file per service, if that makes things easier for you. With all these services started, you have the full stack manually started. Lets see what happens when you now start a VPN connection.

@Nokodoko
Copy link

Nokodoko commented Mar 15, 2023

vpnLog.txt
I can see we are working on a solution, but I thought I might add my logs as I have had the same issue over the past 48 hours. I've attached my log file which is equally as scare but there are some differences. For additional context I am receiving the same error as Jipok about dbus method UserInputProvide not existing.

kernel: 6.2.6-arch1-1

Notable responses to starting the stack manually:

[INFO] Dropping root group privileges to openvpn
[INFO] Dropping root user privileges to openvpn
OpenVPN3/Linux git:makepkg:33da965fa4151a05 (openvpn3-service-sessionmgr)
OpenVPN core 3.git:HEAD:04af83e0 linux x86_64 64-bit
Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved.
2023-03-15 15:06:36  Session Manager DEBUG: SessionManagerObject registered on 'net.openvpn.v3.sessions': /net/openvpn/v3/sessions
2023-03-15 15:06:36  Session Manager INFO: Shutting down
terminate called after throwing an instance of 'DBusException'
  what():  openvpn3-service-sessionmgr could not register 'net.openvpn.v3.sessions' on the D-Bus
zsh: IOT instruction  sudo /usr/libexec/openvpn3-linux/openvpn3-service-sessionmgr --log-file   6  

Also, I was unable to run the backend starter with a log file, the --log-file flag was not recognized, so here is the output from trying to run the backend starter, sans log:

OpenVPN3/Linux git:makepkg:33da965fa4151a05 (openvpn3-service-backendstart)
OpenVPN core 3.git:HEAD:04af83e0 linux x86_64 64-bit
Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved.
terminate called after throwing an instance of 'DBusProxyAccessDeniedException'
zsh: IOT instruction  sudo /usr/libexec/openvpn3-linux/openvpn3-service-backendstart --idle-exit 0 

For completion here is the output of trying to run the backend with the log file:

sudo /usr/libexec/openvpn3-linux/openvpn3-service-backendstart --log-file stdout: --log-level 6 \
                                                         --idle-exit 0 --client-log-level 6 --client-colour
/usr/libexec/openvpn3-linux/openvpn3-service-backendstart: unrecognized option '--log-file'

@dsommers
Copy link
Member

dsommers commented Mar 15, 2023

  openvpn3-service-sessionmgr could not register 'net.openvpn.v3.sessions'

This one indicates that there is another process already holding that bus name (net.openvpn.v3.sessions) or that the D-Bus daemon/broker is not allowing it. Double check that no processes are residing in the background. Double check with busctl, if you have that available.

 /usr/libexec/openvpn3-linux/openvpn3-service-backendstart: unrecognized option '--log-file'

Oh, sorry. It should be --client-log-file.

 terminate called after throwing an instance of 'DBusProxyAccessDeniedException'

This is a really odd issue. It begins to smell like the D-Bus policies are not properly installed. And this is probably the root cause of why you can't get the session started.

Is it long time since you rebooted your system - in regards to when you installed/upgraded OpenVPN 3 Linux?

@Nokodoko
Copy link

Nokodoko commented Mar 15, 2023

I've restarted several times. I also have the program on several machines each with independent installs of arch (don't judge...).

Openvpn seems to work with older kernels, though right now the certificate for the older kernel that I have available is expired, so I cannot install on my nth machine. Prior to this, my other machines were working fine, then the update and now they are all failing with the same error. I don't want to jump to saying it's a kernel bug though.

I'll check busctl and report back

This is the output of busctl with grep for vpn:

net.openvpn.v3.backends          - -               -                (activatable) -                         -       -
net.openvpn.v3.configuration     - -               -                (activatable) -                         -       -
net.openvpn.v3.log               - -               -                (activatable) -                         -       -
net.openvpn.v3.netcfg            - -               -                (activatable) -                         -       -
net.openvpn.v3.sessions          - -               -                (activatable) -                         -       -

it looks like no vpn services are running. I ran a capture of the bus stream when trying to connect, but after ditching all of the private material there wasn't much too see.

I don't know much about dbus policies. I'm looking into that, but I'm getting the same error on isolated systems, as well as the OP. Are these policies set with kernel updates? -- I performed several kernel rollbacks as well as installing different versions of openvpn via tags and still the same error. (These steps included system restarts as well)

@dsommers
Copy link
Member

Okay, I'll try to install Arch somewhere and try it out myself. This is just too much surprising.

@dsommers
Copy link
Member

Just a very quick update. I've been able to reproduce the issue on what I believe is a fairly up-to-date Arch installation. There is a crash in the openvpn3-service-client process which causes this misbehaviour. But I have not yet been able to spot the issue yet, as it happens very early in the glib2 library for some reason.

@isac322
Copy link

isac322 commented Mar 16, 2023

I think glib2 2.76.0 (updated at 3/11) is not compatible with openvpn3. https://github.com/archlinux/svntogit-packages/commits/packages/glib2/trunk
openvpn3-servic crashes whenever user name is entered.

 3월 16 21:26:15 bhyoo-desktop systemd-coredump[11772]: [🡕] Process 11706 (openvpn3-servic) of user 967 dumped core.
                                                         
                                                         Stack trace of thread 11706:
                                                         #0  0x00007f529dba6981 g_type_check_instance_is_fundamentally_a (libgobject-2.0.so.0 + 0x39981)
                                                         #1  0x00007f529db8f18e g_object_unref (libgobject-2.0.so.0 + 0x2218e)
                                                         #2  0x00007f529d3349dd n/a (libglib-2.0.so.0 + 0x549dd)
                                                         #3  0x00007f529d3390c0 n/a (libglib-2.0.so.0 + 0x590c0)
                                                         #4  0x00007f529d33ac30 g_main_context_dispatch (libglib-2.0.so.0 + 0x5ac30)
                                                         #5  0x00007f529d3975d9 n/a (libglib-2.0.so.0 + 0xb75d9)
                                                         #6  0x00007f529d33a0cf g_main_loop_run (libglib-2.0.so.0 + 0x5a0cf)
                                                         #7  0x000055a3c7178e70 n/a (openvpn3-service-client + 0x3fe70)
                                                         #8  0x000055a3c717b0e2 n/a (openvpn3-service-client + 0x420e2)
                                                         #9  0x000055a3c72620ee n/a (openvpn3-service-client + 0x1290ee)
                                                         #10 0x000055a3c716e1ce n/a (openvpn3-service-client + 0x351ce)
                                                         #11 0x00007f529c83c790 n/a (libc.so.6 + 0x23790)
                                                         #12 0x00007f529c83c84a __libc_start_main (libc.so.6 + 0x2384a)
                                                         #13 0x000055a3c7173095 n/a (openvpn3-service-client + 0x3a095)
                                                         
                                                         Stack trace of thread 11709:
                                                         #0  0x00007f529c9139df __poll (libc.so.6 + 0xfa9df)
                                                         #1  0x00007f529d39753f n/a (libglib-2.0.so.0 + 0xb753f)
                                                         #2  0x00007f529d33a0cf g_main_loop_run (libglib-2.0.so.0 + 0x5a0cf)
                                                         #3  0x00007f529d53ae4c n/a (libgio-2.0.so.0 + 0x10fe4c)
                                                         #4  0x00007f529d3687c5 n/a (libglib-2.0.so.0 + 0x887c5)
                                                         #5  0x00007f529c89ebb5 n/a (libc.so.6 + 0x85bb5)
                                                         #6  0x00007f529c920d90 n/a (libc.so.6 + 0x107d90)
                                                         
                                                         Stack trace of thread 11707:
                                                         #0  0x00007f529c9190dd syscall (libc.so.6 + 0x1000dd)
                                                         #1  0x00007f529d38ba35 g_cond_wait (libglib-2.0.so.0 + 0xaba35)
                                                         #2  0x00007f529d304fc4 n/a (libglib-2.0.so.0 + 0x24fc4)
                                                         #3  0x00007f529d36a43e n/a (libglib-2.0.so.0 + 0x8a43e)
                                                         #4  0x00007f529d3687c5 n/a (libglib-2.0.so.0 + 0x887c5)
                                                         #5  0x00007f529c89ebb5 n/a (libc.so.6 + 0x85bb5)
                                                         #6  0x00007f529c920d90 n/a (libc.so.6 + 0x107d90)
                                                         
                                                         Stack trace of thread 11708:
                                                         #0  0x00007f529c9139df __poll (libc.so.6 + 0xfa9df)
                                                         #1  0x00007f529d39753f n/a (libglib-2.0.so.0 + 0xb753f)
                                                         #2  0x00007f529d338382 g_main_context_iteration (libglib-2.0.so.0 + 0x58382)
                                                         #3  0x00007f529d3383d2 n/a (libglib-2.0.so.0 + 0x583d2)
                                                         #4  0x00007f529d3687c5 n/a (libglib-2.0.so.0 + 0x887c5)
                                                         #5  0x00007f529c89ebb5 n/a (libc.so.6 + 0x85bb5)
                                                         #6  0x00007f529c920d90 n/a (libc.so.6 + 0x107d90)
                                                         ELF object binary architecture: AMD x86-64

@dsommers
Copy link
Member

Thanks, @isac322! This matches very well the same I see. Unfortunately debugging glib2 is painful, but needed now.

@remanifest
Copy link

Thank you all. I was able to get openvpn3 to work again by downgrading glib2 to 2.74.6. Will keep an eye on this thread. If there's anything I can do to help, I'm happy to.

@Jipok
Copy link
Author

Jipok commented Mar 16, 2023

Problem solved with:
sudo downgrade 'glib2=2.74.6'
downgrade available on aur.
I also don't recommend ignoring the glib2 upgrade and trying to upgrade the system afterwards.

@Nokodoko
Copy link

Thanks for all of the help. I'm going to point the Arch forum here to see if we can get some assistance with glib2 library. I really appreciate all the help!

@pagondel
Copy link

Downgrading to 'glib2=2.74.6' broke my system (won't boot), had to reinstall glib from arch-chroot

@remanifest
Copy link

remanifest commented Mar 20, 2023

Downgrading to 'glib2=2.74.6' broke my system (won't boot), had to reinstall glib from arch-chroot

That seems odd. Can you please provide the output for journalctl -b -1 | grep -E "glib"?

EDIT: this is the wrong forum for troubleshooting the above. Please start a thread in the Arch Linux forums with the output of the above, and I'm sure someone with some more knowledge than me can help further.

@pagondel
Copy link

Downgrading to 'glib2=2.74.6' broke my system (won't boot), had to reinstall glib from arch-chroot

That seems odd. Can you please provide the output for journalctl -b -1 | grep -E "glib"?

EDIT: this is the wrong forum for troubleshooting the above. Please start a thread in the Arch Linux forums with the output of the above, and I'm sure someone with some more knowledge than me can help further.

Oh, I'm sorry, that wasn't meant as an ask for troubleshooting, but as a warning to anyone who tries to downgrade to be prepared to restore the glib2 version in case that what happened to me, happens to them ;)

@sw1nn
Copy link

sw1nn commented Mar 21, 2023

There has been a change in glib in how a NULL GMainContext is documented in various functions

The following patch, prevents the service client crashing, but connections don't get established, so it's not the whole story. I suspect that the use of contexts may need revisiting, but I have little knowledge of glib, so this could be a red herring.

diff --git a/src/client/openvpn3-service-client.cpp b/src/client/openvpn3-service-client.cpp
index bff67ba..cfcf3ff 100644
--- a/src/client/openvpn3-service-client.cpp
+++ b/src/client/openvpn3-service-client.cpp
@@ -1689,8 +1689,12 @@ void start_client_thread(pid_t start_pid,
     backend_service.DisableSocketProtect(disable_socket_protect);
     backend_service.Setup();

+
     // Main loop
-    GMainLoop *main_loop = g_main_loop_new(NULL, FALSE);
+    GMainContext *client_context = g_main_context_new();
+    g_main_context_push_thread_default(client_context);
+
+    GMainLoop *main_loop = g_main_loop_new(client_context, FALSE);
     g_unix_signal_add(SIGINT, stop_handler, main_loop);
     g_unix_signal_add(SIGTERM, stop_handler, main_loop);
     g_unix_signal_add(SIGHUP, stop_handler, main_loop);
@@ -1698,6 +1702,8 @@ void start_client_thread(pid_t start_pid,
     g_main_loop_run(main_loop);
     usleep(500);
     g_main_loop_unref(main_loop);
+    g_main_context_pop_thread_default(client_context);
+    g_main_context_unref(client_context);
 }

@dsommers
Copy link
Member

Thank you so much, @sw1nn, for digging up these details! I will definitely dig into this and put this in the scope for the v21 release. When I have a fix available in the git tree, I will ensure this ticket gets updated!

@bodsch
Copy link

bodsch commented Mar 23, 2023

Problem solved with: sudo downgrade 'glib2=2.74.6' downgrade available on aur. I also don't recommend ignoring the glib2 upgrade and trying to upgrade the system afterwards.

The downgrade works to be able to use OpenVPN.

However, I get problems with Firefox (or other GTK applications).

So it's only a temporary workaround.

@sw1nn
Copy link

sw1nn commented Mar 23, 2023

it is possible to downgrade glib2, connect the VPN, then upgrade glib2 back to the original version to allow other apps to run correctly. Obviously this is only practical if you are not starting and stopping the vpn a lot.

FYI, I tried wrapping the invocations of the various OpenVPN dbus-services in a script that set LD_PRELOAD to point to a local copy of glib2.74.6, but this didn't work. I wonder if perhaps the problem is not actually in openvpn, but rather in dbus (perhaps caused by the way that OpenVPN call it).

@bodsch
Copy link

bodsch commented Mar 24, 2023

t is possible to downgrade glib2, connect the VPN, then upgrade glib2 back to the original version to allow other apps to run correctly. Obviously this is only practical if you are not starting and stopping the vpn a lot.

This is my approach so far.

Only, unfortunately, I have to change VPNs very often, so of course this can't be a permanent state.

FYI, I tried wrapping the invocations of the various OpenVPN dbus-services in a script that set LD_PRELOAD to point to a local copy of glib2.74.6, but this didn't work. I wonder if perhaps the problem is not actually in openvpn, but rather in dbus (perhaps caused by the way that OpenVPN call it).

That's a good question ... which I can't answer, unfortunately. :)

@dsommers
Copy link
Member

This week has been too busy to dig into this, but I'll try to do that next week. We need to fix the glib2 integration anyhow.

@GoddessEyes

This comment was marked as off-topic.

@remanifest

This comment was marked as off-topic.

@franchb
Copy link

franchb commented Mar 31, 2023

I can observe the same issue on Fedora 38 beta

$ sudo dnf list --installed | grep glib2
geocode-glib2.x86_64                                 3.26.4-3.fc38                       @updates-testing                                   
glib2.i686                                           2.76.1-1.fc38                       @fedora                                            
glib2.x86_64                                         2.76.1-1.fc38                       @fedora                                            
glib2-devel.x86_64                                   2.76.1-1.fc38                       @fedora                                            
pulseaudio-libs-glib2.x86_64                         16.1-4.fc38                         @fedora    

@DamianK
Copy link

DamianK commented Apr 3, 2023

I have the same issue here, and downgrading Glib2 as a temporary solution also works. I also found several people are moving from Openbox to Ice WM just because the Glib2 update made Openbox crash. Eg: https://allencch.wordpress.com/2023/03/20/switching-from-openbox-to-icewm/

@Michael-Coetzee
Copy link

The openvpn(not openvpn3) bin still works. I also ran into the same issue, i guess this for people who use the access server instead of core.

@DamianK
Copy link

DamianK commented Apr 5, 2023

In the last update tonight this was fixed. Not really sure which package did it, but I don't see the problem Dbus problem today.

@dsommers

This comment was marked as resolved.

@serboox

This comment was marked as resolved.

@dsommers dsommers changed the title OpenVPN 3 Linux does not work with glib2-2.76 and newer (ArchLinux, Ubuntu 23.04, Fedora 38) OpenVPN 3 Linux does not work with glib2-2.76 and newer (ArchLinux, Ubuntu 23+, Fedora 38+) Apr 26, 2024
@flichtenheld
Copy link
Member

New Dev packages for Ubuntu are available in my PPA at https://launchpad.net/~djpig/+archive/ubuntu/openvpn for Jammy (22.04), Mantic (23.10), and Noble (24.04).
DCO support works again with these if you have the DCO module installed.

@luke-hill
Copy link

@flichtenheld - This works perfectly. However my issue is more about "knowing" this.

The solution took 5 mins to implement, but 2 hours to find? Is there a way this can get baked into the original apt?

@dsommers
Copy link
Member

dsommers commented May 8, 2024

@luke-hill What we have in the PPA is a development snapshot. We don't have a full release just yet. I am working hard to complete the migration of the last services and the command line tools. That's the requirement to do the final v22_dev release.

The reason is more obvious when you run openvpn3-admin version --services. You will see that there are some components running v21. This is achieved in these development snapshot by first compiling the v21 release and then switch to the development branch and do another build and add those new components from that build. This is not a sustainable solution in the longer run.

Unfortunately, migrating the old code to the new one based on the GDBus++ framework has become a lot harder than anticipated in advance. On the positive side, 4 of 7 backend services has now been migrated and I'm fully into migrating the 5th service now. And I hope the migration of the command line tools will be fairly easy as most of the grunt work is hopefully already done.

But if anyone is curious and want a challenge .... I'm open for more collaborators! The openvpn3-service-configmgr and command line tools shouldn't be that difficult (at least compared to the completed ones). And there are now quite some migrated code to look at too. Plus I'm available to those willing to help out. Just shoot me an e-mail.

@ValeriyDP

This comment was marked as off-topic.

@dsommers

This comment was marked as off-topic.

@detached
Copy link

Just a quick update on Fedora: I updated my machine to Fedora 40 and the copr dev builds are working like a charm.
I am using a openvpn3 server with webauth.

@dsommers
Copy link
Member

Just a quick update on Fedora: I updated my machine to Fedora 40 and the copr dev builds are working like a charm. I am using a openvpn3 server with webauth.

Thanks a lot, @detached! Such feedbacks are really valuable for us!

@dsommers
Copy link
Member

dsommers commented May 14, 2024

Just a very little progress report ...

The openvpn3-service-log service (it will be renamed from -logger) is progressing well. Basic service logging functionality seems to work well. Working on the log-proxy functionality so end-users can get live log events for their own VPN sessions. I hope to have another development snapshot ready in a few days.

In parallel, the openvpn3-service-configmgr service is being migrated too. This started very recently, so there is not much more to report here yet. And we're looking into getting the openvpn3-service-aws service migrated too, even though, that might not be available in the first v22_dev release.

@equant

This comment was marked as off-topic.

@dsommers

This comment was marked as off-topic.

@dsommers
Copy link
Member

dsommers commented May 17, 2024

A little heads-up .... The openvpn3-service-logger service has been migrated (and renamed to openvpn3-service-log), and seems to work well. This will, however, need some extra testing. Code for openvpn3-linux and gdbuspp got pushed out almost a day ago. And I've started the preparing and smoke-testing the Fedora Copr builds. Expect updates comming soon.

The openvpn3-service-configmgr migration is also progressing quickly. If all goes as I hope, we might have completed that migration plus the openvpn3 and openvpn3-admin programs in a couple of weeks. The v22_dev release is truly getting closer to reality. What this release will not include is the openvpn3-service-aws add-on service. That will arrive in the v23 release.

Update: Fedora Copr builds has completed successfully!

@flichtenheld
Copy link
Member

New Dev packages for Ubuntu are available in my PPA at https://launchpad.net/~djpig/+archive/ubuntu/openvpn for Jammy (22.04), Mantic (23.10), and Noble (24.04). These include the migrated openvpn3-service-log.

@dsommers
Copy link
Member

A quick report on the progress ...

All the crucial components are now fully migrated to GDBus++. And it seems to behave well now. I've spend the last few days to also fix several bugs which appeared during more heavy testing. But there might be more bugs hiding. The only service not migrated is the AWS-VPC integration add-on. This will be migrated in a later release.

The last few pieces now is basically to merge everything to master and finally wrap up the v22_dev release together with the first proper v1 release of GDBus++.

As a teaser ....

$ openvpn3-admin version --services
OpenVPN 3 D-Bus services:

  - Client backend starter service
    openvpn3-service-backendstart-dev:       dev_gdbuspp-migration:bfd15931af101484__m

  - Configuration Service
    openvpn3-service-configmgr-dev:          dev_gdbuspp-migration:bfd15931af101484__m

  - Log Service
    openvpn3-service-log-dev:                dev_gdbuspp-migration:bfd15931af101484__m

  - Network Configuration Service
    openvpn3-service-netcfg-dev:             dev_gdbuspp-migration:bfd15931af101484__m

  - Session Manager Service
    openvpn3-service-sessionmgr-dev:         dev_gdbuspp-migration:bfd15931af101484__m

$ openvpn3-admin version
openvpn3-linux dev_gdbuspp-migration:bfd15931af101484__m (openvpn3-admin)
OpenVPN core 3.git:release_3.8.5:03236ed7 linux x86_64 64-bit [DCO] built on May 23 2024 22:50:31
Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved.

$ openvpn3 version
openvpn3-linux dev_gdbuspp-migration:bfd15931af101484__m (openvpn3)
OpenVPN core 3.git:release_3.8.5:03236ed7 linux x86_64 64-bit [DCO] built on May 23 2024 22:50:31
Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved.

@guy-keller
Copy link

Hi @dsommers

Thanks for providing an update on this and for your work on the openvpn3 client for Linux; it is much appreciated.
I have been using the dev branch on Fedora 40 with MFA and it has been super stable.

Cheers!

@dsommers
Copy link
Member

dsommers commented May 27, 2024

We are wrapping up the v22_dev release together with the first release of the GDBus++ project (released as version 1).

The target distributions for v22_dev is Fedora 39+ (Fedora 38 went EOL last week) and Ubuntu 24.04. Ubuntu 23.10 will most likely not see any packages, as that goes EOL in roughly 4 weeks. The ArchLinux distribution will need to pick up this release and package, together with the new GDBus++ dependency.

The v22_dev release will go through some basic QA testing internally before we will finally announce the release. In the mean time, I will do some efforts to provide at least one more devsnapshot build and I hope @flichtenheld can provide an update to the PPA repository too. This will hopefully happen late this week or sometime next week.

For those eager to build and test themselves ... The master branches for both GDBus++ and openvpn3-linux on codeberg.org has been pushed out now.

@rzvncj
Copy link

rzvncj commented May 28, 2024

Hi! I've added a gdbuspp-git AUR package here.

I hope it's helpful, and please don't hesitate to point out any problems you might be having using it!

FWIW, I've also written a small local PKGBUILD file for openvpn3-linux-git. That AUR package name is taken, though, so if the maintainer or anyone else is interested, here's the whole thing:

# Maintainer: Răzvan Cojocaru <rzvncj@gmail.com>

pkgname=openvpn3-linux-git
pkgver=master_09acc35b48bcb44c
pkgrel=1
pkgdesc="Next generation OpenVPN implementation"
arch=('x86_64')
url="https://codeberg.org/OpenVPN/openvpn3-linux/"
license=('AGPLv3')
groups=()
depends=('gdbuspp-git' 'jsoncpp' 'tinyxml2' 'libcap-ng' 'openssl')
makedepends=('meson')
source=("$pkgname::git+https://codeberg.org/OpenVPN/openvpn3-linux.git")
sha256sums=('SKIP')
provides=("$pkgname")
conflicts=("$pkgname")

pkgver() {
  cd "$srcdir/$pkgname"
  ./scripts/get-version --prod-version
}

build() {
  cd "$srcdir/$pkgname"
  git submodule update --init
  arch-meson --auto-features auto --wrap-mode default build
  meson compile -C build
}

package() {
  cd "$srcdir/$pkgname/"
  meson install -C build --destdir "$pkgdir"
}

@remanifest
Copy link

Hi! I've added a gdbuspp-git AUR package here.

I hope it's helpful, and please don't hesitate to point out any problems you might be having using it!

FWIW, I've also written a small local PKGBUILD file for openvpn3-linux-git. That AUR package name is taken, though, so if the maintainer or anyone else is interested, here's the whole thing:

# Maintainer: Răzvan Cojocaru <rzvncj@gmail.com>

pkgname=openvpn3-linux-git
pkgver=master_09acc35b48bcb44c
pkgrel=1
pkgdesc="Next generation OpenVPN implementation"
arch=('x86_64')
url="https://codeberg.org/OpenVPN/openvpn3-linux/"
license=('AGPLv3')
groups=()
depends=('gdbuspp-git' 'jsoncpp' 'tinyxml2' 'libcap-ng' 'openssl')
makedepends=('meson')
source=("$pkgname::git+https://codeberg.org/OpenVPN/openvpn3-linux.git")
sha256sums=('SKIP')
provides=("$pkgname")
conflicts=("$pkgname")

pkgver() {
  cd "$srcdir/$pkgname"
  ./scripts/get-version --prod-version
}

build() {
  cd "$srcdir/$pkgname"
  git submodule update --init
  arch-meson --auto-features auto --wrap-mode default build
  meson compile -C build
}

package() {
  cd "$srcdir/$pkgname/"
  meson install -C build --destdir "$pkgdir"
}

Thank you! Compiled and installed without issue. Testing is solid.

I did need to remove my preexisting openvpn3 files from the filesystem before install.

One issue I ran into was that I imported another instance of my config (stupidly), and now I can't "undo" that because it gets confused that "More than one configuration profile was found with the given name", even if I try to dump that config. My workaround was to rename the profile on the filesystem, and then use that renamed config.

Ideally, in another version, it'll just alert the user that the config is already imported.

@dsommers
Copy link
Member

One issue I ran into was that I imported another instance of my config (stupidly), and now I can't "undo" that because it gets confused that "More than one configuration profile was found with the given name", even if I try to dump that config. My workaround was to rename the profile on the filesystem, and then use that renamed config.

You can fix such issues by using the D-Bus path to the configuration. Each configuration profile has a unique path. To find the path currently, use the openvpn3 configs-list --verbose listing. Then you can use the --config-path argument instead of --config.

Ideally, in another version, it'll just alert the user that the config is already imported.

That's a good idea! That's definitely something to implement in a later version.

Thanks a lot for the feedback!

@dsommers dsommers pinned this issue May 29, 2024
@dsommers
Copy link
Member

Just another quick update. I wanted to provide some updated dev-snapshots, but I've not been able to do that this week.

Our internal QA has started smoke testing and running some various automated tests against the current code base. And lots of small cruft and other minor improvements has been added and improved. A few issues in GDBus++ has also been fixed. Basically, the code is stabilising quite nicely now.

I've just pushed out updated master branches for both openvpn3-linux and GDBus++. And this is the code our internal QA will poke more at next week. I'm not sure I can promise a devsnapshot in the meantime until the release, but if I get a chance to do it - I'll get that done too! My priority is to quickly fix issues QA finds so we can get them tested and complete this release as soon as possible.

Also, lots of thanks to @rzvncj who provided the needed pieces to have GDBus++ packaged for Arch Linux - and it seems the openvpn3-git packaging there is getting some attention again. That's wonderful!

@rzvncj
Copy link

rzvncj commented Jun 1, 2024

Also, lots of thanks to @rzvncj who provided the needed pieces to have GDBus++ packaged for Arch Linux - and it seems the openvpn3-git packaging there is getting some attention again. That's wonderful!

Great to be able to help! Thanks!

@dsommers
Copy link
Member

dsommers commented Jun 5, 2024

I've pushed out an updated devsnapshot build to Fedora Copr .... EPEL-8 and EPEL-9 plus Fedora 39+ are ready any minute now.

This is the first devsnapshot build without any of the old v21 code being compiled. This is all from the latest git master and it provides everything the v21 release contained with one exception - the openvpn3-addon-aws package. That will arrive in the v23 release (it is in the process of being migrated).

This will probably be the last devsnapshot build before the final v22_dev release. QA is almost done with everything and we believe most critical issues found by QA and your testing here have been resolved.

If you have any issues, please file issues in the codeberg service. From the v22_dev release, codeberg.org will be the primary repository. The GitHub and GitLab repositories will just be a mirror of the Codeberg repository and the enabled "hosting features" here on GitHub which can be disabled will be disabled shortly after the v22_dev release.

@remanifest
Copy link

remanifest commented Jun 6, 2024

On Arch Linux, I found managing updates via commits to be a little tedious. I'd have to:

  • Check codeberg for a new commit
  • Compare the current commit against my PKGBUILD
  • Update the PKGBUILD if necessary

Not a huge lift, but I wanted to make life a little easier for myself, and I figured I'd share what I came up with to others here. Huge thanks to @rzvncj for the PKGBUILD.

To make life easier for myself, I created this shell script and set it to executable, then put it in the same directory as my PKGBUILD:

#!/usr/bin/sh

# Global Variables
DEVELOPER=OpenVPN # codeberg
PROJECT=openvpn3-linux # codeberg
LOCALPROJECT=openvpn3-linux-git # local project name
LOCALPATH=$HOME/git/$LOCALPROJECT # local project path

# Get the latest commit hash of the above project from Codeberg's API, and store that hash to the "latestCommit" variable.
latestCommit=$(curl --silent "https://codeberg.org/api/v1/repos/$DEVELOPER/$PROJECT/commits" | jq -r '.[0].sha[0:16]')

# Use grep to find out if the latestCommit is the same as what is in the PKGBUILD. Either way, store the grep response to the "grepResponse" variable.
grepResponse=$(grep "$latestCommit" $LOCALPATH/PKGBUILD | awk '{print $1}')

# If the commit hash returned by Codeberg's API matches what is in the PKGBUILD...
if [ "$grepResponse" == "pkgver=master_$latestCommit" ]; then
    # Give the option to download the package anyway
    echo -en "$PROJECT latest commit is the \033[38;0;32msame as current\033[0m.\nDo you still want to download it? (y/n): "
    read toDownloadOrNotToDownload

    # Convert toDownloadOrNotToDownload to lowercase to make evaluation simpler in the if statements, and store the converted value back into the toDownloadOrNotToDownload variable.
    toDownloadOrNotToDownload=$(echo $toDownloadOrNotToDownload | tr '[:upper:]' '[:lower:]')

    # If the choice is to download the package, download it, get the sha256sum, and echo some helpful information
    if [ "$toDownloadOrNotToDownload" == "y" ]; then
        archiveUrl=$(curl --silent -X 'GET' \
            "https://codeberg.org/api/v1/repos/$DEVELOPER/$PROJECT/archive/$latestCommit.tar.gz" \
            -H 'accept: application/octet-stream' --head | grep -i 'link' | sed -e 's/^[^<]*<//' -e 's/>.*$//')
    
        wget -O "${LOCALPATH}/${PROJECT}_master_${latestCommit}.tar.gz" "$archiveUrl" > /dev/null 2>&1
        sha256=$(sha256sum ${LOCALPATH}/${PROJECT}_master_${latestCommit}.tar.gz | awk '{print $1}')
        echo -e "\nSHA256SUM of ${PROJECT}_master_${latestCommit}.tar.gz: \033[38;0;33m$sha256\033[0m\n\n\033[38;0;35m${PROJECT}_master_${latestCommit}.tar.gz\033[0m has been downloaded; delete it when you're done with it.\n"

    # If the choice is to not download the package, dismiss the user.
    elif [ "$toDownloadOrNotToDownload" == "n" ]; then
        echo -e "\nOk, peace out.\n"

    # Otherwise, dismiss the user in a friendly way.
    else
        echo -e "\nSorry, I didn't understand the response. Please try again.\n"
    fi

# If the commit hash returned by Codeberg's API doesn't match what is in the PKGBUILD...
elif [ "$grepResponse" != "pkgver=master_$latestCommit" ]; then
    # Return the new commit hash, and give the option to download it.
    echo -en "Latest commit of $PROJECT is: \033[38;0;31mmaster_$latestCommit\033[0m\nDo you want to download it? (y/n): "
    read toDownloadOrNotToDownload

    # Convert toDownloadOrNotToDownload to lowercase to make evaluation simpler in the if statements, and store the converted value back into the toDownloadOrNotToDownload variable.
    toDownloadOrNotToDownload=$(echo $toDownloadOrNotToDownload | tr '[:upper:]' '[:lower:]')

    # If the choice is to download the package, download it, get and echo the sha256sum, delete the package, then open the PKGBUILD in Sublime Text.
    if [ "$toDownloadOrNotToDownload" == "y" ]; then
        archiveUrl=$(curl --silent -X 'GET' \
            "https://codeberg.org/api/v1/repos/$DEVELOPER/$PROJECT/archive/$latestCommit.tar.gz" \
            -H 'accept: application/octet-stream' --head | grep -i 'link' | sed -e 's/^[^<]*<//' -e 's/>.*$//')
    
        wget -O "${LOCALPATH}/${PROJECT}_master_${latestCommit}.tar.gz" "$archiveUrl" > /dev/null 2>&1
        sha256=$(sha256sum ${LOCALPATH}/${PROJECT}_master_${latestCommit}.tar.gz | awk '{print $1}')

        echo -e "\nSHA256SUM of ${PROJECT}_master_${latestCommit}: \033[38;0;33m$sha256\033[0m\n"
        
        # Update the pkgver in the PKGBUILD
        sed -i "s/pkgver=.*/pkgver=master_$latestCommit/" $LOCALPATH/PKGBUILD

        # Update the sha256sums in the PKGBUILD
        # sed -i "s/sha256sums=.*/sha256sums=('$sha256')/" $LOCALPATH/PKGBUILD

        # rm ${PROJECT}_master_${latestCommit}.tar.gz
        subl $LOCALPATH/PKGBUILD
        echo -e "Pop over and review the PKGBUILD in \033[38;0;32mSublime Text\033[0m.\n"

    # If the choice is to not download the package, dismiss the user.
    elif [ "$toDownloadOrNotToDownload" == "n" ]; then
        echo -e "\nOk, peace out.\n"

    # Otherwise, dismiss the user in a friendly way.
    else
        echo -e "\nSorry, I didn't understand the response. Please try again.\n"
    fi
fi

What this does is:

  • Retrieves the latest commit of openvpn3-linux from Codeberg using their API. We're parsing out the first sha sum, and taking the first 16 characters.
  • Use grep to read the pkgver from the PKGBUILD, then compare values:
  • If the values are the same, we tell the user the values are the same as current, and give the option to download an archive of that commit anyway, if they want to, for whatever reason, using Codeberg's API.
  • If the values are different, we tell the user that there's a new version, and give them the option to download an archive of the commit.
  • We also update the PKGBUILD's pkgver to match the latest commit, using sed.
  • Finally, we open the PKGBUILD in Sublime Text for review.
  • From there, all that's necessary is makepkg -si

For me, this helps reduce steps. Hope it helps others - feel free to use a different editor if you want (nano, vim). This script depends on curl, wget, jq, grep, awk, sed, and sha256sum. Maybe this is overkill, or maybe it helps others :)

@rzvncj
Copy link

rzvncj commented Jun 6, 2024

That's great! I try to update the GDBus++ build as often as possible. You can always ping me (on GitHub, or on the AUR page) and I'll try to update it. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug regression This worked in an earlier release
Projects
None yet
Development

No branches or pull requests