Skip to content

Unpack plugin not automatically unpacking #2976

@Fogelholk

Description

@Fogelholk

Please complete the following tasks.

  • Web browser cache cleared
  • Web browser, ruTorrent and PHP version provided

Tell us about your environment

Web Browser: Firefox 143.0.1
ruTorrent: v5.2.10
PHP: 8.3.23
OS: FreeBSD 13.4

Give us detailed steps to reproduce the error

I have the following plugins enabled:
_task, _getdir, autotools, cpuload, diskspace, erasedata, filedrop, httprpc, ratio, rss, seedingtime, datadir, unpack, theme, edit, ipad

Relevant conf/config.php:

$pathToExternals = array(
   ...
   "unzip" => '/usr/bin/unzip',
   "unrar" => '/usr/local/bin/unrar',
);

When rutorrent finishes downloads the files are moved from /media/incomingtorrents -> /media/completedtorrents.
After that Unpack looks for files to unpack and does so to /media/completedtorrents (when it worked).

Letting unpack run automatically I see this in the logs (same torrent file, I let it run automatically first which didn't produce any unpacked files, then manually via rutorrent, with $unpack_debug_enabled = true)

Automatic run:

[2025-09-23 08:39:04] [Auto] Check torrent [TORRENT_NAME] at [/media/completedtorrents/Films/Series/TORRENT_DIR/TORRENT_NAME] for archives
[2025-09-23 08:39:04] [Auto] Found RAR archive(s)
[2025-09-23 08:39:04] [Auto] Unpack files from torrent [TORRENT_NAME] at [/media/completedtorrents/Films/Series/TORRENT_DIR/TORRENT_NAME/] to [/media/completedtorrents/Films/Series/TORRENT_DIR/TORRENT_NAME/]
[2025-09-23 08:39:04] Start unpack operation as task 175860954468d24088a11505.32135957 with arguments ["'/usr/local/www/rutorrent/plugins/unpack/unrar_dir.sh' '/usr/local/bin/unrar' '/media/completedtorrents/Films/Series/TORRENT_DIR/TORRENT_NAME/' '/media/completedtorrents/Films/Series/TORRENT_DIR/TORRENT_NAME/' '/usr/bin/unzip' '' ''"]

Manual run:

[2025-09-23 08:46:43] [Manual] Check torrent [TORRENT_NAME] at [/media/completedtorrents/Films/Series/TORRENT_DIR/TORRENT_NAME] for archives
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r00]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r01]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r02]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r03]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r04]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r05]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r06]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r07]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r08]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r09]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r10]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r11]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r12]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r13]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r14]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r15]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.r16]
[2025-09-23 08:46:43] [Manual] Found RAR archive [TORRENT_NAME.rar]
[2025-09-23 08:46:43] [Manual] Unpack files from torrent [TORRENT_NAME] at [/media/completedtorrents/Films/Series/TORRENT_DIR/TORRENT_NAME/] to [/media/completedtorrents/Films/Series/TORRENT_DIR/TORRENT_NAME/]
[2025-09-23 08:46:43] Start unpack operation as task 175861000368d242538fe2b6.20057074 with arguments ["'/usr/local/www/rutorrent/plugins/unpack/unrar_dir.sh' '/usr/local/bin/unrar' '/media/completedtorrents/Films/Series/TORRENT_DIR/TORRENT_NAME/' '/media/completedtorrents/Films/Series/TORRENT_DIR/TORRENT_NAME/' '/usr/bin/unzip'"]

The only difference I see is that the Auto run has 7 variables of which the last two are empty, but the manual run only has 5 variables. This problem has been affecting me for about a year or so, not sure exactly when it started, because I tried downgrading Rutorrent versions a couple of versions back without this getting fixed, so it could be some weird OS issue as well.

Unpacking manually via rutorrent also works so I've been doing that since it stopped automatically working.

Tell us the error message

No errors, archives are just not automatically unpacked. Output above

Provide the php error log contents (if applicable)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions