Transmission postscript Failed to process group: {} =>

All about user-defined episode / movie format expressions
Post Reply
Neo007
Posts: 2
Joined: 31 Aug 2017, 09:26

Transmission postscript Failed to process group: {} =>

Post by Neo007 » 01 Sep 2017, 10:02

Hi everyone,
Realy sorry if the question was already asked.

Here's my problem :
I'm writing a script for transmission to rename my TV shows files with filebot

here's the name of the torrent : [ Torrent9.tv ] Madam.Secretary.S03E06.FRENCH.HDTV.XviD-ZT.avi

and here's my script :

Code: Select all

#!/bin/bash

LOG_FILE="/tmp/transmission.log"
SRC_DIR=`echo "${TR_TORRENT_DIR}/${TR_TORRENT_NAME}" | sed 's/\ /\\\\ /g'`

if [[ $TR_TORRENT_DIR == *"/media/Downloads/Serie"* ]]; then
   echo $SRC_DIR >> $LOG_FILE
   /usr/bin/filebot -rename $SRC_DIR\
           --action hardlink\
           -non-strict\
           --output /mnt/Pre/Series\
           --format {n}/{episode.special\ ?\ 'Specials'\ \:\ 'Season '+s.pad\(2\)}/{n}\ -\ {episode.special\ ?\ 'S00E'+special.pad\(2\)\ \:\ s00e00}\ -\ {t}\ -\ {group}
fi
But I always get this errors ...

Code: Select all

