Email logging not working
Email logging not working
I'm trying to enable email logging, however, nothing seems to be coming through. I have an smtp server running on my network which i'm trying to send the mail through. If I open a telnet connection to the smtp server from the box which is running filebot I am able to successfully send mail but nothing seems to happen when filebot tries to send mail.
Below is the filebot command i'm running, the log output and the output of the sysinfo script:
this is the mail sending component: --def mail=192.168.0.18:25:filebot@<mydomain> --def mailto=admin@<mydomain>
and this the full script:
#!/bin/bash
TORRENT_PATH=$1
TORRENT_NAME=$2
TORRENT_LABEL=$3
FB_DIR=/mnt/btdownloads/filebot
MEDIA_DIR=/mnt/media
if [ "$TORRENT_LABEL" == "auto_name" ]; then
$FB_DIR/filebot.sh -script fn:amc --output $MEDIA_DIR --filter "(n != 'American Dad!' || s == 14)" --log-file amc.log --action copy --conflict skip -non-strict --def clean=y --def mail=192.168.0.18:25:filebot@<mydomain> --def mailto=admin@<mydomain> "seriesFormat=tv/{n}/Season {s}/{n}.{s00e00}.{t}" "movieFormat=movies/{n} ({y}){' - '+fn.match(/CD\d+/).upper()}" "ut_dir=$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" xbmc=192.168.0.100 "exec=chmod 777 '{folder}' ; chmod 777 '{file}'" &
fi
this is a sample log output:
Run script [fn:amc] at [Sat Oct 08 14:20:42 BST 2016]
Parameter: clean = y
Parameter: mail = *****
Parameter: mailto = *****
Parameter: seriesFormat = tv/{n}/Season {s}/{n}.{s00e00}.{t}
Parameter: movieFormat = movies/{n} ({y}){' - '+fn.match(/CD\d+/).upper()}
Parameter: ut_dir = /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET
Parameter: ut_kind = multi
Parameter: ut_title = Van.Helsing.S01E04.HDTV.x264-FLEET
Parameter: ut_label = auto_name
Parameter: xbmc = 192.168.0.100
Parameter: exec = chmod 777 '{folder}' ; chmod 777 '{file}'
Read archive [van.helsing.s01e04.hdtv.x264-fleet.rar] and extract to [/mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET]
Extracting files [/mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv]
Input: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r11
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r02
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r08
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r05
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r12
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r01
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r06
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r04
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r10
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.nfo
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r07
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.sfv
Group: [tvs:van helsing] => [Van.Helsing.S01E04.HDTV.x264-FLEET.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Van Helsing]
Fetching episode data for [Van Helsing]
Fetching episode data for [Demons]
Apply Filter: {(n != 'American Dad!' || s == 14)}
Include [Van Helsing - 1x01 - Help Me]
Include [Van Helsing - 1x02 - Seen You]
Include [Van Helsing - 1x03 - Stay Inside]
Include [Van Helsing - 1x04 - Coming Back]
Include [Van Helsing - 1x05 - Fear Her]
Include [Van Helsing - 1x06 - Nothing Matters]
Include [Van Helsing - 1x07 - For Me]
Include [Demons - 1x01 - They Bite]
Include [Demons - 1x02 - The Whole Enchilada]
Include [Demons - 1x03 - Saving Grace]
Include [Demons - 1x04 - Suckers]
Include [Demons - 1x05 - Smitten]
Include [Demons - 1x06 - Nothing Like Nebraska]
[COPY] Rename [/mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv] to [/mnt/media/tv/Van He
lsing/Season 1/Van Helsing.S01E04.Coming Back.mkv]
Processed 1 files
Execute: chmod 777 '/mnt/media/tv/Van Helsing/Season 1' ; chmod 777 '/mnt/media/tv/Van Helsing/Season 1/Van Helsing.S01E04.Coming Back.mkv'
Notify Kodi: 192.168.0.100:8080
GET: http://192.168.0.100:8080/jsonrpc?reque ... message%22
%3A%22Van.Helsing.S01E04.HDTV.x264-FLEET%22%2C%22image%22%3A%22http%3A%2F%2Fapp.filebot.net%2Ficon.png%22%7D%2C%22id%22%3A1%7D
GET: http://192.168.0.100:8080/jsonrpc?reque ... %22%3A1%7D
3
Clean temporary extracted files
Delete /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv
Delete /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet
Done \xe3\x83\xbe(\xef\xbc\xa0\xe2\x8c\x92\xe3\x83\xbc\xe2\x8c\x92\xef\xbc\xa0)\xe3\x83\x8e
output from sysinfo script:
FileBot 4.7.2 (r4334)
JNA Native: 4.0.0
MediaInfo: 0.7.85
7-Zip-JBinding: 9.20
Chromaprint: 1.3.1
Extended Attributes: DISABLED
Script Bundle: 2016-09-30 (r406)
Groovy: 2.4.7
JRE: OpenJDK Runtime Environment 1.8.0_102 (headless)
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 17 MB Used Memory
OS: FreeBSD (amd64)
Package: PORTABLE
Data: /mnt/btdownloads/filebot
uname: FreeBSD hawking 10.3-STABLE FreeBSD 10.3-STABLE #0 r295946+9bbba48(9.10-STABLE): Mon Sep 26 21:03:32 UTC 2016 root@gauntlet:/freenas-9.10-releng/_BE/objs/freenas-9.10-releng/_BE/os/sys/FreeNAS.amd64 amd64
Done ヾ(@⌒ー⌒@)ノ
Thanks for creating a really useful piece of software. Any assistance you can offer with my issue would be much appreciated.
Below is the filebot command i'm running, the log output and the output of the sysinfo script:
this is the mail sending component: --def mail=192.168.0.18:25:filebot@<mydomain> --def mailto=admin@<mydomain>
and this the full script:
#!/bin/bash
TORRENT_PATH=$1
TORRENT_NAME=$2
TORRENT_LABEL=$3
FB_DIR=/mnt/btdownloads/filebot
MEDIA_DIR=/mnt/media
if [ "$TORRENT_LABEL" == "auto_name" ]; then
$FB_DIR/filebot.sh -script fn:amc --output $MEDIA_DIR --filter "(n != 'American Dad!' || s == 14)" --log-file amc.log --action copy --conflict skip -non-strict --def clean=y --def mail=192.168.0.18:25:filebot@<mydomain> --def mailto=admin@<mydomain> "seriesFormat=tv/{n}/Season {s}/{n}.{s00e00}.{t}" "movieFormat=movies/{n} ({y}){' - '+fn.match(/CD\d+/).upper()}" "ut_dir=$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" xbmc=192.168.0.100 "exec=chmod 777 '{folder}' ; chmod 777 '{file}'" &
fi
this is a sample log output:
Run script [fn:amc] at [Sat Oct 08 14:20:42 BST 2016]
Parameter: clean = y
Parameter: mail = *****
Parameter: mailto = *****
Parameter: seriesFormat = tv/{n}/Season {s}/{n}.{s00e00}.{t}
Parameter: movieFormat = movies/{n} ({y}){' - '+fn.match(/CD\d+/).upper()}
Parameter: ut_dir = /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET
Parameter: ut_kind = multi
Parameter: ut_title = Van.Helsing.S01E04.HDTV.x264-FLEET
Parameter: ut_label = auto_name
Parameter: xbmc = 192.168.0.100
Parameter: exec = chmod 777 '{folder}' ; chmod 777 '{file}'
Read archive [van.helsing.s01e04.hdtv.x264-fleet.rar] and extract to [/mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET]
Extracting files [/mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv]
Input: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r11
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r02
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r08
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r05
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r12
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r01
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r06
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r04
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r10
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.nfo
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.r07
Exclude: /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet.sfv
Group: [tvs:van helsing] => [Van.Helsing.S01E04.HDTV.x264-FLEET.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Van Helsing]
Fetching episode data for [Van Helsing]
Fetching episode data for [Demons]
Apply Filter: {(n != 'American Dad!' || s == 14)}
Include [Van Helsing - 1x01 - Help Me]
Include [Van Helsing - 1x02 - Seen You]
Include [Van Helsing - 1x03 - Stay Inside]
Include [Van Helsing - 1x04 - Coming Back]
Include [Van Helsing - 1x05 - Fear Her]
Include [Van Helsing - 1x06 - Nothing Matters]
Include [Van Helsing - 1x07 - For Me]
Include [Demons - 1x01 - They Bite]
Include [Demons - 1x02 - The Whole Enchilada]
Include [Demons - 1x03 - Saving Grace]
Include [Demons - 1x04 - Suckers]
Include [Demons - 1x05 - Smitten]
Include [Demons - 1x06 - Nothing Like Nebraska]
[COPY] Rename [/mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv] to [/mnt/media/tv/Van He
lsing/Season 1/Van Helsing.S01E04.Coming Back.mkv]
Processed 1 files
Execute: chmod 777 '/mnt/media/tv/Van Helsing/Season 1' ; chmod 777 '/mnt/media/tv/Van Helsing/Season 1/Van Helsing.S01E04.Coming Back.mkv'
Notify Kodi: 192.168.0.100:8080
GET: http://192.168.0.100:8080/jsonrpc?reque ... message%22
%3A%22Van.Helsing.S01E04.HDTV.x264-FLEET%22%2C%22image%22%3A%22http%3A%2F%2Fapp.filebot.net%2Ficon.png%22%7D%2C%22id%22%3A1%7D
GET: http://192.168.0.100:8080/jsonrpc?reque ... %22%3A1%7D
3
Clean temporary extracted files
Delete /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet/Van.Helsing.S01E04.HDTV.x264-FLEET/Van.Helsing.S01E04.HDTV.x264-FLEET.mkv
Delete /mnt/btdownloads/downloads/Van.Helsing.S01E04.HDTV.x264-FLEET/van.helsing.s01e04.hdtv.x264-fleet
Done \xe3\x83\xbe(\xef\xbc\xa0\xe2\x8c\x92\xe3\x83\xbc\xe2\x8c\x92\xef\xbc\xa0)\xe3\x83\x8e
output from sysinfo script:
FileBot 4.7.2 (r4334)
JNA Native: 4.0.0
MediaInfo: 0.7.85
7-Zip-JBinding: 9.20
Chromaprint: 1.3.1
Extended Attributes: DISABLED
Script Bundle: 2016-09-30 (r406)
Groovy: 2.4.7
JRE: OpenJDK Runtime Environment 1.8.0_102 (headless)
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 3 GB Max Memory / 17 MB Used Memory
OS: FreeBSD (amd64)
Package: PORTABLE
Data: /mnt/btdownloads/filebot
uname: FreeBSD hawking 10.3-STABLE FreeBSD 10.3-STABLE #0 r295946+9bbba48(9.10-STABLE): Mon Sep 26 21:03:32 UTC 2016 root@gauntlet:/freenas-9.10-releng/_BE/objs/freenas-9.10-releng/_BE/os/sys/FreeNAS.amd64 amd64
Done ヾ(@⌒ー⌒@)ノ
Thanks for creating a really useful piece of software. Any assistance you can offer with my issue would be much appreciated.
Re: Email logging not working
The mail step is performed before the cleanup step, so this might be an error message:
I have no idea. The options look OK at first glance. How did you confirm that it's not an issue with your mail server?
EDIT:
You can use this script to test sending mail.
mail.groovy
Code: Select all
3
EDIT:
You can use this script to test sending mail.
mail.groovy
Code: Select all
def mail = 'mail=192.168.0.18:25:filebot@<mydomain>'.split(':', 5)
def mailto = 'admin@<mydomain>'
sendmail(
subject: 'TITLE', message: 'MESSAGE', messagemimetype: 'text/plain',
mailhost: mail[0], mailport: mail[1], from: mail[2], to: mailto,
user: mail[3], password: mail[4]
)
Re: Email logging not working
Thanks for pointing me in the right direction. I think the "3" related to an ArrayIndexOutOfBoundsException since the script is expecting the array generated by splitting the mail server input string to contain an index at 3 for user and also at 4 for password.
Since my smtp server doesn't require authentication for connections within the network I hadn't thought to included these. Also the documentation in this post has no mention of the requirement for a user/pass.

