utorrent as windows service - filebot not running properly

Any questions? Need some help?
Post Reply
pablobuy
Posts: 8
Joined: 09 Sep 2013, 01:09

utorrent as windows service - filebot not running properly

Post by pablobuy »

Hi there,

I'm running utorrent as a windows service on a Windows Home server 2k3. I'm using XYNTService (https://github.com/mikeowens/XYNTService)

The process uses Working directory d:/ which causes the amc.log to be stored D:\FileBot\logs

Parameter: clean = y
Parameter: music = y
Parameter: subtitles = en
Parameter: artwork = y
Parameter: ut_dir = D:\shares\Downloads\P2P\This Is the End (2013)
Parameter: ut_file = This.Is.the.End.2013.720p.BluRay.x264.YIFY.mp4
Parameter: ut_kind = multi
Parameter: ut_title = This Is the End (2013)
Parameter: ut_label =
Parameter: ut_state = 5
Argument: D:\override
Exception: File not found: D:\override
Failure (°_°)

Unfortunately the way is running I cannot see the logger tab on utorrent and therefore I cannot check which command is actually been executed.

This is what I have under Run Program
filebot -script fn:amc --output "D:/shares" --log-file amc.log --action copy--conflict override -non-strict --def clean=y music=y subtitles=en artwork=y "ut_dir=%D" "ut_file=%F" "ut_kind=%K" "ut_title=%N" "ut_label=%L" "ut_state=%S"

Please help.

Any ideas?
pablobuy
Posts: 8
Joined: 09 Sep 2013, 01:09

Re: utorrent as windows service - filebot not running proper

Post by pablobuy »

Having a second look, it looks like filebot might not be running at all, I've tried downloading some more movies and the log has not changed at all, so I'm suspecting that the amc.log above is from a previous run when I was running utorrent interactively.
By the way, I'm managing utorrent via Web UI and not from the client
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: utorrent as windows service - filebot not running proper

Post by rednoah »

You're passing arguments wrong and forcing standalone mode:

Code: Select all

Argument: D:\override
This is a cmdline argument parsing issue. If filebot is called properly it'll work.
:idea: Please read the FAQ and How to Request Help.
pablobuy
Posts: 8
Joined: 09 Sep 2013, 01:09

Re: utorrent as windows service - filebot not running proper

Post by pablobuy »

I'm not sure what you mean by standalone mode but..

I manage to get some more logs with more accurate information. I'm running now utorrent.exe /LOGFILE which basically make utorrent to log a its activity to a file called bt.log. I thought that might be of interest of you instead of the logger tab which is not persistant.

This is what utorrent is executing:
[2013-09-17 21:41:10] Executing: filebot -script fn:amc --output "D:/shares" --log-file amc.log --action copy--conflict override -non-strict --def clean=y music=y subtitles=en artwork=y "ut_dir=D:\shares\Downloads\P2P" "ut_file=Star.Wars.The.Clone.Wars.S05E19.To.Catch.a.Jedi.HDTV.x264-FQM.mp4" "ut_kind=single" "ut_title=Star.Wars.The.Clone.Wars.S05E19.To.Catch.a.Jedi.HDTV.x264-FQM.mp4" "ut_label=" "ut_state=5"


These are the logs from amc.log

Sep 17, 2013 9:41:33 PM net.sf.ehcache.store.disk.DiskStorageFactory <init>
WARNING: The index for data file C:\Documents and Settings\Administrator\Application Data\FileBot\cache\0\web-persistent-datasource.data is out of date, probably due to an unclean shutdown. Deleting index file C:\Documents and Settings\Administrator\Application Data\FileBot\cache\0\web-persistent-datasource.index
Sep 17, 2013 9:41:34 PM net.sf.ehcache.store.disk.DiskStorageFactory <init>
WARNING: The index for data file C:\Documents and Settings\Administrator\Application Data\FileBot\cache\0\web-datasource-lv2.data is out of date, probably due to an unclean shutdown. Deleting index file C:\Documents and Settings\Administrator\Application Data\FileBot\cache\0\web-datasource-lv2.index
Sep 17, 2013 9:41:34 PM net.sf.ehcache.store.disk.DiskStorageFactory <init>
WARNING: The index for data file C:\Documents and Settings\Administrator\Application Data\FileBot\cache\0\web-datasource.data is out of date, probably due to an unclean shutdown. Deleting index file C:\Documents and Settings\Administrator\Application Data\FileBot\cache\0\web-datasource.index
Parameter: clean = y
Parameter: music = y
Parameter: subtitles = en
Parameter: artwork = y
Parameter: ut_dir = D:\shares\Downloads\P2P
Parameter: ut_file = Star.Wars.The.Clone.Wars.S05E19.To.Catch.a.Jedi.HDTV.x264-FQM.mp4
Parameter: ut_kind = single
Parameter: ut_title = Star.Wars.The.Clone.Wars.S05E19.To.Catch.a.Jedi.HDTV.x264-FQM.mp4
Parameter: ut_label =
Parameter: ut_state = 5
Argument: D:\shares\Software\XYNTServiceProject\utorrent\override
Exception: File not found: D:\shares\Software\XYNTServiceProject\utorrent\override
Failure (°_°)


If I run the command directly from a cmd

C:\Documents and Settings\Administrator>filebot -script fn:amc --output "D:/shar
es" --log-file amc.log --action copy--conflict override -non-strict --def clean=
y music=y subtitles=en artwork=y "ut_dir=D:\shares\Downloads\P2P" "ut_file=Star.
Wars.The.Clone.Wars.S05E19.To.Catch.a.Jedi.HDTV.x264-FQM.mp4" "ut_kind=single" "
ut_title=Star.Wars.The.Clone.Wars.S05E19.To.Catch.a.Jedi.HDTV.x264-FQM.mp4" "ut_
label=" "ut_state=5"
Locking C:\Documents and Settings\Administrator\Application Data\FileBot\logs\am
c.log
Parameter: clean = y
Parameter: music = y
Parameter: subtitles = en
Parameter: artwork = y
Parameter: ut_dir = D:\shares\Downloads\P2P
Parameter: ut_file = Star.Wars.The.Clone.Wars.S05E19.To.Catch.a.Jedi.HDTV.x264-F
QM.mp4
Parameter: ut_kind = single
Parameter: ut_title = Star.Wars.The.Clone.Wars.S05E19.To.Catch.a.Jedi.HDTV.x264-
FQM.mp4
Parameter: ut_label =
Parameter: ut_state = 5
Argument: C:\Documents and Settings\Administrator\override
Exception: File not found: C:\Documents and Settings\Administrator\override
Failure (┬░_┬░)
Launch4j: Failed to run the given command.
User avatar
rednoah
The Source
Posts: 23926
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: utorrent as windows service - filebot not running proper

Post by rednoah »

Missing space messes with argument order:

Code: Select all

--action copy--conflict override
:idea: Please read the FAQ and How to Request Help.
pablobuy
Posts: 8
Joined: 09 Sep 2013, 01:09

Re: utorrent as windows service - filebot not running proper

Post by pablobuy »

Great! Is working now! Sorry about wasting your time. Not sure how the missing space happen as I copied and pasted...
Anyway! Thanks!
Post Reply