Help.Can't get past 'Exception: Failed to auto-detect query'

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
thekeeper
Posts: 7
Joined: 30 Oct 2013, 02:33

Help.Can't get past 'Exception: Failed to auto-detect query'

Post by thekeeper »

I can not seem to get past this error and I've been searching through everything I can think of the past few days. Let it be known My linux basically sucks!! :)

I'm simply trying to create a directory of symlinks with the proper format (for Plex) so I can download these files via SCP or something like that while keeping the original file intact for my torrent folder.

Any insight would be appreciated.

[oscar ~] ./filebot/bin/filebot.sh -rename ~/private/rtorrent/data/tv/bones* ~/private/rtorrent/filebot --action symlink --format "{n.space('.')}.{'s'+s.pad(2)}e{e.pad(2)}.{t.space('.')}.{vf}.{vc}.{ac}" --db thetvdb -non-strict -clear-cache
Clear cache and temporary files
Rename episodes using [TheTVDB]
Auto-detected query: [bones]
Fetching episode data for [Bones]
Exception: Failed to auto-detect query
Failure (°_°)
[oscar ~]


I also tried to use the $HOME instead of the '~' This is what I got:

[oscar ~] ./filebot/bin/filebot.sh -rename "$HOME/private/rtorrent/data/tv/bones*" "$HOME/private/rtorrent/filebot" --action symlink --format "{n.space('.')}.{'s'+s.pad(2)}e{e.pad(2)}.{t.space('.')}.{vf}.{vc}.{ac}" --db thetvdb -non-strict -clear-cache
Clear cache and temporary files
Rename episodes using [TheTVDB]
Exception: Failed to auto-detect query
Failure (°_°)



Thanks in advance,

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

Re: Help.Can't get past 'Exception: Failed to auto-detect qu

Post by rednoah »

Give me the file paths.
:idea: Please read the FAQ and How to Request Help.
thekeeper
Posts: 7
Joined: 30 Oct 2013, 02:33

Re: Help.Can't get past 'Exception: Failed to auto-detect qu

Post by thekeeper »

rednoah wrote:Give me the file paths.

$HOME is: /media/sdp1/home/thekeeper
thekeeper
Posts: 7
Joined: 30 Oct 2013, 02:33

Re: Help.Can't get past 'Exception: Failed to auto-detect qu

Post by thekeeper »

thekeeper wrote:
rednoah wrote:Give me the file paths.

$HOME is: /media/sdp1/home/thekeeper

I also discovered that the Server is running Java 1.6 and and not 1.7.. Could that be the issue? I'm upgrading it later this afternoon.


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

Re: Help.Can't get past 'Exception: Failed to auto-detect qu

Post by rednoah »

I recommend using Java 7 though it's not the issue here.

Try using the latest r1816 from here:
https://sourceforge.net/projects/filebo ... ebot/HEAD/

PS: I didn't mean $HOME. I meant the folder/file names of your media files. Some of your files are named very badly and cause it to abort.
:idea: Please read the FAQ and How to Request Help.
thekeeper
Posts: 7
Joined: 30 Oct 2013, 02:33

Re: Help.Can't get past 'Exception: Failed to auto-detect qu

Post by thekeeper »

rednoah wrote:I recommend using Java 7 though it's not the issue here.

Try using the latest r1816 from here:
https://sourceforge.net/projects/filebo ... ebot/HEAD/

PS: I didn't mean $HOME. I meant the folder/file names of your media files. Some of your files are named very badly and cause it to abort.

Hopefully this is what you mean.. ( sorry for my cluelessness!)

[oscar ~/private/rtorrent/data/tv] ls -l | grep bones
-rw-r--r-- 1 thekeeper thekeeper 261886101 Sep 17 01:10 bones.901.hdtv-lol.mp4
-rw-r--r-- 1 thekeeper thekeeper 397442641 Sep 24 01:06 bones.902.hdtv-lol.mp4
-rw-r--r-- 1 thekeeper thekeeper 355583532 Oct 1 01:05 bones.903.hdtv-lol.mp4
-rw-r--r-- 1 thekeeper thekeeper 305821458 Oct 8 01:06 bones.904.hdtv-lol.mp4
-rw-r--r-- 1 thekeeper thekeeper 335087988 Oct 15 05:56 bones.905.hdtv-lol.mp4
-rw-r--r-- 1 thekeeper thekeeper 362820847 Oct 22 01:13 bones.906.hdtv-lol.mp4


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

Re: Help.Can't get past 'Exception: Failed to auto-detect qu

Post by rednoah »

If you run filebot on just these files i'm sure it'll work.


But since you grep for bones I guess you're filtering out the files that don't work. In anycase try r1816 first and see if that makes a difference.
:idea: Please read the FAQ and How to Request Help.
thekeeper
Posts: 7
Joined: 30 Oct 2013, 02:33

Re: Help.Can't get past 'Exception: Failed to auto-detect qu

Post by thekeeper »

rednoah wrote:If you run filebot on just these files i'm sure it'll work.


But since you grep for bones I guess you're filtering out the files that don't work. In anycase try r1816 first and see if that makes a difference.
Since I'm on FeralHosting, I'm not sure if I'm able to upgrade this. My linux skills basically suck ;) !! I will open a ticket with them and ask.



This is what I got... I think you're right; My grep mustn't be working...

Here's a new message when I try to create a symlink using the full path and file name. I found in a previous post that this was fixed when someone upgraded to Java 7..

------------------