Since my smtp server doesn't require authentication for connections within the network I hadn't thought to included these. Also the documentation in this post has no mention of the requirement for a user/pass.
Thanks again for your help and for the great software--def mail=host:port:from Send email via private mail server

-
- Posts: 20
- Joined: 21 Dec 2016, 14:59
Re: Email logging not working
Hey,
i'm also having probs trying out the E-Mail-Logging.
Here's my Code for this. Maybe you'll find an Error:
Tried first with
and
Hope you can help me. Thanks
i'm also having probs trying out the E-Mail-Logging.
Here's my Code for this. Maybe you'll find an Error:
Code: Select all
--def mail=smtp.strato.de:465:[email protected]:!krypt!Passwort --def [email protected] --def reportError=y
Code: Select all
--def mail=smtp.strato.de:465:[email protected]:[email protected]:!krypt!Passwort
Code: Select all
--def mail=smtp.strato.de:465:[email protected][:[email protected]:!krypt!Passwort]
-
- Posts: 20
- Joined: 21 Dec 2016, 14:59
Re: Email logging not working
Isn't this the function for sending automatically the log per Mail?
Re: Email logging not working
By logs I mean console output. The console output will probably tell you why it's not working.
-
- Posts: 20
- Joined: 21 Dec 2016, 14:59
Re: Email logging not working
Ups...Sorry...Here they are:
That's my Script at the moment:
And here are the Logs:
That's my Script at the moment:
Code: Select all
#!/bin/bash
filebot -script "fn:amc" /media/Disc2/Downloads/ --output "/media/Disc2/" --lang de --action move --encoding UTF-8 --conflict override -non-strict --log-file "/media/Disc2/Logs/Filebot.log" --def "movieFormat={fn =~ /3D/ || file =~ /3D/ ? 'Filme 3D' : fn =~ /XXX/ || file =~ /XXX/ ? 'XXX' : 'Filme'}/{fn =~ /XXX/ || file =~ /XXX/ ? folder.name : {n}+' ('+{y}+')'}{fn =~ /3D/ || file =~ /3D/ ? ' [3D] [H-SBS]' : ''}/{fn =~ /XXX/ || file =~ /XXX/ ? fn : {n}+' ('+{y}+')'}{fn =~ /3D/ || file =~ /3D/ ? ' H-SBS' : ''}" seriesFormat="/media/Disc2/Serien/{n}/Staffel {s}/{n} - {sxe} - {t}" plex=plexmediaserver clean=y --def unsorted=y --def mail=smtp.strato.de:465:[email protected][:[email protected]:!krypt!passwd] --def [email protected] --def reportError=y
exit 0
Code: Select all
Locking /media/Disc2/Logs/Filebot.log
Run script [fn:amc] at [Mon Jan 09 11:39:46 CET 2017]
Parameter: movieFormat = {fn =~ /3D/ || file =~ /3D/ ? 'Filme 3D' : fn =~ /XXX/ || file =~ /XXX/ ? 'XXX' : 'Filme'}/{fn =~ /XXX/ || file =~ /XXX/ ? folder.name : {n}+' ('+{y}+')'}{fn =~ /3D/ || file =~ /3D/ ? ' [3D] [H-SBS]' : ''}/{fn =~ /XXX/ || file =~ /XXX/ ? fn : {n}+' ('+{y}+')'}{fn =~ /3D/ || file =~ /3D/ ? ' H-SBS' : ''}
Parameter: seriesFormat = /media/Disc2/Serien/{n}/Staffel {s}/{n} - {sxe} - {t}
Parameter: plex = *****
Parameter: clean = y
Parameter: unsorted = y
Parameter: mail = *****
Parameter: mailto = *****
Parameter: reportError = y
Argument[0]: /media/Disc2/Downloads
Input: /media/Disc2/Downloads/Race - Zeit für Legenden (2016)/Race - Zeit für Legenden (2016).mkv
xattr: [Race - Zeit für Legenden (2016).mkv] => [Race - Zeit für Legenden (2016)]
Group: [mov:race zeit fur legenden 2016] => [Race - Zeit für Legenden (2016).mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/media/Disc2/Downloads/Race - Zeit für Legenden (2016)/Race - Zeit für Legenden (2016).mkv]
[MOVE] Rename [/media/Disc2/Downloads/Race - Zeit für Legenden (2016)/Race - Zeit für Legenden (2016).mkv] to [/media/Disc2/Filme/Race - Zeit für Legenden (2016)/Race - Zeit für Legenden (2016).mkv]
Processed 1 files
Notify Plex: [host:plexmediaserver]
GET: https://plexmediaserver:32400/library/sections/all/refresh
plexmediaserver
java.net.UnknownHostException: plexmediaserver
at net.filebot.web.WebRequest.fetch(WebRequest.java:138)
at net.filebot.cli.ScriptShellMethods.get(ScriptShellMethods.java:293)
at Script2.refreshPlexLibrary(Script2.groovy:34)
at Script1$_run_closure62$_closure148.doCall(Script1.groovy:531)
at Script1$_run_closure62$_closure148.doCall(Script1.groovy)
at net.filebot.cli.ScriptShellBaseClass.tryLogCatch(ScriptShellBaseClass.java:127)
at Script1$_run_closure62.doCall(Script1.groovy:530)
at Script1.run(Script1.groovy:528)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
at net.filebot.Main.main(Main.java:120)
Caused by: java.net.UnknownHostException: plexmediaserver
at net.filebot.web.WebRequest.fetch(WebRequest.java:135)
... 12 more
[mail] Sending email: [FileBot] Race - Zeit für Legenden (2016)
Problem while sending mime mail:
[mail] Failed to send email: Missing ']'
: Problem while sending mime mail:
at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:284)
at org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java:575)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at Script3$_sendmail_closure2.doCall(Script3.groovy:31)
at Script3$_sendmail_closure2.doCall(Script3.groovy)
at net.filebot.cli.ScriptShellBaseClass.tryLogCatch(ScriptShellBaseClass.java:127)
at Script3.sendmail(Script3.groovy:30)
at Script1.sendEmailReport(Script1.groovy:102)
at Script1$_run_closure70.doCall(Script1.groovy:631)
at Script1$_run_closure70.doCall(Script1.groovy)
at net.filebot.cli.ScriptShellBaseClass.tryLogCatch(ScriptShellBaseClass.java:127)
at Script1.run(Script1.groovy:630)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
at net.filebot.Main.main(Main.java:120)
Caused by: javax.mail.internet.AddressException: Missing ']' in string ``[email protected]['' at position 20
at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:180)
... 17 more
Clean clutter files and empty folders
Delete /media/41462120-ca5d-4cd0-8a29-6cb1db63d54b/Downloads/Race - Zeit für Legenden (2016)
Done ヾ(@⌒ー⌒@)ノ
Last edited by JamesBlond007 on 09 Jan 2017, 11:47, edited 1 time in total.
Re: Email logging not working

