Home Assistant addon : qbittorrent (supports openvpn & smb mounts)

Hey @alexbelgium, sorry for my late reply…! I tried this your last suggestion/idea, add “route-nopull” to my .ovpn file and change connection in Advanced Options to “tun0”, and now i can access to my qbittorrent remotly ! This is the best solutions ! Many Thks! you are the best ! :smiley: :facepunch:

1 Like

Perfect! Thanks for the feedback. I’ll add this as an option so everyone can use that if necessary

1 Like

@wilsonlspacheco

New version : 14.3.5.99202105022253-7365-063844ed4ubuntu20.04.1-ls133-dev2

New feature : option openvpn_alternative_mode added. This boolean activates an alternative openvpn connection mode that binds only qbittorrent but not the webui to the vpn. This is allows to reach webui from an external network (thanks @wilsonlspacheco for testing!) but there is a slight risk of decreased performance. Please let me know if this should be the default, instead of the alternative.

1 Like

No problem @alexbelgium, my pleasure ! :smiley: :facepunch:

1 Like

Hello! Ive got problems finding my mounted directory. In my logs it says
[21:49:12] INFO: … //192.168.1.xxx/Seagate successfully mounted to /mnt/Seagate with options

But when i use terminal and cd into/mnt and do ”ls -a” There is nothing?

What am i missing?

1 Like

Hi, this is a normal behavior due to how docker works. Mounted folders are only mounted in the container - the terminal is in a separate container (of the host). However, if you install portainer, you can have a console inside the container and see the mounted folder.

That’s why each of my addon has a separate mount option for smb drives.

@adamoutler has another solution : an addon that can execute the mount code at addon startup : see here ✔️🏃Run On Startup.d

So if you don’t log in the container with ssh or portainer, you need to trust it to work and go see in your smb disk files appearing after download.

1 Like

Need help. I cant enable incomplete folder. Whenever I check “Keep incomplete torrenet in” and save. It become uncheck the next time. It also greyed out on the path field.
What is the work around ?
Nothing on the logs, I dont use network mount.

@tyjtyj Hi! That’s strange, I have this option enabled and it works fine, including changing it from the UI… Do you use the latest version of the addon? (at one point I had added temp folder mgt in addon options, but removed it afterwards)

Some options :

  • you can try setting PUID / GUID to 0 and 0 in addon options (perhaps I made a permission issue)
  • you can try to set it manually by editing the qbittorrent.conf file in /config/qBittorrent /qBittorrent.conf and add
Downloads\TempPath=/data/incomplete/
Downloads\TempPathEnabled=true

Thanks !

And have you checked that the folder exists also?

Thanks!

Hi, one last thing : actually I’ve tested again and noticed there is a bug in the alternative webui VueTorrent. Are you using it?

Enabling or Disabling the option in VueTorrent seems to work (as can be checked with the flag in /config/qBittorrent/qBittorrent.conf Downloads\TempPathEnabled=true that goes from true to false) but it remains unchecked in VueTorrent webui.

If you disable VueTorrent (last tab in VueTorrent options), the normal ui seem to correctly show the incomplete folder info

Managed to edit the config file and restart. it seems to work although it still grey out

I will leave it as it is as i dont change this often

1 Like

More questions
Ingress hardcoded to vuetorrent UI ?
If i go by ip, i get original qt ui.
if i go by hass ingress, i got vuetorrent web UI

Custom UI set to blank.

Where do I set de webui password ? (and remove the default admin user)

Hi ! Exactly, VueTorrent is hard-coded in ingress as it was much easier at one time to make it work, and it seemed to me like a nicer option for smaller screen devices such as phones. However the webui option that can be defined from the addon options only impact when going to the direct url.

If you’d prefer it otherway I can check but at the time it allowed ingress to work :wink:

Hi @piotr ! To change the username you need to go in the addon options. To change the password, I’ve just seen that there is no possibility in VueTorrent webui (the default one). So you need to disable the optional webui in the addons options, go to http://URL:port, go in the tab “tools”, “options”, “webui” and change your password there.

The reason to do that is that password can’t be changed through manual modification of the qbittorrent.conf, but username can. So lazy people can use a strong username and keep the default password and still be safe… Or you can disable ui port and do everything with ingress, which is perfectly safe

