Git Product home page Git Product logo

Comments (14)

theendsofinvention avatar theendsofinvention commented on May 12, 2024

I'm having the exact same issue here, also investigating.

from alpine-qbittorrent-openvpn.

JasperMC avatar JasperMC commented on May 12, 2024

Small update from my side: I've found out that the VPN_PROVIDER_HOME variable is created in /etc/cont-init.d/02-setup-openvpn

It basically takes the path to openvpn and appends the name of the provider ( /etc/openvpn/{lowercase_provider_name}. I don't see what's going wrong here as the path does check out.

Upon looking in configure-openvpn.sh I also noticed something in the following code snippet:

if [[ -n $OPENVPN_CONFIG ]]; then
    echo "Downloading user specified config. NORDVPN_PROTOCOL is set to: ${NORDVPN_PROTOCOL}"
    ${VPN_PROVIDER_HOME}/updateConfigs.sh --openvpn-config
elif [[ -n $NORDVPN_COUNTRY ]]; then
    export OPENVPN_CONFIG=$(${VPN_PROVIDER_HOME}/updateConfigs.sh)
else
    export OPENVPN_CONFIG=$(${VPN_PROVIDER_HOME}/updateConfigs.sh --get-recommended)
fi

In the first line of code, it checks if the OPENVPN_CONFIG variable has been passed through. Only then, it should execute the echo and updateConfigs with --openvpn-config argument.

If I do not provide OPENVPN_CONFIG in the Docker env variables, it still passes this check though: It still says "line 12: not found", whereas I would expect it to say "line 14: not found" (because I passed the NORDVPN_COUNTRY instead of OPENVPN_CONFIG) or at least line 16 if all checks fail.

I have no idea what's going wrong here and why it works well in docker-transmission-openvpn.

from alpine-qbittorrent-openvpn.

maxi1134 avatar maxi1134 commented on May 12, 2024

Same issue here! Would love to help testing

from alpine-qbittorrent-openvpn.

gurmukhp avatar gurmukhp commented on May 12, 2024

Also having this issue:

Downloading user specified config. NORDVPN_PROTOCOL is set to: UDP
/var/run/s6/etc/cont-init.d/02-setup-openvpn: /etc/openvpn/nordvpn/configure-openvpn.sh: line 12: /etc/openvpn/nordvpn/updateConfigs.sh: not found
ERROR: Could not find OpenVPN configuration "" for provider NORDVPN
[cont-init.d] 02-setup-openvpn: exited 1.
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.

from alpine-qbittorrent-openvpn.

PwnPeter avatar PwnPeter commented on May 12, 2024

Same, so I use an ovpn file from nordvpn instead.

from alpine-qbittorrent-openvpn.

JasperMC avatar JasperMC commented on May 12, 2024

@guillaumedsde Could you have a look at this issue? I can't seem to figure it out.

from alpine-qbittorrent-openvpn.

JasperMC avatar JasperMC commented on May 12, 2024

Same, so I use an ovpn file from nordvpn instead.

Hi Peter,

Does that work for you as is? I had to change behavior_if_s2_fails from 2 to 0 to make it work, but perhaps that is unnecessary.

from alpine-qbittorrent-openvpn.

guillaumedsde avatar guillaumedsde commented on May 12, 2024

I've merged this PR from @notsureifkevin that might fix the issue, could one of you try and pull the development tag to see if its fixed?

from alpine-qbittorrent-openvpn.

JasperMC avatar JasperMC commented on May 12, 2024

Hi @guillaumedsde,

I can confirm this works! Thanks so much for the merge and many thanks for @notsureifkevin for the pull request.

from alpine-qbittorrent-openvpn.

guillaumedsde avatar guillaumedsde commented on May 12, 2024

Good to hear, I'll leave this issue open for some time for people to test it then I'll merge it in master

from alpine-qbittorrent-openvpn.

Leiasticot avatar Leiasticot commented on May 12, 2024

Hello, I actually have the problem and I don't really understand how to solve it.
Can someone help me pls ?

from alpine-qbittorrent-openvpn.

JasperMC avatar JasperMC commented on May 12, 2024

Hello, I actually have the problem and I don't really understand how to solve it.

Can someone help me pls ?

You need to use a different version of the docker image. Right now you may for example be using :latest, but to try this fix you need to set it to :development

from alpine-qbittorrent-openvpn.

guillaumedsde avatar guillaumedsde commented on May 12, 2024

Thanks @JasperMC :) I've just merged the change into master so it should be available under latest now

from alpine-qbittorrent-openvpn.

jos149 avatar jos149 commented on May 12, 2024
version: "3.3"
services:
  alpine-qbittorrent-openvpn:
    volumes:
      - "/your/storage/path/:/downloads"
      - "/path/to/config/directory:/config"
      - "/etc/localtime:/etc/localtime:ro"
    environment:
      - OPENVPN_PROVIDER=NORDVPN
      - OPENVPN_CONFIG=NL\
      - OPENVPN_USERNAME=user
      - OPENVPN_PASSWORD=pass
      - PUID=1000
      - PGID=1000
      - LAN=192.168.0.0/16
    ports:
      - "8080:8080"
    cap_add:
      - NET_ADMIN
    image: guillaumedsde/alpine-qbittorrent-openvpn:latest

My setup is almost similar. Just wondering; what does the \ do after NL?
And I guess my LAN should be routerip/24 (if subnet mask is 255.255.255.0)

I am trying to get my container to work, however, it fails to boot.
My portainer logs say:

s6-svscan: warning: unable to iopause: Operation not permitted
s6-svscan: warning: executing into .s6-svscan/crash
s6-supervise s6-fdholderd: fatal: unable to iopause: Operation not permitted
s6-svscan panicked! Dropping to a root shell.

from alpine-qbittorrent-openvpn.

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.