mmnaseri / nordvpn-reconnect

Reconnector for NordVPN client on Linux
21 stars 4 forks source link

Problem communicating with nordvpnd through socket #1

Closed quoimec closed 2 years ago

quoimec commented 2 years ago

Hello, thank you for taking the time to make this, this is such a pain with the current Nord package.

Unfortunately through, I am running into some issues when running this script. I installed the service but came back to find that my vpn connection had been up for 10+ hours and had the DNS issue. I then tried manually running the script and got this response from the logs:

Initializing NordVPN reconnector with a maximum uptime of 4 hours
Desktop notifications are disabled.
Current uptime is 15 hours 30 minutes, which is greater than 4 hours
Attempting to reconnect.
-Attempting to kill process 2243 for service nordvpnd
./nordvpn-reconnect.sh: line 117: kill: (2243) - Operation not permitted
Failed to kill service; it may be that the service is running at a higher privilege than this script
Asking nordvpnd-killer.service to take care of this for us.
Whoops! /run/nordvpn/nordvpnd.sock not found
Whoops! /run/nordvpn/nordvpnd.sock not found
Checking again in 24 minutes

Any thoughts? I don't think I did anything strange when setting up Nord so I am a bit stumped.

Any help much appreciated!

mmnaseri commented 2 years ago

Hi,

Did you ever add your user to the nordvpn group?

sudo usermod -aG nordvpn $USER
quoimec commented 2 years ago

Yep, my user account appears to be part of the NordVPN group

pi@raspberrypi:~ $ groups pi
pi : pi adm dialout cdrom sudo audio video plugdev games users input netdev spi i2c gpio docker nordvpn debian-transmission
mmnaseri commented 2 years ago

I'm not able to reproduce this. Can you actually verify that the socket exists?

stat /run/nordvpn/nordvpnd.sock

and can you check to see if the service is up and running?

pgrep nordvpnd
mmnaseri commented 2 years ago

Did you get this working? Is it possibly related to the NordVPN client issue discussed in #5?

N72826 commented 2 years ago

same issue for me, we're both on a pi. I'm on ubuntu, when I attempted using nord on raspbian os, it was more unstable. I still receive the same message, nord reconnector is incapable of killing the process due to a permission issue despite adding the default user to the nordvpn group. after it is force killed by the sister script (nordvpnd-killer), nord then cannot start correctly without a reboot of the device. I attached a system log to my thread.

mmnaseri commented 2 years ago

@N72826 1e08492c04f46aef0dcc6728645ce97fc1d6e003 should help you out by trying to start up the service after killing it.