what am I doing wrong?
The command '/bin/sh -c apt-get update && apt-get install -y jq curl cifs-utils keyutils nginx coreutils openvpn && curl -L -f -s -o /usr/bin/tempio "https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}" && chmod a+x /usr/bin/tempio && curl -L -f -s -o /tmp/tmp "https://github.com/alexbelgium/downloads-tracker/archive/refs/tags/Qbittorrent.zip" && mkdir -p /tmp/bashio && curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" | tar -xzf - --strip 1 -C /tmp/bashio && mv /tmp/bashio/lib /usr/lib/bashio && ln -s /usr/lib/bashio/bashio /usr/bin/bashio && rm -rf /tmp/bashio && sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser && sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser && sed -i 's|/config|-R /config/qBittorrent|g' /etc/cont-init.d/10-adduser && sed -i 's= /config=/config/qBittorrent || true=g' /etc/cont-init.d/30-config && sed -i 's|/downloads/|/share/qBittorrent/|g' /defaults/qBittorrent.conf && sed '11,13d' /defaults/qBittorrent.conf && echo 'WebUI\HostHeaderValidation=false' >> /defaults/qBittorrent.conf && echo 'WebUI\LocalHostAuth=false' >> /defaults/qBittorrent.conf' returned a non-zero code: 100

@lordzid Hi, I suppose it is in supervisor log during installation ? Is that the whole error message? I would have expected that the error message would be a bit longer to provide the cause for the return 100 ?

yes this is all bug report

21-06-28 14:40:28 INFO (SyncWorker_3) [supervisor.docker.addon] Starting build for db21ed7f/armv7-addon-qbittorrent:14.3.6.99202106272003-7387-ac8105c30ubuntu20.04.1-ls141
21-06-28 14:40:35 ERROR (SyncWorker_3) [supervisor.docker.addon] Can't build db21ed7f/armv7-addon-qbittorrent:14.3.6.99202106272003-7387-ac8105c30ubuntu20.04.1-ls141: The command '/bin/sh -c apt-get update     && apt-get install -y         jq         curl         cifs-utils         keyutils         nginx         coreutils         openvpn         && curl -L -f -s -o /usr/bin/tempio     "https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}"     && chmod a+x /usr/bin/tempio         && curl -L -f -s -o /tmp/tmp     "https://github.com/alexbelgium/downloads-tracker/archive/refs/tags/Qbittorrent.zip"         && mkdir -p /tmp/bashio     && curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz"     | tar -xzf - --strip 1 -C /tmp/bashio     && mv /tmp/bashio/lib /usr/lib/bashio     && ln -s /usr/lib/bashio/bashio /usr/bin/bashio     && rm -rf /tmp/bashio             && sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser     && sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser     && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser         && sed -i 's|/config|-R /config/qBittorrent|g' /etc/cont-init.d/10-adduser     && sed -i 's=	/config=/config/qBittorrent || true=g' /etc/cont-init.d/30-config         && sed -i 's|/downloads/|/share/qBittorrent/|g' /defaults/qBittorrent.conf         && sed '11,13d' /defaults/qBittorrent.conf     && echo 'WebUI\HostHeaderValidation=false' >> /defaults/qBittorrent.conf     && echo 'WebUI\LocalHostAuth=false' >> /defaults/qBittorrent.conf' returned a non-zero code: 100
21-06-28 14:40:35 ERROR (SyncWorker_3) [supervisor.docker.addon] Build log: 
Step 1/24 : ARG BUILD_FROM
Step 2/24 : ARG BUILD_VERSION
Step 3/24 : ARG BUILD_UPSTREAM="14.3.6.99202106272003-7387-ac8105c30ubuntu20.04.1-ls141"
Step 4/24 : FROM ${BUILD_FROM}${BUILD_UPSTREAM}
 ---> ead58ec0f356
Step 5/24 : ARG BASHIO_VERSION=0.13.0
 ---> Using cache
 ---> fa4b82053ff4
Step 6/24 : ARG TEMPIO_VERSION=2021.01.0
 ---> Using cache
 ---> c1d5694d5368
Step 7/24 : ARG BUILD_ARCH
 ---> Using cache
 ---> d3ddd7ed3489
