Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] After updating to 5.0.x, UI doesn't update free space after deleting torrent content #348

Open
1 task done
debsidian opened this issue Nov 7, 2024 · 3 comments

Comments

@debsidian
Copy link

debsidian commented Nov 7, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When deleting the torrent via the webUI, the pop-up box asks "Also delete the content files" is checked. Then the torrent and the files are deleted from the drive successfully. However, the "Free Space" number at the bottom of the UI will not update to reflect the increased free space. After a couple of torrent and file deletions, this has led to an over 1.5TB disparity between the actual free space and the qBit indicator at the bottom. See attached picture.
Screenshot from 2024-11-07 10-30-09

Expected Behavior

After deleting torrent and the related files, the "Free Space" indicator at the bottom of the webUI should increment up to reflect the newly freed up space. This is how linuxserver-qbit has always behaved prior to the 5.0.x upgrade (rolling it back did not revert the behavior however).

Steps To Reproduce

  1. Using docker-ce
  2. Link to config
  3. Automatic Management Mode is checked
  4. Torrent content removing mode: Delete files permanently

Environment

1. Host machine is ubuntu 24.04, docker-ce, storage is a QNAP DAS, 18TB Ironwolf drives, raid5.
2. Docker Engine Community v.27.3.1; API v.1.47
3. Portainer Community Edition 2.21.4

CPU architecture

x86-64

Docker creation

---
version: "3.8"
services:
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent:latest
    container_name: qbittorrent
    network_mode: "container:gluetun"
    healthcheck:
      test: curl -f 127.0.0.1:11647 || exit 1
      interval: 30s
      retries: 3
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Los_Angeles
      - WEBUI_PORT=11647
    volumes:
      - /home/user/docker/arr/qbittorrent/config:/config
      - /home/user/docker/arr/qbittorrent/downloads:/downloads:rw
      - /media/user/raid511/qbit-downloads:/longterm-downloads:rw
    restart: unless-stopped

Container logs

(N) 2024-11-06T18:58:41 - Restored torrent. Torrent: "SUSE.iso"
(I) 2024-11-06T19:11:13 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Thu Oct 31 19:25:09 2024.
(N) 2024-11-06T19:11:13 - Using built-in WebUI.
(N) 2024-11-06T19:11:13 - WebUI translation for selected locale (en) has been successfully loaded.
(N) 2024-11-06T19:11:13 - WebUI: Now listening on IP: *, port: 11647
(N) 2024-11-06T19:11:13 - Watching folder: "/downloads"
(N) 2024-11-06T19:11:13 - Watching folder: "/media"
(I) 2024-11-06T19:11:13 - Detected external IP. IP: "146.70.174.247"
(N) 2024-11-06T21:17:16 - Torrent stopped. Torrent: "fedora.iso"
(N) 2024-11-07T08:59:13 - qBittorrent termination initiated
(N) 2024-11-07T08:59:13 - Saving resume data completed.
(N) 2024-11-07T08:59:17 - BitTorrent session successfully finished.
(N) 2024-11-07T08:59:17 - qBittorrent is now ready to exit
(N) 2024-11-07T09:00:29 - qBittorrent v4.6.7 started
(N) 2024-11-07T09:00:29 - Using config directory: /config/qBittorrent
(N) 2024-11-07T09:00:29 - Trying to listen on the following list of IP addresses: "10.2.0.2:42325"
(I) 2024-11-07T09:00:29 - Peer ID: "-qB4670-"
(I) 2024-11-07T09:00:29 - HTTP User-Agent: "qBittorrent/4.6.7"
(I) 2024-11-07T09:00:29 - Distributed Hash Table (DHT) support: OFF
(I) 2024-11-07T09:00:29 - Local Peer Discovery support: OFF
(I) 2024-11-07T09:00:29 - Peer Exchange (PeX) support: OFF
(I) 2024-11-07T09:00:29 - Anonymous mode: OFF
(I) 2024-11-07T09:00:29 - Encryption support: ON
(I) 2024-11-07T09:00:29 - Successfully listening on IP. IP: "10.2.0.2". Port: "TCP/42325"
(I) 2024-11-07T09:00:29 - Successfully listening on IP. IP: "10.2.0.2". Port: "UTP/42325"
(N) 2024-11-07T09:00:29 - Restored torrent. Torrent: "fedora.iso"
(I) 2024-11-07T09:00:29 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Thu Oct 31 19:25:09 2024.
(N) 2024-11-07T09:00:29 - Using built-in WebUI.
(N) 2024-11-07T09:00:29 - WebUI translation for selected locale (en) has been successfully loaded.
(N) 2024-11-07T09:00:29 - WebUI: Now listening on IP: *, port: 11647
(N) 2024-11-07T09:00:29 - Watching folder: "/downloads"
(N) 2024-11-07T09:00:29 - Watching folder: "/media"
(I) 2024-11-07T09:00:29 - Detected external IP. IP: "146.70.174.247"
(N) 2024-11-07T10:51:26 - qBittorrent termination initiated
(N) 2024-11-07T10:51:30 - qBittorrent is now ready to exit
(N) 2024-11-07T10:53:29 - qBittorrent v5.0.1 started. Process ID: 147
(N) 2024-11-07T10:53:29 - Using config directory: /config/qBittorrent
(N) 2024-11-07T10:53:29 - Trying to listen on the following list of IP addresses: "10.2.0.2:42325"
(I) 2024-11-07T10:53:29 - Peer ID: "-qB5010-"
(I) 2024-11-07T10:53:29 - HTTP User-Agent: "qBittorrent/5.0.1"
(I) 2024-11-07T10:53:29 - Distributed Hash Table (DHT) support: OFF
(I) 2024-11-07T10:53:29 - Local Peer Discovery support: OFF
(I) 2024-11-07T10:53:29 - Peer Exchange (PeX) support: OFF
(I) 2024-11-07T10:53:29 - Anonymous mode: OFF
(I) 2024-11-07T10:53:29 - Encryption support: ON
(I) 2024-11-07T10:53:29 - Successfully listening on IP. IP: "10.2.0.2". Port: "TCP/42325"
(I) 2024-11-07T10:53:29 - Successfully listening on IP. IP: "10.2.0.2". Port: "UTP/42325"
(N) 2024-11-07T10:53:29 - Restored torrent. Torrent: "arch.iso"
(N) 2024-11-07T10:53:29 - Restored torrent. Torrent: "Beta (05)"
(I) 2024-11-07T10:53:29 - IP geolocation database loaded. Type: DBIP-Country-Lite. Build time: Thu Oct 31 19:25:09 2024.
(N) 2024-11-07T10:53:29 - Using built-in WebUI.
(N) 2024-11-07T10:53:29 - WebUI translation for selected locale (en) has been successfully loaded.
(N) 2024-11-07T10:53:29 - WebUI: Now listening on IP: *, port: 11647
(N) 2024-11-07T10:53:29 - Watching folder: "/downloads"
(N) 2024-11-07T10:53:29 - Watching folder: "/media"
(I) 2024-11-07T10:53:29 - Detected external IP. IP: "146.70.174.247"
Copy link

github-actions bot commented Nov 7, 2024

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@j0nnymoe
Copy link
Member

j0nnymoe commented Nov 7, 2024

Realistically I suspect this is an upstream bug and outside of our control.

@LinuxServer-CI
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Issues
Development

No branches or pull requests

3 participants