GithubHelp home page GithubHelp logo

Comments (20)

ckgt avatar ckgt commented on August 11, 2024 2

Had same issue. Decided to just build my own docker image using nordvpn client instructions.
Also here are the nordvpn token generation instructions.
Sorry, no time to actually fix whatever is wrong with this image but here are some findings...

Custom build using nordvpn client instructions works fine and shows "connecting to city... you are connected, etc."
There really is no difference in this image except the inclusion of the s6 packages and using the ghcr.io/linuxserver/baseimage-ubuntu:jammy instead of ubuntu:22.04 base image.

I think s6 might be the issue but that's just wild speculation.

You can copy the same nordvpn_login/connect/config/watch scripts over and they work fine to launch with.

from nordvpn.

andymaycoates avatar andymaycoates commented on August 11, 2024 1

I'm having exactly the same issue on my Synology DS918+ with DSM7.

from nordvpn.

jcmschwa avatar jcmschwa commented on August 11, 2024

I think I'm having the same issue. I have not updated my containers in a long time and I am trying to figure out what updates I need to make to my compose file, and I am getting the exact same messages in the logs despite generating a brand new token.

I've attached the full log and my compose file with the token removed.
bubuntux nordvpn invalid token message.txt
bubuntux nordvpn docker compose.txt

from nordvpn.

jcmschwa avatar jcmschwa commented on August 11, 2024

I tried wrapping my token in quotes in my Docker compose editor (in portainer) and the log message became: "We couldn't log you in - the access token is not valid. Please check if you've entered the token correctly. If the issue persists, contact our customer support."

from nordvpn.

spencercnorton avatar spencercnorton commented on August 11, 2024

I am Also having this issue.

