bubuntux / nordlynx

GNU General Public License v3.0
192 stars 41 forks source link

Access Jdownloader by nordlynx KO #140

Closed titou4307 closed 8 months ago

titou4307 commented 1 year ago

Hello

My container is marked Unhealthy and it impossible to access to internet by this container....

Here my config :

version: "3"
services:
  nordlynx:
    image: ghcr.io/bubuntux/nordlynx
    container_name: nordlynx
    cap_add:
      - NET_ADMIN #required
      - NET_RAW # à confirmer
      - SYS_MODULE
    environment:
      - PRIVATE_KEY=fffffffffffffffffffffffffffffffffffffffffffffffffffffff=  #required
      - NET_LOCAL=192.168.1.0/24
      - TZ=Europe/France      
    ports:
      - 3129:3129 # jdownloader MyJdownloader
      - 5800:5800 # jdownloader web interface
      - 5801:5801 # à confirmer
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=1  # Recomended if using ipv4 only
      - net.ipv4.conf.all.src_valid_mark=1 # à confirmer
    restart: unless-stopped

In the log I have this message error :

[ls.io-init] done.
s6-rc: info: service 99-ci-service-check successfully started
[2023-07-08T21:22:03+00:00] Finding the best server...
parse error: Invalid numeric literal at line 1, column 7
[2023-07-08T21:22:15+00:00] Unable to select a server ¯\_(⊙︿⊙)_/¯

So I have a container Jdownloader who access to internet under VPN NordVPN but it not function now I have not change the conf since many month....

Does anyone could help me ?

Thanks

gnijieb commented 10 months ago

Same issue here after an update to latest

[migrations] started
[migrations] no migrations found
[2023-08-18T23:01:53+00:00] Firewall is up, everything has to go through the vpn
───────────────────────────────────────
  _____ __ __ _____ _____ _____ _____ 
 |     |  |  |   __|_   _|     |     |
 |   --|  |  |__   | | | |  |  | | | |
 |_____|_____|_____| |_| |_____|_|_|_|
       _____ __ __ _ __    ____  
      | __  |  |  | |  |  |    \ 
      | __ -|  |  | |  |__|  |  |
      |_____|_____|_|_____|____/ 
  Based on images from linuxserver.io
───────────────────────────────────────
To support the app dev(s) visit:
Bubuntux: https://github.com/sponsors/bubuntux
WireGuard: https://www.wireguard.com/donations/
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID:    154
User GID:    154
───────────────────────────────────────
[2023-08-19T01:01:53+02:00] Enabling connection to eth0 172.21.1.10/24
[2023-08-19T01:01:53+02:00] Enabling connection to secure interfaces
[2023-08-19T01:01:53+02:00] No interface network6 detected
[2023-08-19T01:01:53+02:00] Enabling connection to network 192.168.10.0/24
[2023-08-19T01:01:53+02:00] Enabling connection to network 172.21.1.0/24
[custom-init] No custom files found, skipping...
[ls.io-init] done.
[2023-08-19T01:01:53+02:00] Finding the best server...
parse error: Invalid numeric literal at line 1, column 7
[2023-08-19T01:02:04+02:00] Unable to select a server ¯\_(⊙︿⊙)_/¯

config is

  nordlynx:
    image: "bubuntux/nordlynx:latest"
    container_name: nordlynx
    hostname: nordlynx
    cap_add:
      - NET_ADMIN
    environment:
      - PUID=154
      - PGID=154
      - PRIVATE_KEY=###
      # countrycodes: curl --silent "https://api.nordvpn.com/v1/servers/countries" | jq --raw-output '.[] | [.id, .name] | @tsv'
      #- QUERY=filters\[country_id\]=68
      - NET_LOCAL=192.168.10.0/24,172.21.1.0/24  # So it can be accessed within the local network
      - ALLOWED_IPS=0.0.0.0/0
    ports:
      - 8112:8112 # deluge
      - 9117:9117 # jackett
      - 9091:9091 # transmission
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
      - net.ipv6.conf.all.disable_ipv6=1
    restart: unless-stopped
    networks:
      - frontend
gnijieb commented 10 months ago

Did some digging, I had this problem before.

The culprit is that api.nordvpn.com does not return the expected list of servers, but responds with "429 Too Many Requests". Probably due to the container being restarted or retrying to connect to many times within a short time. I have no idea why this pertains even after I get a new IP every 24 hours.

Did a quick hack for myself by getting the json from the API via being connected through NordVPN and placing that inside the container and using it instead of running the curl queries in the wireguard run script.

github-actions[bot] commented 8 months ago

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.