Bug in latest build when invoked by the CLI?

Hi MCEBuddy team,

I recently migrated Plex servers and am getting my environment back up and running. I’ve run into a weird issue with the latest 2.5.8 build (MCEBuddy 2.5.8 64bit - 20230510).

The Plex Post processing batch file which I’ve been using for years has stopped working. After doing some digging, I found out that from Plex’s perspective it was timing out.

In order to test the script, I manually tied to invoke the CLI from the command line against a .TS file that Plex created. The engine is already started, and I’m using the CMDService vs the Windows Service.

"C:\Program Files\MCEBuddy2x\MCEBuddy.UserCLI.exe" --command=addfile --action="Z:\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts"

Doing that results in this log entry:

WARNING> 2023-06-07T17:22:44 MCEBuddy.Engine.QueueManager --> Manually selected file Z:\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts does not exist or MCEBuddy doesn't have read permissions, skipping

I’ve validated that the network credentials are set under system settings. To double check, I tried manually dragging the same file to the GUI. It processes fine and creates the following entry in the log:

2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Manual file : Checking Filter and Metadata Matches for File -> \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts, Conversion Task -> Convert to MP4
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> File >PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts<, checking filename filter ><
INFORMATION> --> Extracting metadata from file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Extracting metadata from file -> \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts
--> Checking for SiliconDust meta tags
--> Starting to extract payload from TS file, upto 64 TS packets will be processed
--> Extracted 0 of 1 TS packet(s)
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Video Tags extracted -> 
Title: 
SubTitle: 
Description: 
Network: 
Network Affiliate: 
Parental Rating: 
Media Credits: 
Genres: 
Season: 0
Episode: 0
Banner: 
Banner URL: 
IMDB Id: 
MovieDB Id: 
TVDB Id: 
Is Movie: False
Is Sports: False
OriginalBroadcastDateTime: 1900-01-01T00:00:00
RecordedDateTime: 1900-01-01T00:00:00
SeriesPremiereDate: 1900-01-01T00:00:00
CopyProtected: False
SageTV FileID: 
SageTV MediaFileID: 

2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Trying to match nPVR/SiliconDust/FlixGrab series showname -> PBS NewsHour (2009) - S49E244 - PBS NewsHour
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Looking for Season/Episode information in text
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Pattern 1, Found Season/Episode information in text, Season:49, Episode:244
--> Looking for Premiere Year information in text
--> Found Premiere Year information in text, Year:2009
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Successfully matched nPVR/SiliconDust/FlixGrab series filename metadata
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Video Tags extracted from file/name metadata -> 
Title: PBS NewsHour
SubTitle: PBS NewsHour
Description: 
Network: 
Network Affiliate: 
Parental Rating: 
Media Credits: 
Genres: 
Season: 49
Episode: 244
Banner: 
Banner URL: 
IMDB Id: 
MovieDB Id: 
TVDB Id: 
Is Movie: False
Is Sports: False
OriginalBroadcastDateTime: 1900-01-01T00:00:00
RecordedDateTime: 1900-01-01T00:00:00
SeriesPremiereDate: 2009-05-05T00:00:00
CopyProtected: False
SageTV FileID: 
SageTV MediaFileID: 

2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Checking for metadata title and ID correction
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Checking for metadata type correction
INFORMATION> 2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Skipping downloading Series details
2023-06-07T17:24:54 MCEBuddy.MetaData.VideoMetaData --> Updated Video Tags extracted after downloading details -> 
Title: PBS NewsHour
SubTitle: PBS NewsHour
Description: 
Network: 
Network Affiliate: 
Parental Rating: 
Media Credits: 
Genres: 
Season: 49
Episode: 244
Banner: 
Banner URL: 
IMDB Id: 
MovieDB Id: 
TVDB Id: 
Is Movie: False
Is Sports: False
OriginalBroadcastDateTime: 1900-01-01T00:00:00
RecordedDateTime: 1900-01-01T00:00:00
SeriesPremiereDate: 2009-05-05T00:00:00
CopyProtected: False
SageTV FileID: 
SageTV MediaFileID: 

2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Show >PBS NewsHour<, checking for showname filter ><
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Network ><, checking for network/channel filter ><
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> IsSports >False<, IsMovie >False<, checking for show type filter >Default<
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Checking for file size ><
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Checking for video bitrate ><
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Checking for video width ><
2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Checking for codec filter >Any<
INFORMATION> 2023-06-07T17:24:54 MCEBuddy.Engine.QueueManager --> Manual file : Added new job to queue using conversion task -> Convert to MP4 for \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts
2023-06-07T17:24:55 MCEBuddy.Engine.ConversionJob --> Starting Conversion Thread
INFORMATION> 2023-06-07T17:24:55 MCEBuddy.Engine.Core --> Job for \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts started using conversion task -> Convert to MP4 and profile -> HEVC MKV
2023-06-07T17:24:55 MCEBuddy.Engine.Core --> Temp working path is C:\Program Files\MCEBuddy2x\working0
2023-06-07T17:24:55 MCEBuddy.Engine.Core --> Starting new conversions, allowing system sleep
INFORMATION> 2023-06-07T17:24:55 MCEBuddy.Engine.ConversionJob --> Creating log file : C:\Program Files\MCEBuddy2x\log\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts-Convert to MP4-2023-06-07T17-24-55.log
2023-06-07T17:25:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:25:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:26:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:26:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:27:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:27:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:28:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:28:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:29:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:29:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:30:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:30:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:31:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:31:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:32:55 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:32:55 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
<snip>
2023-06-07T17:44:56 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
2023-06-07T17:45:56 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49
2023-06-07T17:45:56 MCEBuddy.Engine.QueueManager --> Manually selected file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts added to queue
INFORMATION> 2023-06-07T17:46:01 MCEBuddy.Engine.Core --> Job for \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts completed
2023-06-07T17:46:01 MCEBuddy.Engine.Core --> Deleting original file \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts
INFORMATION> 2023-06-07T17:46:01 --> Job for \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.ts converted successfully to \\TRUENAS\Media\_TV\TV-DVR\PBS NewsHour (2009)\Season 49\PBS NewsHour (2009) - S49E244 - PBS NewsHour.mkv using conversion task -> Convert to MP4 and profile -> HEVC MKV
2023-06-07T17:46:01 MCEBuddy.Engine.Core --> No conversions running, allowing system sleep

It’s continuing to process now as I type. It’s also continuing to repeat the “added to queue” line as it ticks up in percentage complete in the GUI.

Any other log files I can provide to help troubleshoot?

Thanks! Will.

NOTE: Don’t forget to attach your conversion log or MCEBuddy.log file as appropriate

FWIW, I figured it out - I changed plex to the direct network share vs the mapped drive and it works perfectly now. I wish Windows wasn’t as sensitive to this sort of thing as it apparently is…

That’s correct, mapped drives don’t exist in system space (where services run), only in the user login. You should always use a direct network path if your engine is running as a service.

It’s not running as a service, however - it’s running as the command line tool. Still running into weird issues. Trying to sort it out now…

I found the time to debug this a bit - turns out that it was Bounjour. It does something to how UNC paths are resolved (I think it’s converting everything to an IP6 URL).

MCEBuddy now gets the file when invoked from the Post processing script, but Plex is now behaving weirdly. That’s the next thing to unsort…