guillaumedsde/alpine-qbittorrent-openvpn

Ivacy

raiichiu opened this issue · 14 comments

Information

Ivacy VPN cannot be used - log as below.

[cont-init.d] 01-setup-permissions: exited 0.,
[cont-init.d] 02-setup-openvpn: executing... ,
Sun Sep 5 23:56:11 2021 TUN/TAP device tun0 opened,
Sun Sep 5 23:56:11 2021 Persist state set to: ON,
INFO: Trying to use OpenVPN provider: IVACY,
svn: E170000: URL 'https://github.com/haugene/docker-transmission-openvpn.git/trunk/openvpn/ivacy' doesn't exist,
ERROR: Could not find OpenVPN configuration "SwedenStockholmUDP" for provider IVACY,
[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.,
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,

Previously worked for the past 6 months. Only stopped working since my last restart of my pi4.

Current setup

raspberry pi 4b 4gb
OMV version 5.6.14-1 (Usul)
Portainer version 2.6.3

| docker image tag (latest) |
| docker image hash (65b44cd270c9)|

docker-compose.yml file

version: "2"
services:
  alpine-qbittorrent-openvpn:
    volumes:
      - /srv/dev-disk-by-uuid-FE4A7B624A7B171D/Media:/downloads
      - /srv/dev-disk-by-uuid-7ab7ef19-68aa-48ae-a12d-a8cc36c1afa7/Config/qBittorent:/config
      - /etc/localtime:/etc/localtime:ro
    environment:
      - OPENVPN_PROVIDER=IVACY r
      - OPENVPN_CONFIG=SwedenStockholmUDP 
      - OPENVPN_USERNAME=######
      - OPENVPN_PASSWORD=######
      - PUID=998 
      - PGID=100 
      - LAN=10.0.0.0/16
    labels:
      - autoheal=true
    ports:
      - "8080:8080"
    cap_add:
      - NET_ADMIN
    image: guillaumedsde/alpine-qbittorrent-openvpn:latest
    restart: unless-stopped

Attempted Fix(es)

re-pulled latest image in portainer
changed Ivacy config to different server

Same issue here but with Mullvad. Worked fine up until this point...

That's because Haugene migrated all the config files to https://github.com/haugene/vpn-configs-contrib.

I'll migrate the repo urls to haugene's new ones when I get some time

@guillaumedsde I created a PR to change the URL as I really want to get this working again,
#85

@guillaumedsde I created a PR to change the URL as I really want to get this working again,
#85

I added comment to your PR, the Dockerfile needs to be updated to.

Thanks for the PRs, I've merged them, could you confirm the problem is fixed after pulling the latest images?

Thanks for the feedback, I'll close the issue, feel free to reopen if the issue is not actually resolved

I could not get it to work. The OVPN repo problem was solved but, now there's another issue with the iptables module.
Logs of my configuration and container: https://paste.centos.org/view/1c29a6af

I built it locally and it was fine. út 14. 9. 2021 v 18:18 odesílatel guillaumedsde @.***> napsal:

Thanks for the PRs, I've merged them, could you confirm the problem is fixed after pulling the latest images? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#84 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATR42BTBYS3BJY7G3GZNETUB5YVLANCNFSM5DO5J2ZA .

Can you tell me how you did that?

I built it locally and it was fine. út 14. 9. 2021 v 18:18 odesílatel guillaumedsde @.***> napsal:

Thanks for the PRs, I've merged them, could you confirm the problem is fixed after pulling the latest images? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#84 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AATR42BTBYS3BJY7G3GZNETUB5YVLANCNFSM5DO5J2ZA .

Can you tell me how you did that?

git clone this repo
cd alpine-qbittorrent-openvpn
git checkout 820edaa759ca6797b59b6eb4fda5db9cb36dd134

in docker-compose.yml change image: image: guillaumedsde/alpine-qbittorrent-openvpn:latest
to  build: .

docker-compose up -d --remove-orphans --force-recreate
docker-compose up -d --remove-orphans --force-recreate

Thank you very much for answering. I built the image as explained, but when I try to start the container I'm getting the same error https://paste.centos.org/view/f1d8e3c6
Am I doing something wrong?

docker-compose up -d --remove-orphans --force-recreate

Thank you very much for answering. I built the image as explained, but when I try to start the container I'm getting the same error https://paste.centos.org/view/f1d8e3c6
Am I doing something wrong?

Probably this could help?
https://gitlab.alpinelinux.org/alpine/aports/-/issues/10861

It looks like your host is missing some kernel modules.
EDIT: Just tried latest image and it works for me.

docker-compose up -d --remove-orphans --force-recreate

Thank you very much for answering. I built the image as explained, but when I try to start the container I'm getting the same error https://paste.centos.org/view/f1d8e3c6
Am I doing something wrong?

Probably this could help?
https://gitlab.alpinelinux.org/alpine/aports/-/issues/10861

It looks like your host is missing some kernel modules.
EDIT: Just tried latest image and it works for me.

you're exactly right. I believe because Redhat stopped using iptables, some modules aren't being loaded by default anymore.
For those who check this issue in the future, here's the solution (Centos 8 Stream):

sudo echo "iptable_mangle" > /etc/modules-load.d/iptable_mangle.conf
sudo reboot

Once your machine restart you should see the loaded module and your container should work as expected:

[costaht@srv-octopus ~]$ sudo systemctl status systemd-modules-load.service 
● systemd-modules-load.service - Load Kernel Modules
   Loaded: loaded (/usr/lib/systemd/system/systemd-modules-load.service; static; vendor preset: disabled)
   Active: active (exited) since Sat 2021-09-18 10:09:40 EDT; 1min 4s ago
     Docs: man:systemd-modules-load.service(8)
           man:modules-load.d(5)
  Process: 636 ExecStart=/usr/lib/systemd/systemd-modules-load (code=exited, status=0/SUCCESS)
 Main PID: 636 (code=exited, status=0/SUCCESS)
    Tasks: 0 (limit: 47428)
   Memory: 0B
   CGroup: /system.slice/systemd-modules-load.service

Sep 18 10:09:40 srv-octopus systemd-modules-load[636]: Module 'msr' is builtin
Sep 18 10:09:40 srv-octopus systemd-modules-load[636]: Inserted module 'iptable_mangle'
Sep 18 10:09:40 srv-octopus systemd[1]: Started Load Kernel Modules.

Once again, thank you very much @Kobtul