[oscar ~] ./filebot/bin/filebot.sh -rename "$HOME/private/rtorrent/data/tv/bones.901.hdtv-lol.mp4" --output "$HOME/private/rtorrent/filebot" --action symlink --format "{n.space('.')}.{'s'+s.pad(2)}e{e.pad(2)}.{t.space('.')}.{vf}.{vc}.{ac}" --db thetvdb -non-strict -clear-cache
Clear cache and temporary files
Rename episodes using [TheTVDB]
Auto-detected query: [bones]
Fetching episode data for [Bones]
[SYMLINK] Rename [/media/sdp1/home/thekeeper/private/rtorrent/data/tv/bones.901.hdtv-lol.mp4] to [/media/sdp1/home/thekeeper/private/rtorrent/filebot/Bones.s09e01.The.Secrets.in.the.Proposal.480p.x264.AAC.mp4]
Exception: Unsupported Operation: createSymbolicLink
Failure (°_°)

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

Re: Help.Can't get past 'Exception: Failed to auto-detect qu

Post by rednoah »

Alright, for symlink you'll need Java 7. It's really just a matter of downloading the JRE.

You can check things with filebot -version and if you wanna update to the latest revision just override the jar. That's all in the FAQ.
:idea: Please read the FAQ and How to Request Help.
thekeeper
Posts: 7
Joined: 30 Oct 2013, 02:33

Re: Help.Can't get past 'Exception: Failed to auto-detect qu

Post by thekeeper »

rednoah wrote:Alright, for symlink you'll need Java 7. It's really just a matter of downloading the JRE.

You can check things with filebot -version and if you wanna update to the latest revision just override the jar. That's all in the FAQ.

I got Java installed and the FB version you recommended and it works as long as I give it the full file name!!

So I got brave and decided to run it on my entire library of 318 files and 18 directories using :

./filebot/bin/filebot.sh -rename "$HOME/private/rtorrent/data/tv" --output "$HOME/private/rtorrent/filebot" --action symlink --format "{n.space('.')}.{'s'+s.pad(2)}e{e.pad(2)}.{t.space('.')}.{vf}.{vc}.{ac}" --db thetvdb -non-strict


And I get this after it said it grabbed the Episode Data :

[Fatal Error] :497:1: XML document structures must start and end within the same entity.
SAXParseException: XML document structures must start and end within the same entity.
org.xml.sax.SAXParseException; lineNumber: 497; columnNumber: 1; XML document structures must start and end within the same entity.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at net.sourceforge.filebot.web.WebRequest.getDocument(WebRequest.java:105)
at net.sourceforge.filebot.web.WebRequest.getDocument(WebRequest.java:96)
at net.sourceforge.filebot.web.CachedXmlResource.getDocument(CachedXmlResource.java:27)
at net.sourceforge.filebot.web.TheTVDBClient.getXmlResource(TheTVDBClient.java:286)
at net.sourceforge.filebot.web.TheTVDBClient.fetchEpisodeList(TheTVDBClient.java:121)
at net.sourceforge.filebot.web.AbstractEpisodeListProvider.getEpisodeList(AbstractEpisodeListProvider.java:70)
at net.sourceforge.filebot.cli.CmdlineOperations.fetchEpisodeSet(CmdlineOperations.java:277)
at net.sourceforge.filebot.cli.CmdlineOperations.renameSeries(CmdlineOperations.java:184)
at net.sourceforge.filebot.cli.CmdlineOperations.rename(CmdlineOperations.java:90)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:87)
at net.sourceforge.filebot.Main.main(Main.java:183)


It's getting close!!!!

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

Re: Help.Can't get past 'Exception: Failed to auto-detect qu

Post by rednoah »

Somehow you're getting malformed XML back from TheTVDB for one of your shows. Too bad. If you figure out which show is cause it you can report the bug in their forums.



You are aware that a simple filebot -rename <EVERYTHING> is not necessarily the best way to do things? Especially if you don't want one error in one folder abort the whole thing?

Option 1: Script for processing files folder-by-folder:
http://www.filebot.net/forums/viewtopic ... &t=5#p2211

Option 2: AMC script does more heavy lifting:
http://www.filebot.net/forums/viewtopic.php?f=4&t=215
:idea: Please read the FAQ and How to Request Help.
thekeeper
Posts: 7
Joined: 30 Oct 2013, 02:33

Re: Help.Can't get past 'Exception: Failed to auto-detect qu

Post by thekeeper »

rednoah wrote:Somehow you're getting malformed XML back from TheTVDB for one of your shows. Too bad. If you figure out which show is cause it you can report the bug in their forums.



You are aware that a simple filebot -rename <EVERYTHING> is not necessarily the best way to do things? Especially if you don't want one error in one folder abort the whole thing?

Option 1: Script for processing files folder-by-folder:
http://www.filebot.net/forums/viewtopic ... &t=5#p2211

Option 2: AMC script does more heavy lifting:
http://www.filebot.net/forums/viewtopic.php?f=4&t=215

Yeah.. I'm figuring this out piece by piece... Maybe I should just hire you to piece together what I need! :oops:

I'm going to look through that AMC script!

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

Re: Help.Can't get past 'Exception: Failed to auto-detect qu

Post by rednoah »

If you're using the AMC but don't need movie/series/anime auto-detection you should set ut_label=movie|tv just to save a bit of processing time and no issues with guessing it wrong.

e.g.

Code: Select all

--def ut_label=TV
:idea: Please read the FAQ and How to Request Help.
Post Reply