You are not logged in.
Hi friends,
When I log into my arch setup nordvpn should automatically connect but fails to do so about 75% of the time. I've installed it from the package nordvpn-bin in aur.
$ nordvpn settings
Technology: OpenVPN
Protocol: UDP
Kill Switch: disabled
CyberSec: disabled
Obfuscate: disabled
Notify: enabled
Auto-connect: enabled
DNS: disabled
Here is the output of the systemd nordvpn service:
$ sudo systemctl status nordvpnd.service
● nordvpnd.service - NordVPN Daemon
Loaded: loaded (/usr/lib/systemd/system/nordvpnd.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2020-03-08 08:07:47 AEDT; 52min ago
TriggeredBy: ● nordvpnd.socket
Main PID: 595 (nordvpnd)
Tasks: 21 (limit: 19081)
Memory: 43.8M
CGroup: /system.slice/nordvpnd.service
└─595 /usr/sbin/nordvpnd
Mar 08 08:07:47 delphine systemd[1]: Started NordVPN Daemon.
Mar 08 08:07:47 delphine nordvpnd[595]: 2020/03/08 08:07:47 [Error] failed to renew token: network interface not found
When I check journalctl it seems to me that the NetworkManager finishes its setup after this message. It's as if nordvpnd tries to auto-connect too early. But at the same time if it is auto-connect, I believe it should retry.
I tried to reinstall nordvpn-bin but the result is the same
Many thanks
Last edited by Ramb0 (2020-03-27 02:09:46)
Offline
Adding the following dependency to the nordvpnd.service fixes it for me.:
"Wants=network-online.target"
Offline
Thanks @NewbPlayer123
Your suggestion definitely helped! It now connects most of the time.
However when it fails I now get this message:
Mar 14 09:43:21 delphine nordvpnd[750]: 2020/03/14 09:43:21 [Error] failed to renew token: ntp check failed
It looks like timesyncd was started 5 seconds before nordvpnd though...
Mar 14 09:43:16 delphine audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-timesyncd comm=>
Mar 14 09:43:16 delphine systemd[1]: Reached target System Initialization.
Mar 14 09:43:16 delphine systemd[1]: Started Daily Cleanup of Temporary Directories.
Mar 14 09:43:16 delphine systemd[1]: Reached target System Time Set.
Mar 14 09:43:16 delphine systemd[1]: Reached target System Time Synchronized.
Mar 14 09:43:16 delphine systemd[1]: Started Daily rotation of log files.
Mar 14 09:43:16 delphine systemd[1]: Started Daily man-db regeneration.
Mar 14 09:43:16 delphine systemd[1]: Started Monthly clean packages cache.
Mar 14 09:43:16 delphine systemd[1]: Started Daily verification of password and group files.
Mar 14 09:43:16 delphine systemd[1]: Started Daily locate database update.
Mar 14 09:43:16 delphine systemd[1]: Reached target Timers.
Mar 14 09:43:16 delphine systemd[1]: Listening on D-Bus System Message Bus Socket.
Mar 14 09:43:16 delphine systemd[1]: nordvpnd.socket: TCP_NODELAY failed: Operation not supported
Mar 14 09:43:16 delphine systemd[1]: Listening on NordVPN Daemon Socket.
I believe the "TCP_NODELAY failed" error is just Naggle's algo and is harmless.
Would you have another suggestion?
Many thanks,
Last edited by Ramb0 (2020-03-13 23:05:49)
Offline
I've added dependencies for timesyncd to be fully started before the nordvpn service:
After=time-sync.target
Wants=time-sync.target
Seemed to had worked.
Last edited by Ramb0 (2020-03-27 02:09:29)
Offline