FileSystemException: An unexpected network error occurred

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
JimmyB4403
Posts: 20
Joined: 28 Oct 2014, 14:07

FileSystemException: An unexpected network error occurred

Post by JimmyB4403 »

Apparently 2 days ago the AMC script completely stopped working for me and I just realized. I had this happen a long time ago and it was when there was an update to the FileBot app, so that was the first thing I checked this time. Sure enough, there was an update out there, so I updated the app through the Windows Store. Unfortunately, after the update, things still aren't going smooth for me.

Here is the data from fn:sysinfo:

Code: Select all

FileBot 4.7.8 (r4842)
JNA Native: 5.1.0
MediaInfo: 0.7.92.1
7-Zip-JBinding: 9.20
Chromaprint: 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-03-24 (r490)
Groovy: 2.4.8
JRE: Java(TM) SE Runtime Environment 1.8.0_121
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 8 Core / 7 GB Max Memory / 23 MB Used Memory
OS: Windows 10 (amd64)
Package: APPX
Data: C:\Users\jimmy\AppData\Roaming\FileBot
Done ?(?????)?
and here is the log from the most recent attempt of running the AMC script:

Code: Select all

Run script [fn:amc] at [Mon Mar 27 22:25:55 CDT 2017]
Parameter: music = n
Parameter: subtitles = en
Parameter: ignore = idx
Parameter: pushbullet = *****
Parameter: plex = *****
Parameter: seriesFormat = TV Shows/{n}/{n} - {s00e00} - {t}
Parameter: movieFormat = Movies/{n} ({y})/{n} ({y})
Parameter: ut_label = 
Parameter: ut_state = 20
Parameter: ut_title = The.Walking.Dead.S07E14.720p.HDTV.x264-AVS
Parameter: ut_kind = multi
Parameter: ut_file = the.walking.dead.s07e14.720p.hdtv.x264-avs.r28
Parameter: ut_dir = C:\Users\Jimmy\Torrents\Completed\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS
Ignore extra: C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\Sample
Read archive [the.walking.dead.s07e14.720p.hdtv.x264-avs.rar] and extract to [C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\the.walking.dead.s07e14.720p.hdtv.x264-avs\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS]
Extracting files [C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\the.walking.dead.s07e14.720p.hdtv.x264-avs\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS.mkv]
Input: C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\the.walking.dead.s07e14.720p.hdtv.x264-avs\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS.mkv
Group: [tvs:the walking dead] => [The.Walking.Dead.S07E14.720p.HDTV.x264-AVS.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Failed to compute hash
java.lang.IllegalStateException: Failed to retrieve subtitle language map
	at net.filebot.web.OpenSubtitlesClient.getSubLanguageID(OpenSubtitlesClient.java:480)
	at net.filebot.web.OpenSubtitlesClient.getLanguageFilter(OpenSubtitlesClient.java:468)
	at net.filebot.web.OpenSubtitlesClient.lambda$getSubtitleListByHash$11(OpenSubtitlesClient.java:220)
	at net.filebot.web.OpenSubtitlesClient.getSubtitleList(OpenSubtitlesClient.java:204)
	at net.filebot.web.OpenSubtitlesClient.getSubtitleListByHash(OpenSubtitlesClient.java:216)
	at net.filebot.web.OpenSubtitlesClient.getSubtitleList(OpenSubtitlesClient.java:181)
	at net.filebot.subtitle.SubtitleUtilities.lookupSubtitlesByHash(SubtitleUtilities.java:70)
	at net.filebot.cli.CmdlineOperations.getSubtitles(CmdlineOperations.java:693)
	at net.filebot.cli.CmdlineOperations.getMissingSubtitles(CmdlineOperations.java:780)
	at net.filebot.cli.ScriptShellBaseClass.getMissingSubtitles(ScriptShellBaseClass.java:376)
	at Script1$_run_closure55$_closure132.doCall(Script1.groovy:413)
	at Script1$_run_closure55.doCall(Script1.groovy:412)
	at Script1.run(Script1.groovy:409)
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:122)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
	at net.filebot.Main.main(Main.java:115)