1.
Code: Select all
javax.mail.internet.AddressException: Missing ']' in string ``[email protected]['' at position 20
2.
Code: Select all
java.net.UnknownHostException: plexmediaserver

-
- Posts: 20
- Joined: 21 Dec 2016, 14:59
Re: Email logging not working
I changed it to
Changed to Port 587 cause I got an Error on 465:
so I looked at the site of my mailhoster and there was a Thread i can change to 587 as alternate port.
After that I got now this Error
I checked with Outlook that it's possible to send an mail over SMTP:587 and it just worked.
Maybe there is a Problem that SSL must be active.
Code: Select all
--def mail=smtp.strato.de:587:[email protected]:[email protected]:!krypt!passwd
Code: Select all
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.strato.de, port: 465, response: -1
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1270)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370)
at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:257)
After that I got now this Error
Code: Select all
Problem while sending mime mail:
: Problem while sending mime mail:
at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:284)
at org.apache.tools.ant.taskdefs.email.EmailTask.execute(EmailTask.java:575)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at Script2$_sendmail_closure2.doCall(Script2.groovy:31)
at Script2$_sendmail_closure2.doCall(Script2.groovy)
at net.filebot.cli.ScriptShellBaseClass.tryLogCatch(ScriptShellBaseClass.java:127)
at Script2.sendmail(Script2.groovy:30)
at Script1.sendEmailReport(Script1.groovy:102)
at Script1$_run_closure70.doCall(Script1.groovy:631)
at Script1$_run_closure70.doCall(Script1.groovy)
at net.filebot.cli.ScriptShellBaseClass.tryLogCatch(ScriptShellBaseClass.java:127)
at Script1.run(Script1.groovy:630)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
at net.filebot.Main.main(Main.java:120)
Caused by: javax.mail.AuthenticationFailedException
at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:257)
... 17 more
Maybe there is a Problem that SSL must be active.
Re: Email logging not working
--def mail option is primarily designed for people who have their own mail server running on localhost.
SSL and TLS settings can be tricky. I've added enableStartTLS to the default configuration. Maybe that helps. Try -script dev:amc for testing the latest commits.
SSL and TLS settings can be tricky. I've added enableStartTLS to the default configuration. Maybe that helps. Try -script dev:amc for testing the latest commits.
-
- Posts: 20
- Joined: 21 Dec 2016, 14:59
Re: Email logging not working
Thx Rednoah,
that's just working. But i also saw the gmail-option and made a new GMail-Account and this also works very well so you mustn't include this extra for me.
And the Plex Notification with right IP and Token working also.
Thx for this nice product and your fast help.
But another Question. It says:
So i asked myself if there is an option to send the complete Console Output as attachement or in the mail.
that's just working. But i also saw the gmail-option and made a new GMail-Account and this also works very well so you mustn't include this extra for me.
And the Plex Notification with right IP and Token working also.
Thx for this nice product and your fast help.
But another Question. It says:
Code: Select all
[mail] Sending email: [FileBot] Motive - 1x12 - Für das übergeordnete Wohl
[mail] Sent email with 0 attachments
-
- Posts: 20
- Joined: 21 Dec 2016, 14:59
Re: Email logging not working
Okay. Yeah, I know...Google is one of my best friends.
So i have to write into my script that the complete console output would send again per mail. There's no opportunity to do direct in the filebot script per def?
Or am I an Idiot and didnt seeing the wood for the trees?
Would like that's only an attachment on the main-E-Mail from filebot.
So i have to write into my script that the complete console output would send again per mail. There's no opportunity to do direct in the filebot script per def?
Or am I an Idiot and didnt seeing the wood for the trees?
Would like that's only an attachment on the main-E-Mail from filebot.
Re: Email logging not working
No. If you want complete console output then you need to do it from via shell. A bit of IO redirection is probably the most useful skill you can learn on the command-line. It's very easy and it'll work for any program, not just filebot. 