Sep 01 11:41:37 Serveur2ouf transmission-daemon[25581]: Failed to process group: {} => [/media/Downloads/Series/[\]
Sep 01 11:41:37 Serveur2ouf transmission-daemon[25581]: Failed to identify or process any files
Sep 01 11:41:37 Serveur2ouf transmission-daemon[25581]: Failure (°_°)
What can I do ?

Thank you !

User avatar
rednoah
The Source
Posts: 16092
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Transmission postscript Failed to process group: {} =>

Post by rednoah » 01 Sep 2017, 13:51

What's the complete console log? You can use the --log-file option so you don't have to rely on Transmission passing through console output.
:idea: Please read the FAQ and How to Request Help.

Neo007
Posts: 2
Joined: 31 Aug 2017, 09:26

Re: Transmission postscript Failed to process group: {} =>

Post by Neo007 » 01 Sep 2017, 14:50

Here's the full log

Code: Select all

Sep 01 16:39:25 Serveur2ouf systemd[1]: Started Transmission BitTorrent Daemon.
Sep 01 16:41:38 Serveur2ouf transmission-daemon[17033]: connect: Connection timed out
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Illegal Argument: java.nio.file.NoSuchFileException: /media/Downloads/Series/[\ (/media/Downloads/Series/[\)
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Illegal Argument: java.nio.file.NoSuchFileException: /Torrent9.tv\ (Torrent9.tv\)
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Illegal Argument: java.nio.file.NoSuchFileException: /]\ (]\)
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Illegal Argument: java.nio.file.NoSuchFileException: /Bull.2016.S01E01.FRENCH.HDTV.XviD-ZT.avi (Bull.2016.S01E01.FRENCH.HDTV.XviD-ZT.avi)
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: Torrent9.tv\
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: Bull.2016.S01E01.FRENCH.HDTV.XviD-ZT.avi
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: Bull.2016.S01E01.FRENCH.HDTV.XviD-ZT.avi
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: ]\
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: ]\
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: /media/Downloads/Series/[\
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: /media/Downloads/Series/[\
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: Torrent9.tv\
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: Bull.2016.S01E01.FRENCH.HDTV.XviD-ZT.avi
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: ]\
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: /media/Downloads/Series/[\
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: Torrent9.tv\
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: ]\
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: /media/Downloads/Series/[\
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: Torrent9.tv\
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: ]\
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: /media/Downloads/Series/[\
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Failed to read xattr: NoSuchFileException: Torrent9.tv\
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: java.lang.NullPointerException
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: java.util.concurrent.ExecutionException: java.lang.NullPointerException
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.lambda$group$6(AutoDetection.java:145)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.group(AutoDetection.java:143)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:112)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.cli.ArgumentProcessor.runCommand(ArgumentProcessor.java:88)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:26)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.Main.main(Main.java:115)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Caused by: java.lang.NullPointerException
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.similarity.SeriesNameMatcher.matchAll(SeriesNameMatcher.java:66)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.MediaDetection.detectSeriesNames(MediaDetection.java:421)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.MediaDetection.detectSeriesNames(MediaDetection.java:322)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.getSeriesMatches(AutoDetection.java:188)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.detectGroup(AutoDetection.java:175)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.lambda$null$3(AutoDetection.java:143)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: java.lang.NullPointerException
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: java.util.concurrent.ExecutionException: java.lang.NullPointerException
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.lambda$group$6(AutoDetection.java:145)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.group(AutoDetection.java:143)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:112)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.cli.ArgumentProcessor.runCommand(ArgumentProcessor.java:88)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:26)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.Main.main(Main.java:115)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Caused by: java.lang.NullPointerException
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.similarity.SeriesNameMatcher.matchAll(SeriesNameMatcher.java:66)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.MediaDetection.detectSeriesNames(MediaDetection.java:421)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.MediaDetection.detectSeriesNames(MediaDetection.java:322)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.getSeriesMatches(AutoDetection.java:188)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.detectGroup(AutoDetection.java:175)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.lambda$null$3(AutoDetection.java:143)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: java.lang.NullPointerException
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: java.util.concurrent.ExecutionException: java.lang.NullPointerException
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.lambda$group$6(AutoDetection.java:145)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.group(AutoDetection.java:143)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:112)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.cli.ArgumentProcessor.runCommand(ArgumentProcessor.java:88)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:26)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.Main.main(Main.java:115)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Caused by: java.lang.NullPointerException
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.similarity.SeriesNameMatcher.matchAll(SeriesNameMatcher.java:66)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.MediaDetection.detectSeriesNames(MediaDetection.java:421)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.MediaDetection.detectSeriesNames(MediaDetection.java:322)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.getSeriesMatches(AutoDetection.java:188)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.detectGroup(AutoDetection.java:165)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: at net.filebot.media.AutoDetection.lambda$null$3(AutoDetection.java:143)
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Failed to process group: {} => [/media/Downloads/Series/[\]
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Failed to identify or process any files
Sep 01 16:46:22 Serveur2ouf transmission-daemon[17033]: Failure (°_°)

User avatar
rednoah
The Source
Posts: 16092
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Transmission postscript Failed to process group: {} =>

Post by rednoah » 01 Sep 2017, 17:55

Looks like you aren't quoting or escaping file paths correctly and end up passing mangled file arguments into FileBot.
:idea: Please read the FAQ and How to Request Help.

devster
Posts: 284
Joined: 06 Jun 2017, 22:56

Re: Transmission postscript Failed to process group: {} =>

Post by devster » 18 Nov 2017, 14:13

Neo007 wrote:
01 Sep 2017, 14:50
Here's the full log

Code: Select all

Sep 01 16:39:25 Serveur2ouf systemd[1]: Started Transmission BitTorrent Daemon.
Sep 01 16:41:38 Serveur2ouf transmission-daemon[17033]: connect: Connection timed out
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Illegal Argument: java.nio.file.NoSuchFileException: /media/Downloads/Series/[\ (/media/Downloads/Series/[\)
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Illegal Argument: java.nio.file.NoSuchFileException: /Torrent9.tv\ (Torrent9.tv\)
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Illegal Argument: java.nio.file.NoSuchFileException: /]\ (]\)
Sep 01 16:46:18 Serveur2ouf transmission-daemon[17033]: Illegal Argument: java.nio.file.NoSuchFileException: /Bull.2016.S01E01.FRENCH.HDTV.XviD-ZT.avi (Bull.2016.S01E01.FRENCH.HDTV.XviD-ZT.avi)
This looks quite bad: /media/Downloads/Series/[\.
What is the purpose of

Code: Select all

SRC_DIR=`echo "${TR_TORRENT_DIR}/${TR_TORRENT_NAME}" | sed 's/\ /\\\\ /g'`
because on first look it seems it's splitting what should be /media/Downloads/Series/Torrent9.tv/Bull.2016.S01E01.FRENCH.HDTV.XviD-ZT.avi
into the separate components:

Code: Select all

/media/Downloads/Series
/Torrent9.tv
/Bull.2016.S01E01.FRENCH.HDTV.XviD-ZT.avi
I only work in black and sometimes very, very dark grey. (Batman)

Post Reply