Caused by: redstone.xmlrpc.XmlRpcException: The response could not be parsed.
	at redstone.xmlrpc.XmlRpcClient.handleResponse(Unknown Source)
	at redstone.xmlrpc.XmlRpcClient.endCall(Unknown Source)
	at redstone.xmlrpc.XmlRpcClient.invoke(Unknown Source)
	at net.filebot.web.OpenSubtitlesXmlRpc.invoke(OpenSubtitlesXmlRpc.java:345)
	at net.filebot.web.OpenSubtitlesClient$OpenSubtitlesXmlRpcWithRetryAndFloodLimit.invoke(OpenSubtitlesClient.java:529)
	at net.filebot.web.OpenSubtitlesXmlRpc.getSubLanguages(OpenSubtitlesXmlRpc.java:316)
	at net.filebot.web.OpenSubtitlesXmlRpc.getSubLanguages(OpenSubtitlesXmlRpc.java:312)
	at net.filebot.web.OpenSubtitlesClient.lambda$getSubLanguageMap$16(OpenSubtitlesClient.java:433)
	at net.filebot.Cache.computeIf(Cache.java:90)
	at net.filebot.Cache.computeIfAbsent(Cache.java:96)
	at net.filebot.web.OpenSubtitlesClient.getSubLanguageMap(OpenSubtitlesClient.java:433)
	at net.filebot.web.OpenSubtitlesClient.getSubLanguageID(OpenSubtitlesClient.java:478)
	... 17 more
Caused by: java.io.IOException: Server returned HTTP response code: 503 for URL: https://api.opensubtitles.org/xml-rpc
	... 29 more

Lookup by hash failed: Failed to retrieve subtitle language map
No matching subtitles found: C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\the.walking.dead.s07e14.720p.hdtv.x264-avs\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [The Walking Dead]
Fetching episode data for [The Walking Dead]
Fetching episode data for [Fear the Walking Dead]
Fetching episode data for [Talking Dead]
[COPY] From [C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\the.walking.dead.s07e14.720p.hdtv.x264-avs\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS.mkv] to [\\NAS\Media\TV Shows\The Walking Dead\The Walking Dead - S07E14 - The Other Side.mkv]
[COPY] Failure: java.nio.file.FileSystemException: C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\the.walking.dead.s07e14.720p.hdtv.x264-avs\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS.mkv -> \\NAS\Media\TV Shows\The Walking Dead\The Walking Dead - S07E14 - The Other Side.mkv: An unexpected network error occurred.

Processed 0 files
FileSystemException: C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\the.walking.dead.s07e14.720p.hdtv.x264-avs\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS\The.Walking.Dead.S07E14.720p.HDTV.x264-AVS.mkv -> \\NAS\Media\TV Shows\The Walking Dead\The Walking Dead - S07E14 - The Other Side.mkv: An unexpected network error occurred.

Finished without processing any files
Failure (°_°)
The thing is, the file gets extracted, renamed, and moved to the correct location, but the script isn't calling on Plex, Pushbullet, and is resulting in a "failure" according to the log. Any help would be appreciated.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Failed to retrieve subtitle language map

Post by rednoah »

FileBot is working. You have permission issues:

Code: Select all

FileSystemException: An unexpected network error occurred.
Restart your computer. Restart your NAS. Use a mapped network drive if UNC paths don't work.

@see viewtopic.php?f=10&t=4881
:idea: Please read the FAQ and How to Request Help.
JimmyB4403
Posts: 20
Joined: 28 Oct 2014, 14:07

Re: FileSystemException: An unexpected network error occurred

Post by JimmyB4403 »

Thanks for the response. It must have had something to do with my first time using the Windows Store to purchase your app. Unfortunately, I'm still having some problems, and it's puzzling me. I rebooted my computer and NAS, disconnected any mapped drives, remapped the drives, and switched to using the actual drive path instead of the UNC path. After that last tweak, it finally worked (or so I thought)

Code: Select all

