Network-manager stopped connecting to VPN

I have set up a VPN connection, and before I restarted the system it was working.

After a reboot the Network Manage, when I try to establish the connection, fails to do it: its icon in the tray displays that there is an ongoing attempt to establish the connection for about a minute, then a notification pops up

The VPN connection "StrongVPN" failed because the connection attempt timed out.

This information is obviously not enough for troubleshooting, so where should I look for more information?

Check the journal.

journalctl -b -u NetworkManager --no-hostname --no-pager

If this is a OpenVPN connection you can also look with the tag

journalctl -b -u NetworkManager -t nm-openvpn  --no-hostname --no-pager

if the error is directly shown in the OpenVPN log.

1 Like

Thanks! I took a look at these log entries, but I can’t understand what is wrong. Could you take a look, please?

All entries by the first filter, starting from the time when the connection was attempted:

Aug 28 09:20:02 NetworkManager[688]: <info>  [1598595602.0044] audit: op="connection-activate" uuid="b6ce4bff-df36-4d87-a03f-ebd529909f42" name="StrongVPN" pid=1199 uid=1000 result="success"
Aug 28 09:20:02 NetworkManager[688]: <info>  [1598595602.0185] vpn-connection[0x5583bcf040b0,b6ce4bff-df36-4d87-a03f-ebd529909f42,"StrongVPN",0]: Started the VPN service, PID 9866
Aug 28 09:20:02 NetworkManager[688]: <info>  [1598595602.0513] vpn-connection[0x5583bcf040b0,b6ce4bff-df36-4d87-a03f-ebd529909f42,"StrongVPN",0]: Saw the service appear; activating connection
Aug 28 09:20:06 NetworkManager[688]: <info>  [1598595606.3432] vpn-connection[0x5583bcf040b0,b6ce4bff-df36-4d87-a03f-ebd529909f42,"StrongVPN",0]: VPN plugin: state changed: starting (3)
Aug 28 09:20:06 NetworkManager[688]: <info>  [1598595606.3433] vpn-connection[0x5583bcf040b0,b6ce4bff-df36-4d87-a03f-ebd529909f42,"StrongVPN",0]: VPN connection: (ConnectInteractive) reply received
Aug 28 09:20:06 nm-openvpn[9894]: OpenVPN 2.4.9 [git:makepkg/9b0dafca6c50b8bb+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 20 2020
Aug 28 09:20:06 nm-openvpn[9894]: library versions: OpenSSL 1.1.1g  21 Apr 2020, LZO 2.10
Aug 28 09:20:06 nm-openvpn[9894]: WARNING: --ns-cert-type is DEPRECATED.  Use --remote-cert-tls instead.
Aug 28 09:20:06 nm-openvpn[9894]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Aug 28 09:20:06 nm-openvpn[9894]: TCP/UDP: Preserving recently used remote address: [AF_INET]80.246.31.63:443
Aug 28 09:20:06 nm-openvpn[9894]: Attempting to establish TCP connection with [AF_INET]80.246.31.63:443 [nonblock]
Aug 28 09:21:06 nm-openvpn-serv[9866]: Connect timer expired, disconnecting.
Aug 28 09:21:06 nm-openvpn[9894]: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Aug 28 09:21:06 NetworkManager[688]: <warn>  [1598595666.3660] vpn-connection[0x5583bcf040b0,b6ce4bff-df36-4d87-a03f-ebd529909f42,"StrongVPN",0]: VPN connection: connect timeout exceeded.
Aug 28 09:21:06 nm-openvpn[9894]: SIGTERM[hard,init_instance] received, process exiting
Aug 28 09:21:06 NetworkManager[688]: <warn>  [1598595666.3734] vpn-connection[0x5583bcf040b0,b6ce4bff-df36-4d87-a03f-ebd529909f42,"StrongVPN",0]: VPN plugin: failed: connect-failed (1)
Aug 28 09:21:06 NetworkManager[688]: <info>  [1598595666.3736] vpn-connection[0x5583bcf040b0,b6ce4bff-df36-4d87-a03f-ebd529909f42,"StrongVPN",0]: VPN plugin: state changed: stopping (5)
Aug 28 09:21:06 NetworkManager[688]: <info>  [1598595666.3736] vpn-connection[0x5583bcf040b0,b6ce4bff-df36-4d87-a03f-ebd529909f42,"StrongVPN",0]: VPN plugin: state changed: stopped (6)
Aug 28 09:21:06 NetworkManager[688]: <info>  [1598595666.3766] vpn-connection[0x5583bcf040b0,b6ce4bff-df36-4d87-a03f-ebd529909f42,"StrongVPN",0]: VPN service disappeared

Entries from the second filter (pertaining to OpenVPN):

-- Logs begin at Tue 2020-08-25 11:30:53 MSK, end at Fri 2020-08-28 10:03:00 MSK. --
Aug 28 09:20:06 nm-openvpn[9894]: OpenVPN 2.4.9 [git:makepkg/9b0dafca6c50b8bb+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Apr 20 2020
Aug 28 09:20:06 nm-openvpn[9894]: library versions: OpenSSL 1.1.1g  21 Apr 2020, LZO 2.10
Aug 28 09:20:06 nm-openvpn[9894]: WARNING: --ns-cert-type is DEPRECATED.  Use --remote-cert-tls instead.
Aug 28 09:20:06 nm-openvpn[9894]: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Aug 28 09:20:06 nm-openvpn[9894]: TCP/UDP: Preserving recently used remote address: [AF_INET]80.246.31.63:443
Aug 28 09:20:06 nm-openvpn[9894]: Attempting to establish TCP connection with [AF_INET]80.246.31.63:443 [nonblock]
Aug 28 09:21:06 nm-openvpn[9894]: NOTE: UID/GID downgrade will be delayed because of --client, --pull, or --up-delay
Aug 28 09:21:06 nm-openvpn[9894]: SIGTERM[hard,init_instance] received, process exiting

Looks like a timeout. The VPN server is not answering. Try a different server.

1 Like

Thanks!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.