You are not logged in.

#1 2020-11-07 17:44:02

aumars
Member
Registered: 2018-01-08
Posts: 23

OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

I want to set up CyberGhost VPN via OpenVPN through NetworkManager. If I run the OPVN file (provided by CyberGhost) with

# openvpn --config /path/to/openvpn.opvn

, it runs completely fine. However, if I import the file using the NetworkManager GUI and turn on the VPN, I get the following log output:

Nov 07 18:32:31 archlinux NetworkManager[475]: <info>  [1604770351.0486] audit: op="connection-activate" uuid="REDACTED" name="cyberghost" pid=1032 uid=1000 result="success"
Nov 07 18:32:31 archlinux NetworkManager[475]: <info>  [1604770351.0522] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",0]: Started the VPN service, PID 1545
Nov 07 18:32:31 archlinux NetworkManager[475]: <info>  [1604770351.0739] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",0]: Saw the service appear; activating connection
Nov 07 18:32:31 archlinux NetworkManager[475]: <info>  [1604770351.1259] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",0]: VPN plugin: state changed: starting (3)
Nov 07 18:32:31 archlinux NetworkManager[475]: <info>  [1604770351.1261] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",0]: VPN connection: (ConnectInteractive) reply received
Nov 07 18:32:31 archlinux nm-openvpn[1556]: DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-256-CBC' to --data-ciphers or change --cipher 'AES-256-CBC' to --data-ciphers-fallback 'AES-256-CBC' to silence this warning.
Nov 07 18:32:31 archlinux nm-openvpn[1556]: WARNING: file 'REDACTED/client.key' is group or others accessible
Nov 07 18:32:31 archlinux nm-openvpn[1556]: OpenVPN 2.5.0 [git:makepkg/a73072d8f780e888+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Oct 27 2020
Nov 07 18:32:31 archlinux nm-openvpn[1556]: library versions: OpenSSL 1.1.1h  22 Sep 2020, LZO 2.10
Nov 07 18:32:31 archlinux nm-openvpn[1556]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Nov 07 18:32:31 archlinux nm-openvpn[1556]: TCP/UDP: Preserving recently used remote address: [AF_INET]REDACTED
Nov 07 18:32:31 archlinux nm-openvpn[1556]: UDP link local: (not bound)
Nov 07 18:32:31 archlinux nm-openvpn[1556]: UDP link remote: [AF_INET]REDACTED
Nov 07 18:32:31 archlinux nm-openvpn[1556]: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Nov 07 18:32:31 archlinux nm-openvpn[1556]: WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1569', remote='link-mtu 1549'
Nov 07 18:32:31 archlinux nm-openvpn[1556]: WARNING: 'auth' is used inconsistently, local='auth SHA256', remote='auth [null-digest]'
Nov 07 18:32:31 archlinux nm-openvpn[1556]: WARNING: 'keysize' is used inconsistently, local='keysize 256', remote='keysize 128'
Nov 07 18:32:31 archlinux nm-openvpn[1556]: [bucharest-rack408.nodes.gen4.ninja] Peer Connection Initiated with [AF_INET]REDACTED
Nov 07 18:32:32 archlinux nm-openvpn[1556]: sitnl_send: rtnl: generic error (-101): Network is unreachable
Nov 07 18:32:32 archlinux nm-openvpn[1556]: TUN/TAP device tun0 opened
Nov 07 18:32:32 archlinux nm-openvpn[1556]: /usr/lib/nm-openvpn-service-openvpn-helper --debug 0 1545 --bus-name org.freedesktop.NetworkManager.openvpn.Connection_2 --tun -- tun0 1500 1552 REDACTED 255.255.255.0 init
Nov 07 18:32:32 archlinux NetworkManager[475]: <info>  [1604770352.8020] manager: (tun0): new Tun device (/org/freedesktop/NetworkManager/Devices/3)
Nov 07 18:32:32 archlinux NetworkManager[475]: <info>  [1604770352.8134] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",0]: VPN connection: (IP Config Get) reply received.
Nov 07 18:32:32 archlinux NetworkManager[475]: <info>  [1604770352.8154] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",3:(tun0)]: VPN connection: (IP4 Config Get) reply received
Nov 07 18:32:32 archlinux NetworkManager[475]: <info>  [1604770352.8161] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",3:(tun0)]: VPN connection: (IP6 Config Get) reply received
Nov 07 18:32:32 archlinux NetworkManager[475]: <warn>  [1604770352.8161] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",3:(tun0)]: invalid IP6 config received!
Nov 07 18:32:32 archlinux NetworkManager[475]: <warn>  [1604770352.8162] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",3:(tun0)]: VPN connection: did not receive valid IP config information
Nov 07 18:32:32 archlinux nm-openvpn[1556]: GID set to nm-openvpn
Nov 07 18:32:32 archlinux nm-openvpn[1556]: UID set to nm-openvpn
Nov 07 18:32:32 archlinux nm-openvpn[1556]: Initialization Sequence Completed
Nov 07 18:32:32 archlinux nm-openvpn[1556]: event_wait : Interrupted system call (code=4)
Nov 07 18:32:32 archlinux nm-openvpn[1556]: net_addr_v4_del: REDACTED dev tun0
Nov 07 18:32:32 archlinux nm-openvpn[1556]: sitnl_send: rtnl: generic error (-1): Operation not permitted
Nov 07 18:32:32 archlinux nm-openvpn[1556]: Linux can't del IP from iface tun0
Nov 07 18:32:32 archlinux NetworkManager[475]: <info>  [1604770352.8190] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",0]: VPN plugin: state changed: started (4)
Nov 07 18:32:32 archlinux NetworkManager[475]: <info>  [1604770352.8190] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",0]: VPN plugin: state changed: stopping (5)
Nov 07 18:32:32 archlinux NetworkManager[475]: <info>  [1604770352.8191] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",0]: VPN plugin: state changed: stopped (6)
Nov 07 18:32:32 archlinux nm-openvpn[1556]: SIGTERM[hard,] received, process exiting

Any server I use, I get "event_wait : Interrupted system call (code=4)". This is running on my desktop computer; my laptop computer has almost the same configuration and works out of the box. There's something wrong with NetworkManager in this machine, I think.

I've tried importing the OPVN file via `nmcli` then running the VPN using the GUI but that doesn't work either.

Last edited by aumars (2020-11-07 20:43:24)

Offline

#2 2020-11-07 23:46:37

drdrewdown
Member
From: Land of Oz
Registered: 2010-11-22
Posts: 21
Website

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

You aren't alone. I'm having the exact issue with PIA VPN + nm-openvpn. It does work, however with ProtonVPN

edit: I think this may apply https://bugs.archlinux.org/task/68480


I downgraded the openvpn package to 2.4.9-2 & my problems went away. Is your laptop updated to 2.5* as well?

Last edited by drdrewdown (2020-11-08 00:36:36)

Offline

#3 2020-11-11 17:12:38

aumars
Member
Registered: 2018-01-08
Posts: 23

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

I downgraded openvpn as well and it worked, thank you. The new 2.5.0-3 release should fix this though.

Offline

#4 2020-11-18 15:34:34

ikaru5
Member
Registered: 2020-11-18
Posts: 1

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Downgrading helped me too! Thank you!!!
But 2.5.0-3 did not do the trick.

Offline

#5 2020-11-19 14:53:41

prince_archine
Member
Registered: 2019-04-05
Posts: 9

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Same

$ sudo pacman -U https://archive.archlinux.org/packages/o/openvpn/openvpn-2.4.9-2-x86_64.pkg.tar.zst

did the trick. I had 2.5.0-3 also which works on another machine with same vpn config but not this one

Last edited by prince_archine (2020-11-19 14:54:24)

Offline

#6 2020-12-16 17:10:41

Demon
Member
From: Republic of Srpska, BA
Registered: 2008-03-02
Posts: 246

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Downgrading to 2.4.9-2 did help, thanks all. But is there a better solution than having old package installed?

Last edited by Demon (2020-12-16 17:10:55)

Offline

#7 2020-12-20 11:51:20

prince_archine
Member
Registered: 2019-04-05
Posts: 9

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

This should be fixed upstream in the distro. Just did a huge upgrade to my system and again had to downgrade the vpn package. This error still isn't fixed.

Offline

#8 2020-12-22 17:43:55

iyanmv
Member
Registered: 2016-11-08
Posts: 39
Website

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Vyprvpn also does not work with latest openvpn but I cannot find any open bugs, all were closed...

Offline

#9 2020-12-29 13:45:15

Ketsui
Member
Registered: 2018-04-16
Posts: 7

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Nov 07 18:32:32 archlinux NetworkManager[475]: <warn>  [1604770352.8161] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",3:(tun0)]: invalid IP6 config received!
Nov 07 18:32:32 archlinux NetworkManager[475]: <warn>  [1604770352.8162] vpn-connection[0x55b63bfc80b0,REDACTED,"cyberghost",3:(tun0)]: VPN connection: did not receive valid IP config information

See https://bugs.archlinux.org/task/68567#comment194596

Nov 07 18:32:32 archlinux nm-openvpn[1556]: GID set to nm-openvpn
Nov 07 18:32:32 archlinux nm-openvpn[1556]: UID set to nm-openvpn
Nov 07 18:32:32 archlinux nm-openvpn[1556]: Initialization Sequence Completed
Nov 07 18:32:32 archlinux nm-openvpn[1556]: event_wait : Interrupted system call (code=4)
Nov 07 18:32:32 archlinux nm-openvpn[1556]: net_addr_v4_del: REDACTED dev tun0
Nov 07 18:32:32 archlinux nm-openvpn[1556]: sitnl_send: rtnl: generic error (-1): Operation not permitted
Nov 07 18:32:32 archlinux nm-openvpn[1556]: Linux can't del IP from iface tun0

To get rid of this permission error you should figure out how to stop NetworkManager from making OpenVPN change its UID and GID as noted in the upgrade notice[0] because OpenVPN will lose the capabilities granted in its .service file if it calls setuid().
[0] https://github.com/archlinux/svntogit-p … all#L7-L11

Offline

#10 2021-01-13 17:17:09

prince_archine
Member
Registered: 2019-04-05
Posts: 9

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Still not fixed. I have set IPv6 in Network Connections for the VPN to Disable or Ignore. Neither works.

Offline

#11 2021-01-14 00:38:52

sierratango
Member
Registered: 2021-01-14
Posts: 1

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

You guys might want to upvote the issue in the GNOME bug tracker to get it noticed by the developers.

Offline

#12 2021-01-21 06:58:12

prince_archine
Member
Registered: 2019-04-05
Posts: 9

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Thanks, just commented there. Again on latest upgrade, the issue still persists.

Offline

#13 2021-03-02 05:43:20

alemedeiros42
Member
Registered: 2019-12-19
Posts: 1

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

sierratango wrote:

You guys might want to upvote the issue in the GNOME bug tracker to get it noticed by the developers.

Bug got fixed, using networkmanager-openvpn-git and openvpn 2.5.1-1 from official repo is working for me (PIA VPN user).

Offline

#14 2021-03-04 11:55:01

prince_archine
Member
Registered: 2019-04-05
Posts: 9

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Excellent. I noticed it is 1.8.13 while official is 1.8.12. I'm going to wait for the official version to make it through and report back here.

Offline

#15 2021-04-01 20:34:50

matt50xxzz
Member
Registered: 2021-04-01
Posts: 6

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Please see my question below. Thanks.

Last edited by matt50xxzz (2021-04-03 18:40:04)

Offline

#16 2021-04-01 20:35:30

matt50xxzz
Member
Registered: 2021-04-01
Posts: 6

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Demon wrote:

Downgrading to 2.4.9-2 did help, thanks all. But is there a better solution than having old package installed?

Hey I'm a Linux newbie using Debian. I'm trying to downgrade to Openvpn 2.4.9. How do I do this? I run the cmd "apt install openvpn=2.4.9" but that doesn't work. I'm sure I need to specify my Debian version after 2.4.9 but I'm not sure how to do this. Please help. Thanks.

Offline

#17 2021-04-07 02:28:51

drdrewdown
Member
From: Land of Oz
Registered: 2010-11-22
Posts: 21
Website

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

matt50xxzz wrote:
Demon wrote:

Downgrading to 2.4.9-2 did help, thanks all. But is there a better solution than having old package installed?

Hey I'm a Linux newbie using Debian. I'm trying to downgrade to Openvpn 2.4.9. How do I do this? I run the cmd "apt install openvpn=2.4.9" but that doesn't work. I'm sure I need to specify my Debian version after 2.4.9 but I'm not sure how to do this. Please help. Thanks.

debian current version is 2.4.7?

Offline

#18 2021-04-07 03:48:45

matt50xxzz
Member
Registered: 2021-04-01
Posts: 6

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

drdrewdown wrote:
matt50xxzz wrote:
Demon wrote:

Downgrading to 2.4.9-2 did help, thanks all. But is there a better solution than having old package installed?

Hey I'm a Linux newbie using Debian. I'm trying to downgrade to Openvpn 2.4.9. How do I do this? I run the cmd "apt install openvpn=2.4.9" but that doesn't work. I'm sure I need to specify my Debian version after 2.4.9 but I'm not sure how to do this. Please help. Thanks.

debian current version is 2.4.7?

Hi drdrewdown, thanks for the quick reply. No sorry I should have clarified. The version of OpenVPN I'm using is 2.5.1 and I'm trying to downgrade to 2.4.9 as you stated in your post so my VPN will work. My current Debian version is 5.10.19. Seems like I'm missing something when I run "apt install openvpn=2.4.9+5.10.19" or variations of that command to downgrade my Openvpn version in order to make Openvpn work. Thanks in advance for your help.

Offline

#19 2021-04-18 09:56:25

prince_archine
Member
Registered: 2019-04-05
Posts: 9

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

It's been 5 months and I'm still getting the same error. Everytime I upgrade, I have to downgrade my version of openvpn. This is getting quite annoying. Anybody have the same issue?

Offline

#20 2021-04-18 15:33:52

matt50xxzz
Member
Registered: 2021-04-01
Posts: 6

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

prince_archine wrote:

It's been 5 months and I'm still getting the same error. Everytime I upgrade, I have to downgrade my version of openvpn. This is getting quite annoying. Anybody have the same issue?

Yes, I’m having the same issue. What cmd did you use to downgrade openvpn to 2.4.9? I can’t seem to figure this out sad I run the cmd ‘apt install openvpn=2.4.9’ but this doesn’t work

Offline

#21 2021-05-11 22:40:37

gr211
Member
Registered: 2020-01-04
Posts: 7

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Would this help anyone ?

https://bbs.archlinux.org/viewtopic.php?id=251883

In short, you statically create and tun0 (or 1, whatever) owned by user nm-openvpn. And configure network manager to use that tun0 interface.

Last edited by gr211 (2021-05-11 22:42:43)

Offline

#22 2021-05-13 02:43:44

matt50xxzz
Member
Registered: 2021-04-01
Posts: 6

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Thanks but this seems to be another issue. The issue in this thread relates to the virtual device having issues with the client ip6 config

Offline

#23 2021-06-19 09:59:04

AllenHong
Member
Registered: 2021-06-13
Posts: 1

Re: OpenVPN -NetworkManager: event_wait : Interrupted system call (code=4)

Has anyone solved this problem?  It has been 7 months, I still have this problem.

Offline

Board footer

Powered by FluxBB