Run script [fn:amc] at [Tue Mar 28 20:00:34 CDT 2017]
Parameter: music = n
Parameter: subtitles = en
Parameter: ignore = idx
Parameter: pushbullet = *****
Parameter: plex = *****
Parameter: seriesFormat = TV Shows/{n}/{n} - {s00e00} - {t}
Parameter: movieFormat = Movies/{n} ({y})/{n} ({y})
Parameter: ut_label = 
Parameter: ut_state = 20
Parameter: ut_title = The.Walking.Dead.S07E15.720p.HDTV.x264-AVS
Parameter: ut_kind = multi
Parameter: ut_file = Sample\sample-the.walking.dead.s07e15.720p.hdtv.x264-avs.mkv
Parameter: ut_dir = C:\Users\Jimmy\Torrents\Completed\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS
Ignore extra: C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS\Sample
Read archive [the.walking.dead.s07e15.720p.hdtv.x264-avs.rar] and extract to [C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS\the.walking.dead.s07e15.720p.hdtv.x264-avs\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS]
Extracting files [C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS\the.walking.dead.s07e15.720p.hdtv.x264-avs\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS.mkv]
Input: C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS\the.walking.dead.s07e15.720p.hdtv.x264-avs\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS.mkv
Group: [tvs:the walking dead] => [The.Walking.Dead.S07E15.720p.HDTV.x264-AVS.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Fetching [English] subtitles [The Walking Dead - 07x15 - Something They Need.HDTV.x264-SVA.srt] from [OpenSubtitles]
Export [The Walking Dead - 07x15 - Something They Need.HDTV.x264-SVA.srt] as [SubRip / UTF-8]
Writing [The Walking Dead - 07x15 - Something They Need.HDTV.x264-SVA.srt] to [The.Walking.Dead.S07E15.720p.HDTV.x264-AVS.eng.srt]
Rename episodes using [TheTVDB]
Auto-detected query: [The Walking Dead]
Fetching episode data for [The Walking Dead]
Fetching episode data for [Fear the Walking Dead]
Fetching episode data for [Talking Dead]
Auto-detected query: [The Walking Dead]
Fetching episode data for [The Walking Dead]
Fetching episode data for [Fear the Walking Dead]
Fetching episode data for [Talking Dead]
[COPY] From [C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS\the.walking.dead.s07e15.720p.hdtv.x264-avs\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS.eng.srt] to [M:\Media\TV Shows\The Walking Dead\The Walking Dead - S07E15 - Something They Need.srt]
[COPY] From [C:\Users\jimmy\Torrents\Completed\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS\the.walking.dead.s07e15.720p.hdtv.x264-avs\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS\The.Walking.Dead.S07E15.720p.HDTV.x264-AVS.mkv] to [M:\Media\TV Shows\The Walking Dead\The Walking Dead - S07E15 - Something They Need.mkv]
Processed 2 files
Notify Plex: [host:192.168.1.133, token:***********]
GET: http://192.168.1.133:32400/library/sections/all/refresh?X-Plex-Token=************
Sending PushBullet report
Done ヾ(@⌒ー⌒@)ノ
The problem wasn't that one, but the next file I downloaded, which produced this result:

Code: Select all

Run script [fn:amc] at [Tue Mar 28 20:08:49 CDT 2017]
Parameter: music = n
Parameter: subtitles = en
Parameter: ignore = idx
Parameter: pushbullet = *****
Parameter: plex = *****
Parameter: seriesFormat = TV Shows/{n}/{n} - {s00e00} - {t}
Parameter: movieFormat = Movies/{n} ({y})/{n} ({y})
Parameter: ut_label = 
Parameter: ut_state = 20
Parameter: ut_title = The.Flash.2014.S03E18.720p.HDTV.X264-DIMENSION
Parameter: ut_kind = multi
Parameter: ut_file = Sample\the.flash.2014.318.720p-dimension.sample.mkv
Parameter: ut_dir = C:\Users\Jimmy\Torrents\Completed\The.Flash.2014.S03E18.720p.HDTV.X264-DIMENSION
IOException: An unexpected network error occurred
Illegal usage: output folder must exist and must be a directory: null
Failure (°_°)
As you can see these were run 8 minutes apart from each other. I made no changes to the command line in uTorrent. Any ideas?
JimmyB4403
Posts: 20
Joined: 28 Oct 2014, 14:07

Re: FileSystemException: An unexpected network error occurred

Post by JimmyB4403 »

Just to add to my prior post. When using either the UNC or mapped drive location I receive the "unexpected network error occurred" failure in my log. The weird part is, it creates a file with the correct name in the desired location, but the file size is 0KB. But since it is able to even do that much, it should be able to write to that location I would think?

I'm happy to have paid for the app, and have donated to you in the past, but it's frustrating that this had been working flawlessly up until the older version I was using apparently stopped being supported and could only be purchased through the Windows Store which caused all of this permissions trouble.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileSystemException: An unexpected network error occurred

Post by rednoah »

What's the filebot amc command you're using?

The console output suggests that you're using the --output option incorrectly.

If --output refers to a network path, then a temporary network problem would explain this error:

Code: Select all

IOException: An unexpected network error occurred
The network permission reset problem is a known issue, but this last one has never been reported before, so it might be independent of any Windows Store issues.
:idea: Please read the FAQ and How to Request Help.
JimmyB4403
Posts: 20
Joined: 28 Oct 2014, 14:07

Re: FileSystemException: An unexpected network error occurred

Post by JimmyB4403 »

Here is the uTorrent run line:

Code: Select all

filebot.launcher.exe -script fn:amc --output "M:/Media" --log-file "C:\Users\Jimmy\Desktop\FileBot\amc.log" --action copy --conflict skip -non-strict --def music=n subtitles=en ignore="idx" pushbullet=************ plex=192.168.1.133:******** "seriesFormat=TV Shows/{n}/{n} - {s00e00} - {t}" "movieFormat=Movies/{n} ({y})/{n} ({y})" "ut_label=%L" "ut_state=%S" "ut_title=%N" "ut_kind=%K" "ut_file=%F" "ut_dir=%D"
and here is the most recent log result from that run line:

Code: Select all

Run script [fn:amc] at [Wed Mar 29 06:12:37 CDT 2017]
Parameter: music = n
Parameter: subtitles = en
Parameter: ignore = idx
Parameter: pushbullet = *****
Parameter: plex = *****
Parameter: seriesFormat = TV Shows/{n}/{n} - {s00e00} - {t}
Parameter: movieFormat = Movies/{n} ({y})/{n} ({y})
Parameter: ut_label = 
Parameter: ut_state = 20
Parameter: ut_title = The.Detour.S02E07.720p.HDTV.X264-DIMENSION
Parameter: ut_kind = multi
Parameter: ut_file = Sample\the.detour.207.720p-dimension.sample.mkv
Parameter: ut_dir = C:\Users\Jimmy\Torrents\Completed\The.Detour.S02E07.720p.HDTV.X264-DIMENSION
Ignore extra: C:\Users\jimmy\Torrents\Completed\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\Sample
Read archive [the.detour.207.720p-dimension.rar] and extract to [C:\Users\jimmy\Torrents\Completed\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\the.detour.207.720p-dimension\The.Detour.S02E07.720p.HDTV.X264-DIMENSION]
Extracting files [C:\Users\jimmy\Torrents\Completed\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\the.detour.207.720p-dimension\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\The.Detour.S02E07.720p.HDTV.X264-DIMENSION.mkv]
Input: C:\Users\jimmy\Torrents\Completed\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\the.detour.207.720p-dimension\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\The.Detour.S02E07.720p.HDTV.X264-DIMENSION.mkv
Group: [tvs:the detour] => [The.Detour.S02E07.720p.HDTV.X264-DIMENSION.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: C:\Users\jimmy\Torrents\Completed\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\the.detour.207.720p-dimension\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\The.Detour.S02E07.720p.HDTV.X264-DIMENSION.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [The Detour]
Fetching episode data for [The Detour]
Fetching episode data for [The Den]
Fetching episode data for [The Detonators]
[COPY] From [C:\Users\jimmy\Torrents\Completed\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\the.detour.207.720p-dimension\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\The.Detour.S02E07.720p.HDTV.X264-DIMENSION.mkv] to [M:\Media\TV Shows\The Detour\The Detour - S02E07 - The Heat.mkv]
[COPY] Failure: java.nio.file.FileSystemException: C:\Users\jimmy\Torrents\Completed\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\the.detour.207.720p-dimension\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\The.Detour.S02E07.720p.HDTV.X264-DIMENSION.mkv -> M:\Media\TV Shows\The Detour\The Detour - S02E07 - The Heat.mkv: An unexpected network error occurred.

Processed 0 files
FileSystemException: C:\Users\jimmy\Torrents\Completed\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\the.detour.207.720p-dimension\The.Detour.S02E07.720p.HDTV.X264-DIMENSION\The.Detour.S02E07.720p.HDTV.X264-DIMENSION.mkv -> M:\Media\TV Shows\The Detour\The Detour - S02E07 - The Heat.mkv: An unexpected network error occurred.

Finished without processing any files
Failure (°_°)
As you can see, I'm using a mapped drive instead of a UNC, so I'm not sure why I'm still getting "An unexpected network error occurred". But as I mentioned in a prior post, sporadically it works fine (an example from 20 minutes later with the same run line). This makes me think the issue is somewhere in the script. Please advise:

Code: Select all

Run script [fn:amc] at [Wed Mar 29 06:35:42 CDT 2017]
Parameter: music = n
Parameter: subtitles = en
Parameter: ignore = idx
Parameter: pushbullet = *****
Parameter: plex = *****
Parameter: seriesFormat = TV Shows/{n}/{n} - {s00e00} - {t}
Parameter: movieFormat = Movies/{n} ({y})/{n} ({y})
Parameter: ut_label = 
Parameter: ut_state = 20
Parameter: ut_title = The.Detour.S02E06.HDTV.x264-LOL
Parameter: ut_kind = multi
Parameter: ut_file = the.detour.206.hdtv-lol.nfo
Parameter: ut_dir = C:\Users\Jimmy\Torrents\Completed\The.Detour.S02E06.HDTV.x264-LOL
Read archive [the.detour.206.hdtv-lol.rar] and extract to [C:\Users\jimmy\Torrents\Completed\The.Detour.S02E06.HDTV.x264-LOL\the.detour.206.hdtv-lol\The.Detour.S02E06.HDTV.x264-LOL]
Extracting files [C:\Users\jimmy\Torrents\Completed\The.Detour.S02E06.HDTV.x264-LOL\the.detour.206.hdtv-lol\The.Detour.S02E06.HDTV.x264-LOL\the.detour.206.hdtv-lol.mkv]
Input: C:\Users\jimmy\Torrents\Completed\The.Detour.S02E06.HDTV.x264-LOL\the.detour.206.hdtv-lol\The.Detour.S02E06.HDTV.x264-LOL\the.detour.206.hdtv-lol.mkv
Group: [tvs:the detour] => [the.detour.206.hdtv-lol.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Fetching [English] subtitles [The Detour - 02x06 - The Tournament.LOL.C.srt] from [OpenSubtitles]
Export [The Detour - 02x06 - The Tournament.LOL.C.srt] as [SubRip / UTF-8]
Writing [The Detour - 02x06 - The Tournament.LOL.C.srt] to [the.detour.206.hdtv-lol.eng.srt]
Rename episodes using [TheTVDB]
Auto-detected query: [The Detour]
Fetching episode data for [The Detour]
Fetching episode data for [The Den]
Fetching episode data for [The Detonators]
Auto-detected query: [The Detour]
Fetching episode data for [The Detour]
Fetching episode data for [The Den]
Fetching episode data for [The Detonators]
[COPY] From [C:\Users\jimmy\Torrents\Completed\The.Detour.S02E06.HDTV.x264-LOL\the.detour.206.hdtv-lol\The.Detour.S02E06.HDTV.x264-LOL\the.detour.206.hdtv-lol.eng.srt] to [M:\Media\TV Shows\The Detour\The Detour - S02E06 - The Tournament.srt]
[COPY] From [C:\Users\jimmy\Torrents\Completed\The.Detour.S02E06.HDTV.x264-LOL\the.detour.206.hdtv-lol\The.Detour.S02E06.HDTV.x264-LOL\the.detour.206.hdtv-lol.mkv] to [M:\Media\TV Shows\The Detour\The Detour - S02E06 - The Tournament.mkv]
Processed 2 files
Notify Plex: [host:192.168.1.133, token:9hf73btFcXzvWNZqHaD9]
GET: http://192.168.1.133:32400/library/sections/all/refresh?X-Plex-Token=9hf73btFcXzvWNZqHaD9
Sending PushBullet report
Done ヾ(@⌒ー⌒@)ノ
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileSystemException: An unexpected network error occurred

Post by rednoah »

If timing makes things work and not work at random, then it's most certainly not the script or filebot (which don't change) but the environment in which it's running (which can change).

:?: Have you tried using UNC paths instead of mapped network drives after resetting your security credentials? If you use the hostname to access the share, use IP instead, and vice versa.

:?: Have you tried this? http://serverfault.com/a/491755/341621

:idea: I'd also try a different share on a different device for good measure and see if that behaves the same way.

EDIT:

:idea: Does using filebot instead of filebot.launcher.exe make a difference?
:idea: Please read the FAQ and How to Request Help.
JimmyB4403
Posts: 20
Joined: 28 Oct 2014, 14:07

Re: FileSystemException: An unexpected network error occurred

Post by JimmyB4403 »

So far, the solution has been to use the IP address instead of the hostname. I'm not sure why that is the fix, but apparently it is.
JimmyB4403
Posts: 20
Joined: 28 Oct 2014, 14:07

Re: FileSystemException: An unexpected network error occurred

Post by JimmyB4403 »

An unrelated question for you, now that this fiasco is seemingly over. Is there anyway when calling Plex through AMC, to have it only scan the library that you updated, rather than all? I have separate libraries for TV Shows, Movies and Music that are all pretty sizable.

Code: Select all

Notify Plex: [host:192.168.1.133, token:*****
GET: http://192.168.1.133:32400/library/sections/all/refresh?X-Plex-Token=*****
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileSystemException: An unexpected network error occurred

Post by rednoah »

No. Plex being slow is a Plex issue.

How many files do you have? The find command can search through your file system for recently modified files at a speeds upwards of ~100.000 files per second.

Even with a large music library, you won't be anywhere close to a million files, and even then it'd just take ~10 seconds to find new files.

:idea: You can do your own --def exec calls though, and only update certain libraries as necessary, but it's still a bad solution because you'll be refreshing an entire section, and not just the newly added files.

:idea: The most high performance solution would probably to use --def exec to log into the Plex server via SSH and then update new content by using the plex command-line tools (either by using find to find recently modified files, or by passing the hard-coded server-side folder path).
:idea: Please read the FAQ and How to Request Help.
JimmyB4403
Posts: 20
Joined: 28 Oct 2014, 14:07

Re: FileSystemException: An unexpected network error occurred

Post by JimmyB4403 »

I don't have anywhere near a million files, maybe closer to 100,000. When the filebot script calls Plex, it's updating each library, but it probably takes 10 minutes or so to go through all 3 of my libraries. I'm unfamiliar how I would use the find command to help in this regard, could you shed more light on that for me please? Thanks!
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileSystemException: An unexpected network error occurred

Post by rednoah »

find gives you a baseline how long it takes to find new files. You can look into the Plex command-line tools and see if you can find a way to add / refresh given paths.

1. Use find to list files that have been modified within X amount of time
2. Tell plex to update given files

You will need some basic command-line skills. I don't have copy-paste solution for you. You'll have to figure it out, but I don't see any particular challenge here, assuming that you can tell plex to update some given file or folder.

I'd start by making sure this is in fact possible, e.g. try something like this:

Code: Select all

pms --refresh --directory /path/to/new/directory
@see https://support.plex.tv/hc/en-us/articl ... mmand-Line
:idea: Please read the FAQ and How to Request Help.
MuddSkipp3r
Posts: 4
Joined: 28 Mar 2017, 21:20

Re: FileSystemException: An unexpected network error occurred

Post by MuddSkipp3r »

JimmyB4403 wrote:So far, the solution has been to use the IP address instead of the hostname. I'm not sure why that is the fix, but apparently it is.
Jimmy,

Would you mind sharing your new command for this to work? I am running into the exact same issue since the update. Specifically I'm curious what you set your 'output' and your directory path with the (hopefully masked) IP address looks like.

Thanks
Tank80
Posts: 2
Joined: 03 Aug 2017, 09:33

Re: FileSystemException: An unexpected network error occurred

Post by Tank80 »

I'm actually having the exact same problem as Jimmy and MiddSkipp3r.
Things had been running perfectly for many months. At some point the filebot API had changed and my version broke. After purchasing from the Windows Store I started having this error intermittently. It seems to be triggered when filebot is copying files between folders on my NAS and happens almost everytime (but not always).

What I have tried:
  • Bought a new NAS and HDDs (Yes cost a lot, but a good end result)
    Used IP Addressed Paths, UNC and Mapped Paths in uTorrent
    Downloaded to 1 NAS and copied to a second NAS with filebot
    Disabled TCP Offloading on the NIC
Another symptom is that when filebot errors with the FileSystemException, all my active torrents go red and show either a WriteToDisk error or a ReadFromDisk error.
It seems that the network has just stopped. I am thinking that although filebot maybe triggering the issue, its a network issue with my media server. The network seems to glitch out for a second or two. If there was a Retry mode in FileBot and in uTorrent, I don't think I'd error see the error.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileSystemException: An unexpected network error occurred

Post by rednoah »

It's interesting that you see symptoms in uTorrent (which is not sandboxed) as well. There's definitely some low-level filesystem driver issue that's getting triggered by FileBot somehow.

This kind of issue might be worth reporting to Microsoft. Windows should be writing some useful logs somewhere, but I also wouldn't know where to find them.

Since you're using the command-line tool, adding custom reply logic shouldn't be too difficult. There's many ways.

e.g. Implement custom action that takes care of retry:
viewtopic.php?t=4915

e.g. Check exit code and retry:
viewtopic.php?t=5157
:idea: Please read the FAQ and How to Request Help.
Tank80
Posts: 2
Joined: 03 Aug 2017, 09:33

Re: FileSystemException: An unexpected network error occurred

Post by Tank80 »

Thanks for the suggestions, I will try to resolve and post again if I make progress.
Post Reply