Step 8/24 : RUN     apt-get update     && apt-get install -y         jq         curl         cifs-utils         keyutils         nginx         coreutils         openvpn         && curl -L -f -s -o /usr/bin/tempio     "https://github.com/home-assistant/tempio/releases/download/${TEMPIO_VERSION}/tempio_${BUILD_ARCH}"     && chmod a+x /usr/bin/tempio         && curl -L -f -s -o /tmp/tmp     "https://github.com/alexbelgium/downloads-tracker/archive/refs/tags/Qbittorrent.zip"         && mkdir -p /tmp/bashio     && curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz"     | tar -xzf - --strip 1 -C /tmp/bashio     && mv /tmp/bashio/lib /usr/lib/bashio     && ln -s /usr/lib/bashio/bashio /usr/bin/bashio     && rm -rf /tmp/bashio             && sed -i 's/bash/bashio/g' /etc/cont-init.d/10-adduser     && sed -i 's/{PUID:-911}/(bashio::config "PUID")/g' /etc/cont-init.d/10-adduser     && sed -i 's/{PGID:-911}/(bashio::config "PGID")/g' /etc/cont-init.d/10-adduser         && sed -i 's|/config|-R /config/qBittorrent|g' /etc/cont-init.d/10-adduser     && sed -i 's=	/config=/config/qBittorrent || true=g' /etc/cont-init.d/30-config         && sed -i 's|/downloads/|/share/qBittorrent/|g' /defaults/qBittorrent.conf         && sed '11,13d' /defaults/qBittorrent.conf     && echo 'WebUI\HostHeaderValidation=false' >> /defaults/qBittorrent.conf     && echo 'WebUI\LocalHostAuth=false' >> /defaults/qBittorrent.conf
 ---> Running in 25211d937ca6
Get:1 http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu focal InRelease [18.1 kB]
Ign:2 https://dl.cloudsmith.io/public/qbittorrent-cli/qbittorrent-cli/deb/ubuntu focal InRelease
Get:3 http://ports.ubuntu.com/ubuntu-ports focal InRelease [265 kB]
Err:4 https://dl.cloudsmith.io/public/qbittorrent-cli/qbittorrent-cli/deb/ubuntu focal Release
  Certificate verification failed: The certificate is NOT trusted. The certificate chain uses not yet valid certificate.  Could not handshake: Error in the certificate verification. [IP: 52.84.174.8 443]
Err:1 http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu focal InRelease
  At least one invalid signature was encountered.
Get:5 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Get:6 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease [101 kB]
Err:3 http://ports.ubuntu.com/ubuntu-ports focal InRelease
  At least one invalid signature was encountered.
Get:7 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease [114 kB]
Err:5 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
  At least one invalid signature was encountered.
Err:6 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
  At least one invalid signature was encountered.
Err:7 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
  At least one invalid signature was encountered.
Reading package lists...
E: The repository 'https://dl.cloudsmith.io/public/qbittorrent-cli/qbittorrent-cli/deb/ubuntu focal Release' does not have a Release file.
W: GPG error: http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu focal InRelease: At least one invalid signature was encountered.
E: The repository 'http://ppa.launchpad.net/qbittorrent-team/qbittorrent-stable/ubuntu focal InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease: At least one invalid signature was encountered.
E: 
The repository 'http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease: At least one invalid signature was encountered.
E: The repository 'http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease' is not signed.
W: GPG error: http://ports.ubuntu.com/ubuntu-ports focal-security InRelease: At least one invalid signature was encountered.
E: 
The repository 'http://ports.ubuntu.com/ubuntu-ports focal-security InRelease' is not signed.

Removing intermediate container 25211d937ca6

1 Like

Thanks! mmh… not easy… from what I read with this message on google it could mainly a desynchronized clock, a lack of space, or an issue with the sources… I’ll try to look again a bit later. If anyone has an idea don’t hesitate to chime in :wink:

I want to note that the same error occurs with your other addons. transmission and nextcloud I also could not install

1 Like

Thanks for the clarification, I thought i did something wrong. Thanks for the add-ons. it s a great one. I been using docker for many different torrent client, finally this one works with ha.

1 Like