Everything works fine from the command line. From command line I run:
/root/filebot/filebot.sh -script fn:amc --def "ut_label=TV" --output "/mnt/dietpi_userdata/Media" --action duplicate --conflict auto -non-strict --log-file amc.log --def unsorted=y music=y artwork=y clean=y kodi=host[:8080] excludeList=".excludes" ut_dir="/mnt/dietpi_userdata/completed" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL"
Runs like a gem.
I try and run from "/root/deluge-postprocess.sh" from Deluge Execute on torrent complete and can not seem to get deluge-postprocess.sh to work.
This is my deluge-postprocess.sh file:
#!/bin/sh -xu
# Input Parameters
ARG_PATH="$3/$2"
ARG_NAME="$2"
ARG_LABEL="N/A"
# Configuration
CONFIG_OUTPUT="/mnt/dietpi_userdata/Media" # if this script is called by the de$
/root/filebot/filebot.sh -script fn:amc --output "$CONFIG_OUTPUT" --action dupl$
artwork=y clean=y kodi=host[:8080] excludeList=".excludes" ut_dir="$ARG_PATH" u$
printenv > "/root/filebot/log.txt"
/root/filebot/filebot.sh -script fn:sysenv > "/root/filebot/log2.txt" 2>&1
This is what my printenv log shows:
SHLVL=3
_=/usr/bin/deluged
TERM=linux
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LANG=en_GB.UTF-8
PWD=/
This is what my sysenv
# Environment Variables #
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
LC_ALL: en_US.UTF-8
LD_LIBRARY_PATH: /root/filebot:/root/filebot/lib/armv7l
NLSPATH: /usr/dt/lib/nls/msg/%L/%N.cat
TERM: linux
OLDPWD: /
XFILESEARCHPATH: /usr/dt/app-defaults/%L/Dt
PWD: /
USER: root
LANG: en_US.UTF-8
SHLVL: 3
_: /usr/bin/deluged
# Java System Properties #
http.agent: FileBot 4.7.9
java.runtime.name: Java(TM) SE Runtime Environment
sun.boot.library.path: /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/arm
java.vm.version: 25.65-b01
swing.crossplatformlaf: javax.swing.plaf.nimbus.NimbusLookAndFeel
java.vm.vendor: Oracle Corporation
java.vendor.url: http://java.oracle.com/
path.separator: :
java.vm.name: Java HotSpot(TM) Client VM
file.encoding.pkg: sun.io
user.country: US
sun.java.launcher: SUN_STANDARD
sun.os.patch.level: unknown
jna.nosys: false
java.vm.specification.name: Java Virtual Machine Specification
user.dir: /
useExtendedFileAttributes: true
java.runtime.version: 1.8.0_65-b17
java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment
java.endorsed.dirs: /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/endorsed
os.arch: arm
net.filebot.AcoustID.fpcalc: fpcalc
java.io.tmpdir: /root/filebot/data/tmp
line.separator:
java.vm.specification.vendor: Oracle Corporation
os.name: Linux
jna.nounpack: true
sun.jnu.encoding: UTF-8
java.library.path: /root/filebot:/root/filebot/lib/armv7l:/usr/java/packages/lib/arm:/lib:/usr/lib
useGVFS: false
java.specification.name: Java Platform API Specification
java.class.version: 52.0
sun.management.compiler: HotSpot Client Compiler
sun.net.client.defaultReadTimeout: 60000
java.util.prefs.PreferencesFactory: net.filebot.util.prefs.FilePreferencesFactory
os.version: 4.9.62-v7+
user.home: /root/filebot/data
sun.arch.abi: gnueabihf
user.timezone:
java.awt.printerjob: sun.print.PSPrinterJob
file.encoding: UTF-8
java.specification.version: 1.8
java.net.useSystemProxies: false
java.class.path: /root/filebot/FileBot.jar
user.name: root
application.deployment: portable
java.vm.specification.version: 1.8
sun.net.client.defaultConnectTimeout: 10000
sun.java.command: /root/filebot/FileBot.jar -script fn:sysenv
useCreationDate: false
java.home: /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre
sun.arch.data.model: 32
net.filebot.util.prefs.file: /root/filebot/data/prefs.properties
user.language: en
java.specification.vendor: Oracle Corporation
awt.toolkit: sun.awt.X11.XToolkit
net.filebot.Archive.extractor: ApacheVFS
java.vm.info: mixed mode
java.version: 1.8.0_65
java.ext.dirs: /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/ext:/usr/java/packages/lib/ext
application.dir: /root/filebot/data
sun.boot.class.path: /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/resources.jar:/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/rt.jar:/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/sunrsasign.jar:/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/jsse.jar:/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/jce.jar:/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/charsets.jar:/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/lib/jfr.jar:/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/classes
java.vendor: Oracle Corporation
file.separator: /
grape.root: /root/filebot/data/grape
java.vendor.url.bug: http://bugreport.sun.com/bugreport/
sun.io.unicode.encoding: UnicodeLittle
sun.cpu.endian: little
unixfs: false
org.apache.commons.logging.Log: org.apache.commons.logging.impl.NoOpLog
sun.cpu.isalist:
# Arguments #
args[0] = -script
args[1] = fn:sysenv
Here is the permissions on my deluge-postprocess.sh file:
-rwxrwxrwx 1 root root 684 Jan 4 12:33 deluge-postprocess.sh
Thanks for any help!
Jon
Calling deluge-postprocessing.sh from Deluge
Re: Calling deluge-postprocessing.sh from Deluge
Is Deluge running as its own user?
If so is it possible that it cannot access the folder /root?
I'm fairly confident that failure to execute a post-processing script from Deluge is logged somewhere, if you have that log it might help in narrowing down the issue.
If so is it possible that it cannot access the folder /root?
I'm fairly confident that failure to execute a post-processing script from Deluge is logged somewhere, if you have that log it might help in narrowing down the issue.
I only work in black and sometimes very, very dark grey. (Batman)
Re: Calling deluge-postprocessing.sh from Deluge
I have still not got this to work and finally have some free time to address.
My deluge is using root:root as the user, the same as my dietpi user. The deluge-postprocess.sh is root:root
Any help would be very appreciated.
My deluge is using root:root as the user, the same as my dietpi user. The deluge-postprocess.sh is root:root
Any help would be very appreciated.