-
- Posts: 20
- Joined: 21 Dec 2016, 14:59
Re: Email logging not working
Code: Select all
[mail] Sent email with 0 attachments
Re: Email logging not working
No, because by the time the filebot process exits the email has long been sent. You cannot add an attachment to an email after the fact. A process simply cannot send its own output, especially not crash logs. 
Pipe the output to a file. So you have that. If you like the HTML report, then just enable --def storeReport=y so you'll get a file for that as well. After the filebot call you can now have your own 1 line shell script send the email however you prefer.
[mail] Sent email with 0 attachments is a log message from the internal mail library (and not filebot)

Pipe the output to a file. So you have that. If you like the HTML report, then just enable --def storeReport=y so you'll get a file for that as well. After the filebot call you can now have your own 1 line shell script send the email however you prefer.

Re: Email logging not working
I think this may have broke mail sending for me. On Feb 12th mail sending just stopped working. Is it possible that this was the date this script change was pushed to the stable repo?rednoah wrote:--def mail option is primarily designed for people who have their own mail server running on localhost.
SSL and TLS settings can be tricky. I've added enableStartTLS to the default configuration. Maybe that helps. Try -script dev:amc for testing the latest commits.
As far as I know nothing changed with my configuration. The logs now just show:
Code: Select all
[mail] Failed to send email: Can't send command to SMTP host
Re: Email logging not working
hey @rednoah, did you have a chance to look at this? If I submitted a pull request in github to remove the "enableStartTLS" default would you merge it?
Re: Email logging not working
Does disabling enableStartTLS fix the issue? If yes, why? And should it?
If STARTTLS is sent by the server, why does the server request STARTTLS and then fail to actually establish a secure connection? There's probably something wrong with your setup.
I'm not sure what's going on, but I'd start by figuring out who is sending STARTTLS. Server? FileBot? Because if it's the server, then the server is doing something that you don't want it to do, or something that you haven't set up properly yet.
@see https://en.wikipedia.org/wiki/Opportunistic_TLS
If STARTTLS is sent by the server, why does the server request STARTTLS and then fail to actually establish a secure connection? There's probably something wrong with your setup.
I'm not sure what's going on, but I'd start by figuring out who is sending STARTTLS. Server? FileBot? Because if it's the server, then the server is doing something that you don't want it to do, or something that you haven't set up properly yet.
@see https://en.wikipedia.org/wiki/Opportunistic_TLS
Re: Email logging not working
I'll admit that I haven't done a huge amount of testing yet, but everything was working without an issue until Feb 12th. I'm fairly certain nothing changed with my set-up. It seems coincidental that the failure of mail sending seems to have coincided with this change to the amc script.
Since the first rule of troubleshooting is "find what changed" are you able to confirm that the 12th was the date that the script change went live?
Thanks for your help.
Since the first rule of troubleshooting is "find what changed" are you able to confirm that the 12th was the date that the script change went live?
Thanks for your help.
Re: Email logging not working
Finding what changed is only the first step. The second step is to confirm and test that theory. Maybe it's that change. Maybe it's something that changed on the server-side. Maybe the network equipment between client/server changed. Maybe the CIA is staging a man-in-the-middle attack.
I don't mind pull requests, but if it's essentially untested, with unclear motivation (i.e. treating the symptom instead of the actual problem), replacing encrypted communication with clear text for unclear reasons, then it's not gonna get merged.
You can clone the repository and then make your own changes and see what's working for you. I am very reluctant to make global changes that decrease security just as a workaround for some other unknown problem.

