guillaumedsde / alpine-qbittorrent-openvpn

qBittorrent docker container with OpenVPN client running as unprivileged user on alpine linux
https://guillaumedsde.gitlab.io/alpine-qbittorrent-openvpn/
GNU General Public License v3.0
216 stars 40 forks source link

Latest `python` tagged image on Docker Hub will not start #80

Closed johnbintz closed 3 years ago

johnbintz commented 3 years ago

Information

Latest python tagged image on Docker Hub will not start:

[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...
[cont-finish.d] executing container finish scripts...
[s6-finish] waiting for services.
s6-svwait: fatal: unable to subscribe to events for /var/run/s6/services/s6-fdholderd: Operation not permitted

Current setup

Docker image tag: python docker version:

Server:
 Engine:
  Version:          18.09.1
  API version:      1.39 (minimum version 1.12)
  Go version:       go1.11.6
  Git commit:       4c52b90
  Built:            Fri Sep 13 09:45:43 2019
  OS/Arch:          linux/arm
  Experimental:     false

docker-compose.yml file or docker run command

I use Ansible to configure the container:

  docker_container:
    name: qbittorrent
    image: guillaumedsde/alpine-qbittorrent-openvpn:python
    pull: true
    capabilities:
      - ALL
    env:
      OPENVPN_PROVIDER: "CUSTOM"
      OPENVPN_USERNAME: "<username>"
      OPENVPN_PASSWORD: "<password>"
      PUID: "1000"
      PGID: "1000"
      LAN: "192.168.1.0/24"
      CREATE_TUN_DEVICE: "true"
    ports:
      - "0.0.0.0:8080:8080"
    volumes:
      - "/etc/qbittorrent/config:/config"
      - "/downloads:/config/qBittorrent/downloads"
      - "/etc/localtime:/etc/localtime:ro"
      - "/etc/custom.ovpn:/etc/openvpn/custom/default.ovpn:ro"
    restart_policy: always
    state: started

Attempted Fix(es)

The last hash that wasn't updated this morning, dd4cd24, works, but has no Python support so I can't use search.

TKIPisalegacycipher commented 3 years ago

Having same issue on my end.

Ricardo-0101 commented 3 years ago

I'm seeing the same thing with the latest image, I presume this is related yesterdays commit 3a97f6e. Was working fine with the same config the day before.

2021-08-29T03:03:22.180933459Z [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
2021-08-29T03:03:22.973804801Z [s6-init] ensuring user provided files have correct perms...exited 0.
2021-08-29T03:03:22.990942468Z [fix-attrs.d] applying ownership & permissions fixes...
2021-08-29T03:03:23.131285264Z [cont-finish.d] executing container finish scripts...
2021-08-29T03:03:23.134977877Z [s6-finish] waiting for services.
2021-08-29T03:03:23.430832078Z [s6-finish] sending all processes the TERM signal.
2021-08-29T03:03:26.458908766Z [s6-finish] sending all processes the KILL signal and 

docker-compose.yml

version: "3.6"
services:
  alpine-qbittorrent-openvpn:
    volumes:
      - /mnt/downloads/:/downloads
      - /mnt/temp_downloads:/temp_downloads
      - ${USERDIR}/docker/qbittorrent:/config
      - ${USERDIR}/docker/shared/ovpn/custom.ovpn:/config/openvpn/config.ovpn
      - /etc/localtime:/etc/localtime:ro
    environment:
      - OPENVPN_PROVIDER= #Leave empty if provider not in the supported list
      - OPENVPN_USERNAME=###########
      - OPENVPN_PASSWORD=###########
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
      - QBT_WEBUI_PORT=8090
      - LAN=192.168.0.0/16
    ports:
      - "8090:8090" #Unifi controller uses 8080
    cap_add:
      - NET_ADMIN
    image: guillaumedsde/alpine-qbittorrent-openvpn:latest
    labels:
      - com.centurylinklabs.watchtower.enable=true

Looking at the branches it appears fix-use-alpine-repos-qbittorrent is the next most recent we can pull. Switching to image guillaumedsde/alpine-qbittorrent-openvpn:fix-use-alpine-repos-qbittorrent it seems to be some what happier, it establishes the VPN and I get as far as Sun Aug 29 04:11:13 2021 Initialization Sequence Completed but then keeps looping through the errors below.

INFO: no port updater for provider ,
Error relocating /usr/bin/qbittorrent-nox: _ZNK7QString8splitRefERKS_6QFlagsIN2Qt18SplitBehaviorFlagsEENS3_15CaseSensitivityE: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZN10QJsonArrayC1EOS_: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZN11QJsonObjectC1ESt16initializer_listI5QPairI7QString10QJsonValueEE: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZN8QProcess12splitCommandE11QStringView: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZNK7QString5splitE5QChar6QFlagsIN2Qt18SplitBehaviorFlagsEENS2_15CaseSensitivityE: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZN7QThread4waitE14QDeadlineTimer: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZN10QJsonArrayC1ESt16initializer_listI10QJsonValueE: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZNK7QString8splitRefE5QChar6QFlagsIN2Qt18SplitBehaviorFlagsEENS2_15CaseSensitivityE: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZNK7QString5splitERKS_6QFlagsIN2Qt18SplitBehaviorFlagsEENS3_15CaseSensitivityE: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZN15QAbstractSocket13errorOccurredENS_11SocketErrorE: symbol not found,
INFO: no port updater for provider ,
DataBitz commented 3 years ago

I'm seeing the same thing with the latest image, I presume this is related yesterdays commit 3a97f6e. Was working fine with the same config the day before.

2021-08-29T03:03:22.180933459Z [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
2021-08-29T03:03:22.973804801Z [s6-init] ensuring user provided files have correct perms...exited 0.
2021-08-29T03:03:22.990942468Z [fix-attrs.d] applying ownership & permissions fixes...
2021-08-29T03:03:23.131285264Z [cont-finish.d] executing container finish scripts...
2021-08-29T03:03:23.134977877Z [s6-finish] waiting for services.
2021-08-29T03:03:23.430832078Z [s6-finish] sending all processes the TERM signal.
2021-08-29T03:03:26.458908766Z [s6-finish] sending all processes the KILL signal and 

docker-compose.yml

version: "3.6"
services:
  alpine-qbittorrent-openvpn:
    volumes:
      - /mnt/downloads/:/downloads
      - /mnt/temp_downloads:/temp_downloads
      - ${USERDIR}/docker/qbittorrent:/config
      - ${USERDIR}/docker/shared/ovpn/custom.ovpn:/config/openvpn/config.ovpn
      - /etc/localtime:/etc/localtime:ro
    environment:
      - OPENVPN_PROVIDER= #Leave empty if provider not in the supported list
      - OPENVPN_USERNAME=###########
      - OPENVPN_PASSWORD=###########
      - PUID=${PUID}
      - PGID=${PGID}
      - TZ=${TZ}
      - QBT_WEBUI_PORT=8090
      - LAN=192.168.0.0/16
    ports:
      - "8090:8090" #Unifi controller uses 8080
    cap_add:
      - NET_ADMIN
    image: guillaumedsde/alpine-qbittorrent-openvpn:latest
    labels:
      - com.centurylinklabs.watchtower.enable=true

Looking at the branches it appears fix-use-alpine-repos-qbittorrent is the next most recent we can pull. Switching to image guillaumedsde/alpine-qbittorrent-openvpn:fix-use-alpine-repos-qbittorrent it seems to be some what happier, it establishes the VPN and I get as far as Sun Aug 29 04:11:13 2021 Initialization Sequence Completed but then keeps looping through the errors below.

INFO: no port updater for provider ,
Error relocating /usr/bin/qbittorrent-nox: _ZNK7QString8splitRefERKS_6QFlagsIN2Qt18SplitBehaviorFlagsEENS3_15CaseSensitivityE: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZN10QJsonArrayC1EOS_: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZN11QJsonObjectC1ESt16initializer_listI5QPairI7QString10QJsonValueEE: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZN8QProcess12splitCommandE11QStringView: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZNK7QString5splitE5QChar6QFlagsIN2Qt18SplitBehaviorFlagsEENS2_15CaseSensitivityE: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZN7QThread4waitE14QDeadlineTimer: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZN10QJsonArrayC1ESt16initializer_listI10QJsonValueE: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZNK7QString8splitRefE5QChar6QFlagsIN2Qt18SplitBehaviorFlagsEENS2_15CaseSensitivityE: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZNK7QString5splitERKS_6QFlagsIN2Qt18SplitBehaviorFlagsEENS3_15CaseSensitivityE: symbol not found,
Error relocating /usr/bin/qbittorrent-nox: _ZN15QAbstractSocket13errorOccurredENS_11SocketErrorE: symbol not found,
INFO: no port updater for provider ,

Seeing the same problem. Reverting to dd4cd24 maybe a workaround for now.

Ricardo-0101 commented 3 years ago

Seeing the same problem. Reverting to dd4cd24 maybe a workaround for now.

Yes, pulling guillaumedsde/alpine-qbittorrent-openvpn:dd4cd24 instead of guillaumedsde/alpine-qbittorrent-openvpn:latest works okay.

Ricardo-0101 commented 3 years ago

@guillaumedsde Manichee mentions in their issue https://github.com/guillaumedsde/alpine-qbittorrent-openvpn/issues/82 a similar error with an nginx image. Looking deeper into that it appears our issue is likely related to a bug introduce in Alpine v3.13 (see Alpine Issue 12346) which looks to have been fixed in Alpine v3.14

Commit https://github.com/guillaumedsde/alpine-qbittorrent-openvpn/commit/65ababc14eeda92477a5e8051ef500fae356a201 switched the alpine image from v3.12 to 3.13.

guillaumedsde commented 3 years ago

Hi everyone sorry for the late reply, I've bumped alpine to version 3.14 (as well qbittorrent to version 4.38), could you try again and see if it is fixed?

johnbintz commented 3 years ago

Looks like it's working again. I had to fix an unrelated issue with my system for the armv7l image (https://github.com/mbentley/docker-timemachine#unable-to-start-the-armv7l-image), otherwise search and other functionality seems to be functioning correctly. Thanks!

guillaumedsde commented 3 years ago

good to hear, sorry for the bother