alexbelgium / hassio-addons

My homeassistant addons
MIT License
1.49k stars 213 forks source link

πŸ› [qBittorrent] Torrent downloaded, and there's a path... but no files #1366

Closed purierca closed 4 months ago

purierca commented 5 months ago

Description

Hi there, thanks for the great add on - again! I'm using Samba Share + qBittorrent to download and save on external hard drive. On Samba NAS, all works well (I can see and access all my files normally). I've set a download path for qBittorrent, on the Samba Share, and a test torrent has finished without any issues, but I can't find the file anywhere.

In the torrent details it does show a root folder, but I can't access that from any where on the Samba Share or through files. I'm assuming it's at the very root of the Home Assistant disk (I'm on Green), but even with file browser I can't access it.

image

Reproduction steps

1. Add Torrent, set destination (save) path to /elements/Movies
2. Download torrent
3. See HA Green's disk get a bit more full
4. Can't find files

Here's the qBittorrent config

DNS_server: 8.8.8.8,1.1.1.1
PGID: "0"
PUID: "0"
SavePath: /elements/Movies
Username: admin
certfile: fullchain.pem
customUI: vuetorrent
keyfile: privkey.pem
qbit_manage: false
ssl: false
whitelist: localhost,127.0.0.1,172.30.0.0/16,192.168.0.0/16

Addon Logs

-----------------------------------------------------------
 Add-on: qBittorrent
 bittorrent client with optional vpn
-----------------------------------------------------------
 Add-on version: 4.6.4-2
 You are running the latest version of this add-on.
 System: Home Assistant OS 12.2  (aarch64 / green)
 Home Assistant Core: 2024.4.4
 Home Assistant Supervisor: 2024.04.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums
-----------------------------------------------------------
 Provided by: https://github.com/alexbelgium/hassio-addons 
-----------------------------------------------------------
 Defining permissions for main user : 
User UID: 0
User GID : 0
-----------------------------------------------------------
/etc/cont-init.d/00-folders.sh: executing
/etc/cont-init.d/00-global_var.sh: executing
DNS_server='8.8.8.8,1.1.1.1'
PGID='0'
PUID='0'
SavePath='/elements/Movies'
Username='admin'
certfile='fullchain.pem'
customUI='vuetorrent'
keyfile='privkey.pem'
qbit_manage='false'
ssl='false'
whitelist='localhost,127.0.0.1,172.30.0.0/16,192.168.0.0/16'
/etc/cont-init.d/00-local_mounts.sh: executing
/etc/cont-init.d/00-smb_mounts.sh: executing
/etc/cont-init.d/01-config_yaml.sh: executing
Setting permissions for the config.yaml directory

Load environment variables from /config/config.yaml if existing
If accessing the file with filebrowser it should be mapped to /addon_configs/db21ed7f-qbittorrent/config.yaml

---------------------------------------------------------
Wiki here on how to use : github.com/alexbelgium/hassio-addons/wiki/Add‐ons-feature-:-add-env-variables
... no env variables found, exiting
/etc/cont-init.d/01-custom_script.sh: executing
Execute /addon_configs/db21ed7f-qbittorrent/qbittorrent.sh if existing
Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons-feature-:-customisation
/etc/cont-init.d/30-nginx.sh: executing
/etc/cont-init.d/90-dns_set.sh: executing
[16:47:13] INFO: DNS SERVERS set to 1.1.1.1 8.8.8.8 
/etc/cont-init.d/91-qbittorrent_configuration.sh: executing
[16:47:13] INFO: Downloads can be found in /elements/Movies
[16:47:13] INFO: Whitelisted subsets will not require a password : localhost, 127.0.0.1, 172.30.0.0/16, 192.168.0.0/16
[16:47:13] INFO: WEBUI username set to admin
[16:47:13] INFO: Alternate UI enabled : vuetorrent. If webui don't work, disable this option
[16:47:16] INFO: Default username/password : admin/homeassistant
[16:47:16] INFO: Configuration can be found in /config/qBittorrent
/etc/cont-init.d/92-qbit_manage.sh: executing
/etc/cont-init.d/93-openvpn.sh: executing
[16:47:16] INFO: Direct connection without VPN enabled
/etc/cont-init.d/93-wg_test.sh: executing
/./etc/cont-init.d/93-wg_test.sh: line 180: QBT_CONFIG_FILE: unbound variable
Error : /etc/cont-init.d/93-wg_test.sh exiting 1

Starting the upstream container

[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      β–ˆβ–ˆβ•—     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
      β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•—
      β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘
      β–ˆβ–ˆβ•‘     β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘
      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•
      β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β• β•šβ•β•β•β•β•β•

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    0
User GID:    0
───────────────────────────────────────

[custom-init] No custom files found, skipping...
crond: crond (busybox 1.36.1) started, log level 8
WebUI will be started shortly after internal preparations. Please wait...

******** Information ********
To control qBittorrent, access the WebUI at: http://localhost:8080

Connection to localhost (127.0.0.1) 8080 port [tcp/http-alt] succeeded!
[ls.io-init] done.

Architecture

amd64

OS

HAos

alexbelgium commented 5 months ago

Hi, you must release that in docker all paths are relative to the container in itself. When you stop it, all custom data disappear.

The only way to keep remanence is to use a folder mapped to something that is stable : /data for example is mounted by HA but not accessible in an easy way.

To avoid this, you can use one of my addons options to either mount a usb drive (localdisk option) or a smb drive. For example, if you specify sda1 or NAS in the localdisk, then it will be mounted to /mnt/sda1 or /mnt/NAS. If you then set the download directory to /mnt/sda1/yourfolder, it will appear in your other drive

Hope this was globally clear :-)

purierca commented 5 months ago

Hi Alex, thanks for your suggestion! I've gone a simpler route after finding a stray comment in the community yesterday:

The only remaining issue here is to access the /root on my HA Green to delete the files that were created before. I guess I'll CLI it.

alexbelgium commented 5 months ago

Perfect! Glad it works. If it was made within the qbittorrent container then it was deleted as soon as you restarted it - no harm done ;-)

Btw if you want to CLI inside containers the portainer addon is a nice one to avoid ssh :-)

github-actions[bot] commented 4 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.