chadsr / NordVPN-NetworkManager

A CLI tool for automating the importing, securing and usage of NordVPN (and in the future, more) OpenVPN servers through NetworkManager.
https://pypi.org/project/nordnm/
GNU General Public License v3.0
123 stars 28 forks source link

Failed to retrieve configuration files from NordVPN #114

Open ghost opened 5 years ago

ghost commented 5 years ago

Hi Chad and others, I've been having the problem copy/pasted below since a few days. I can t sync with NordVPN anymore. I tried reinstalling and clearing the configs but to no success. I tried to telnet to downloads.nordcdn.com with port=443 and it works fine.

[phil:~]$ sudo nordnm sync     
[ERROR] [nordnm.utils]: Could not check PyPi for latest version.
     _   _               _ _   _ ___  ___
    | \ | |             | | \ | ||  \/  |
    |  \| | ___  _ __ __| |  \| || .  . |
    | . ` |/ _ \| '__/ _` | . ` || |\/| |
    | |\  | (_) | | | (_| | |\  || |  | |
    \_| \_/\___/|_|  \__,_\_| \_/\_|  |_/   v0.6.1

[WARNING] [nordnm.nordnm]: No OpenVPN configuration files found.
[INFO] [nordnm.nordnm]: Downloading latest NordVPN OpenVPN configuration files to '/home/phil/.nordnm/configs/'.
HTTPSConnectionPool(host='downloads.nordcdn.com', port=443): Read timed out. (read timeout=5)
[ERROR] [nordnm.nordnm]: Failed to retrieve configuration files from NordVPN

Cheers for any help on this :)

ghost commented 5 years ago

I also noticed that https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip takes about 2 minutes for the download to start. Probably that's why the connection is timing out...

ghost commented 5 years ago

After changing TIMEOUT=5 to TIMEOUT=500 in nordapi.py the error changed:

[ERROR] [nordnm.utils]: File is not a zip file
[ERROR] [nordnm.nordnm]: Failed to extract configuration files

It just looks like the server side which nordnm is trying to download from is not uploading the zip file properly. When I try to download the file from the web-browser using the url https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip then it breaks halfway through the download.

ghost commented 5 years ago

Manually downloading ovpn.zip and extracting it to ~/.nordvpn/configs/ seems to have done the trick :)