Page 1 of 1

Trouble unpacking downloaded tar files

Posted: May 19th, 2020, 9:55 am
by mbinary
Hi all,

Recently added a new source for downloads and a lot of what is being downloaded is single-tar files. Usually, SABnzbd has no problems unpacking all of these files and ensuring they're in the right format for Sonarr/Radarr to pick up, but in this instance, it doesn't seem to be willing to unpack them.

I'm currently running on a Synology NAS, if that helps. Sanitized logs as follows, no error logs:

Code: Select all

2020-05-19 10:17:28,572::INFO::[__init__:681] Adding <download_name>.tar-xpost.nzb
2020-05-19 10:17:28,660::INFO::[misc:997] Creating directories: /volume1/file-swap/newsnet/Incomplete/<download_name>.tar-xpost
2020-05-19 10:17:28,822::INFO::[nzbstuff:530] File <file_name>.tar]-[1/2] - "" yEnc  492300800 (1/687) - SABnzbd_nzf_oeMCbl added to queue
2020-05-19 10:17:28,824::INFO::[__init__:624] Backing up /volume1/file-swap/newsnet/Incomplete/<download_name>.tar-xpost/__ADMIN__/<download_name>.tar-xpost.nzb.gz
2020-05-19 10:17:31,758::INFO::[assembler:91] Decoding /volume1/file-swap/newsnet/Incomplete/<download_name>.tar-xpost/WtF[nZb].nfo yenc
2020-05-19 10:17:31,779::INFO::[nzbstuff:1687] Detected filename from yenc: <file_name>.tar]-[1/2] - "" yEnc  492300800 (1/687) -> <file_name>.tar
2020-05-19 10:17:42,953::INFO::[nzbqueue:784] [N/A] Ending job <download_name>.tar-xpost
2020-05-19 10:17:42,957::INFO::[assembler:91] Decoding /volume1/file-swap/newsnet/Incomplete/<download_name>.tar-xpost/<file_name>.tar yenc
2020-05-19 10:17:45,228::INFO::[nzbqueue:418] [N/A] Removed job <download_name>.tar-xpost
2020-05-19 10:17:45,273::INFO::[postproc:340] Starting Post-Processing on <download_name>.tar-xpost => Repair:True, Unpack:True, Delete:True, Script:None, Cat:audio
2020-05-19 10:17:45,273::INFO::[postproc:660] Starting verification and repair of <download_name>.tar-xpost
2020-05-19 10:17:45,274::INFO::[__init__:920] [N/A] /volume1/file-swap/newsnet/Incomplete/<download_name>.tar-xpost/__ADMIN__/__verified__ missing
2020-05-19 10:17:45,275::INFO::[postproc:696] No par2 sets for <download_name>.tar-xpost
2020-05-19 10:17:45,305::INFO::[postproc:716] Verification and repair finished for <download_name>.tar-xpost
2020-05-19 10:17:45,311::INFO::[misc:997] Creating directories: /volume1/file-swap/newsnet/Complete/<download_name>.tar-xpost
2020-05-19 10:17:45,314::INFO::[postproc:381] Running unpack_magic on <download_name>.tar-xpost
2020-05-19 10:17:45,316::INFO::[postproc:388] Finished unpack_magic on <download_name>.tar-xpost
2020-05-19 10:17:45,320::INFO::[postproc:558] Cleaning up <download_name>.tar-xpost (keep_basic=False)
2020-05-19 10:17:45,321::INFO::[nzbstuff:1759] [N/A] Purging data for job <download_name>.tar-xpost (keep_basic=False, del_files=False)
2020-05-19 10:17:45,369::INFO::[database:272] Added job <download_name>.tar-xpost to history
As you can see, it recognizes the tar file, then does....nothing. I'm able to manually un-tar the file and the contents are perfectly proper.

Re: Trouble unpacking downloaded tar files

Posted: May 20th, 2020, 6:22 am
by safihre
We don't support unpacking tar-files from SABnzbd, it's just not common enough on usenet..

Re: Trouble unpacking downloaded tar files

Posted: May 20th, 2020, 7:32 am
by mbinary
Ah, okay. Do you know if there's possibly a way to add in a quick bash script at the end to detect a tar file and then run an un-tar function?

Re: Trouble unpacking downloaded tar files

Posted: May 20th, 2020, 7:54 am
by safihre
Of course, you can write a post-processing script: https://sabnzbd.org/wiki/scripts/post-p ... ng-scripts
It can use env-variable SAB_COMPLETE_DIR or the commandline parameter.