[0mInvalid token.

2023/08/12 21:44:49 | stdout | �[0m -    -    �[31mIt's not you, it's us. We're having trouble reaching our servers. If the issue persists, please contact our customer support.

Generated fresh token. same error.

from nordvpn.

sulantha2006 avatar sulantha2006 commented on August 11, 2024

Version 3.16.5, still getting the same error.

vpn_1  | Firewall is up, everything has to go through the vpn
vpn_1  | Enabling connection to secure interface and docker network
vpn_1  | No inet6 network
vpn_1  | [custom-init] No custom files found, skipping...
vpn_1  | [ls.io-init] done.
Whoops! /run/nordvpn/nordvpnd.sock not found.
vpn_1  | Invalid token.

from nordvpn.

ImpatientTomato avatar ImpatientTomato commented on August 11, 2024

Exact same error.

from nordvpn.

philhawthorne avatar philhawthorne commented on August 11, 2024

I was able to move to the newer Docker image on my Synology running DSM6. My docker-compose I used is below, hopefully this is helpful.

vpn:
    container_name: vpn
    image: ghcr.io/bubuntux/nordlynx
    cap_add:
      - NET_RAW
      - NET_ADMIN               # Required
      - SYS_MODULE              # Required for TECHNOLOGY=NordLynx
    devices:
      - /dev/net/tun            # Required
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=1  # Recomended if using ipv4 only
    security_opt:
      - no-new-privileges:true
    environment:                # Review https://github.com/bubuntux/nordvpn#environment-variables
      - PRIVATE_KEY=REDACTED
      - CONNECT=NORDVPN_TO_CONNECT_TO
      - TECHNOLOGY=NordLynx
      - GROUPID=0
      - TZ=Europe/London
      - NETWORK=192.168.1.1/24 #Adjust for your local network
      - ALLOWED_IPS=0.0.0.0/1,128.0.0.0/1
      - NET_LOCAL=10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
      - "POST_UP=ip -4 route add $$(wg | awk -F'[: ]' '/endpoint/ {print $$5}') via $$(ip route | awk '/default/ {print $$3}')"
      - "PRE_DOWN=ip -4 route del $$(route -n | awk '/255.255.255.255/ {print $$1}') via $$(ip route | awk '/default/ {print $$3}')" 
    ports: 
      - 80:80 #Ports to open

Be sure to Install the Wireguard package. Thanks to @b-kamphorst and the others in the discussion here: bubuntux/nordlynx#41

from nordvpn.

TheWhiteWarlock avatar TheWhiteWarlock commented on August 11, 2024

Been working for months without any issues, and now I am getting the same error message as the rest of you without having changed anything....

from nordvpn.

NonalMetal avatar NonalMetal commented on August 11, 2024

Hi there,
I'm facing the same issue after a couple of weeks working fine.
I tried changing the original token both with a new expiring token and an illimited one but still gets stuck
I used the following docker compose on my DS918+ in the Synology Container manager:

version: "3"
services:
vpn:
image: ghcr.io/bubuntux/nordvpn
cap_add:
- NET_ADMIN # Required
- NET_RAW # Required
environment: # Review https://github.com/bubuntux/nordvpn#environment-variables
- TOKEN=e9f2abeb008... # Required
- CONNECT=lu104
- TECHNOLOGY=NordLynx
- NETWORK=192.168.1.0/24 # So it can be accessed within the local network
ports:
- 9880:9880
sysctls:
- net.ipv6.conf.all.disable_ipv6=1 # Recomended if using ipv4 only

I saw that with wireguard package there is a private key variable but i'm unsure of where it should come from (wireguard packacge setup maybe?).
Maybe updating the bubuntux image with the latest nordvpn release would help?
I see there have been messages about a new version up.

from nordvpn.

cstuart1310 avatar cstuart1310 commented on August 11, 2024

Possibly a coincidence but has worked twice in a row to fix this:

Regen a new token
Connect to nordvpn via a standard client (Eg the android app)
Update the token in your container and restart.

Literally no idea why it works but it does!

from nordvpn.

Rageedy avatar Rageedy commented on August 11, 2024

Hi,

Same issue as fellow users have described above. Is there an update?
Using Synology= DS1520+
OS version= DSM 7.2-64570 Update 3
Docker Compose on Portainer (via Stacks)


Bubuntux: https://github.com/sponsors/bubuntux
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 911
User GID: 911
───────────────────────────────────────
No inet6 network
Enabling connection to network 192.xxx.xxx.xxx
RTNETLINK answers: Invalid argument
[custom-init] No custom files found, skipping...
[ls.io-init] done.

A new version of NordVPN is available! Please update the application.

It's not you, it's us. We're having trouble reaching our servers. If the issue persists, please contact our customer support.
Invalid token.
[migrations] started
[migrations] no migrations found
fix-attrs: warning: fix-attrs is deprecated, please fix volume permissions in your container manager instead
Firewall is up, everything has to go through the vpn
Enabling connection to secure interface and docker network
No inet6 network
usermod: no changes
───────────────────────────────────────


| | | | | | | |
| --| | |
| | | | | | | | |
|||| |_| |||||
_____ __ __ _ __ ____
| __ | | | | | | \
| __ -| | | | || | |
|
|__|
|_____|____/
Based on images from linuxserver.io
───────────────────────────────────────
To support the app dev(s) visit:
Bubuntux: https://github.com/sponsors/bubuntux
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
Enabling connection to network 192.xxx.xxx.xxx
User UID: 911
User GID: 911
───────────────────────────────────────
RTNETLINK answers: Invalid argument
[custom-init] No custom files found, skipping...
[ls.io-init] done.

A new version of NordVPN is available! Please update the application.

It's not you, it's us. We're having trouble reaching our servers. If the issue persists, please contact our customer support.
Invalid token.
[migrations] started
[migrations] no migrations found
fix-attrs: warning: fix-attrs is deprecated, please fix volume permissions in your container manager instead
Firewall is up, everything has to go through the vpn
Enabling connection to secure interface and docker network
usermod: no changes
No inet6 network
───────────────────────────────────────


| | | | | | | |
| --| | |
| | | | | | | | |
|||| |_| |||||
_____ __ __ _ __ ____
| __ | | | | | | \
| __ -| | | | || | |
|
|__|
|_____|____/
Based on images from linuxserver.io
───────────────────────────────────────
To support the app dev(s) visit:
Bubuntux: https://github.com/sponsors/bubuntux
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 911
User GID: 911
───────────────────────────────────────
Enabling connection to network 192.xxx.xxx.xxx
RTNETLINK answers: Invalid argument
[custom-init] No custom files found, skipping...
[ls.io-init] done.

A new version of NordVPN is available! Please update the application.

It's not you, it's us. We're having trouble reaching our servers. If the issue persists, please contact our customer support.
Invalid token.


Docker Compose setup:

version: "3"
services:
vpn:
container_name: NordVPN
image: ghcr.io/bubuntux/nordvpn
cap_add:
- NET_ADMIN
- NET_RAW
environment:
- TOKEN=e9f2xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- CONNECT={Country}
- TECHNOLOGY=NordLynx
- NETWORK=192.xxx.xxx.xxx/24
ports:
- 8080:8080
sysctls:
- net.ipv6.conf.all.disable_ipv6=1

from nordvpn.

ProjectVRD avatar ProjectVRD commented on August 11, 2024

Possibly a coincidence but has worked twice in a row to fix this:

Regen a new token Connect to nordvpn via a standard client (Eg the android app) Update the token in your container and restart.

Literally no idea why it works but it does!

I've missed all the discussion on the move towards token authentication.

What is the format to entering the Token into the yaml file, is it the username or the password... or both username and password together as one long string? It isn't documented on the main page for this image.

from nordvpn.

irishpadres avatar irishpadres commented on August 11, 2024

Possibly a coincidence but has worked twice in a row to fix this:

Regen a new token Connect to nordvpn via a standard client (Eg the android app) Update the token in your container and restart.

Literally no idea why it works but it does!

Tried this and doesn't work for me.

from nordvpn.

spencercnorton avatar spencercnorton commented on August 11, 2024

I wanted to throw some additional context in here - I hope this helps, I spent a lot of time and headaches around this issue.

  • originally used this image for my syno - https://hub.docker.com/r/dyonr/qbittorrentvpn/ but ran into issues where WG connections would not work and the container would terminate.

  • Switched to https://github.com/bubuntux/nordvpn and had much more success until I was hit with the "invalid token" issue. I tried all the Logical (and illogical tests) I could think of and found greater success with seemingly odd steps.
    - I found that if I stressed the CPU prior to launching the NordVPN container (higher CPU load) I would see more successful launches.
    - I found that certain connections to certain servers were fine, where as others I could never get to work (using a server in Europe vs South America)
    - I did also experience a similar issue with TCP / UDP configs via dyonr's image (linked above) and the solution was to first give the config files to Syno and have it make a TCP / UDP connection - then have dyonr/QBT use that specific config = 100% success.

    My solution to the token issue was to migrate to Ubuntu on a custom build PC. instantly 100% of the issues are gone. This to me says that the issue is rooted in a Syno process or handling of the wg kernel / connection. in some rounds of testing with GPT :) - I felt like issue had to do with the container "pushing" the Token to the Syno WG kernel too fast - and being "rejected". in particular how the WG kernel handles the storage and management of secret keys?

Some of my observations align with others comments here but the solutions are just as odd as the problem itself.

You can see my compose files here - https://github.com/spencercnorton/globalentry/blob/main/GlobeNet/docker-compose.yml

from nordvpn.

Py9KwZWuNIE1 avatar Py9KwZWuNIE1 commented on August 11, 2024

I have the same issue here, I got the "Invalid token." error, there is any update in this issue?

from nordvpn.

MacBim avatar MacBim commented on August 11, 2024

Make sure you are disconnected from the VPN in the DSM Network Settings

This fixed the issue for me

from nordvpn.

JustDen1234 avatar JustDen1234 commented on August 11, 2024

Running once with a valid token. If I stop the project/container and start it again.... invalid token.

from nordvpn.

zar-ef avatar zar-ef commented on August 11, 2024

Had same issue. Decided to just build my own docker image using nordvpn client instructions. Also here are the nordvpn token generation instructions. Sorry, no time to actually fix whatever is wrong with this image but here are some findings...

Custom build using nordvpn client instructions works fine and shows "connecting to city... you are connected, etc." There really is no difference in this image except the inclusion of the s6 packages and using the ghcr.io/linuxserver/baseimage-ubuntu:jammy instead of ubuntu:22.04 base image.

I think s6 might be the issue but that's just wild speculation.

You can copy the same nordvpn_login/connect/config/watch scripts over and they work fine to launch with.

Care to share your dockerfile or repo?

from nordvpn.

github-actions avatar github-actions commented on August 11, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from nordvpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.