I don't mind pull requests, but if it's essentially untested, with unclear motivation (i.e. treating the symptom instead of the actual problem), replacing encrypted communication with clear text for unclear reasons, then it's not gonna get merged.

You can clone the repository and then make your own changes and see what's working for you. I am very reluctant to make global changes that decrease security just as a workaround for some other unknown problem.
Re: Email logging not working
haha, yeah I appreciate that.
I was really just wondering if you could advise whether that date is correct or not before i spend the time to test the issue. Is it feasible that the 12th would have been when my server downloaded a new version of the amc script?
Admittedly I was getting a bit premature about the pull request given I haven't even tested the change yet.
I was really just wondering if you could advise whether that date is correct or not before i spend the time to test the issue. Is it feasible that the 12th would have been when my server downloaded a new version of the amc script?
Admittedly I was getting a bit premature about the pull request given I haven't even tested the change yet.
Re: Email logging not working
Script jars are signed and uploaded manually, so I have no idea when a specific change has gone online. Especially considering that both FileBot and CloudFlare cache static resources like the script jar 1-2 weeks.
If I thought that it was an important non-breaking change, then I probably would have pushed a new jar 2-3 days after the GitHub commit.
If I thought that it was an important non-breaking change, then I probably would have pushed a new jar 2-3 days after the GitHub commit.