Help with mapped drive failure

Hi all,

I’ve had to move and consolidate servers and that’s got me running into a weird problem I don’t know how to solve.

I have a NAS server, Truenas, which stores all my Plex recordings. The media share is mapped on my plex server which also runs MCEBuddy as z:

I’m using Plex’s post processing script to transcode the H264 recordings to H265. The script invokes fine but when I look at the logs, I see the following:

WARNING> 2023-02-14T19:31:31 MCEBuddy.Engine.QueueManager --> Manually selected file Z:\_TV\TV-DVR\.grab\2fdc3ecf19384bb132a02bb7364f74d2c6ec36d8-70aa275f6292d0660d7058ab1a81033bde811485\Bob's Burgers (2011) - S11E11 - Romancing the Beef.ts does not exist or MCEBuddy doesn't have read permissions, skipping
ERROR> 2023-02-14T19:32:34 MCEBuddy.Engine.QueueManager --> Unable to process files in location \\TRUENAS\Media\_TV for monitor task Plex-DVR
ERROR : Thread was being aborted.
INFORMATION> 2023-02-14T19:32:35 MCEBuddy.Engine.Core --> MCEBuddy engine stopped
INFORMATION> 2023-02-14T19:32:35 MCEBuddy.Engine.Core --> Setting engine last running state to stop
2023-02-14T19:32:35 MCEBuddy.Engine.QueueManager --> Attempting to connect to network share \\TRUENAS\Media\_TV
2023-02-14T19:32:35 MCEBuddy.Engine.Core --> Loaded MCEBuddy engine settings
INFORMATION> --> Windows OS Version -> Microsoft Windows NT 10.0.19045.0 (WIN_10_2016_SERVER, Professional)
INFORMATION> --> Windows Platform -> 64 Bit
INFORMATION> --> MCEBuddy Build Platform -> 64 Bit
INFORMATION> --> MCEBuddy Build Version : 2.5.8.0
INFORMATION> --> MCEBuddy Build Date : 02/11/2023 07:50:32
INFORMATION> --> MCEBuddy Running as Service : False
INFORMATION> --> MCEBuddy License -> Premium
--> Locale Language -> ENG
2023-02-14T19:33:30 MCEBuddy.Engine.QueueManager --> Monitor task Plex-DVR : Checking Filter and Metadata Matches for File -> \\TRUENAS\Media\_TV\TV-DVR\Bob's Burgers (2011)\Season 11\Bob's Burgers (2011) - S11E11 - Romancing the Beef.ts, Conversion Task -> Convert to MP4
2023-02-14T19:33:30 MCEBuddy.Engine.QueueManager --> File >Bob's Burgers (2011) - S11E11 - Romancing the Beef.ts<, checking filename filter ><
INFORMATION> --> Extracting metadata from file \\TRUENAS\Media\_TV\TV-DVR\Bob's Burgers (2011)\Season 11\Bob's Burgers (2011) - S11E11 - Romancing the Beef.ts
2023-02-14T19:33:30 MCEBuddy.MetaData.VideoMetaData --> Extracting metadata from file -> \\TRUENAS\Media\_TV\TV-DVR\Bob's Burgers (2011)\Season 11\Bob's Burgers (2011) - S11E11 - Romancing the Beef.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-02-14T19:33:30 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-02-14T19:33:30 MCEBuddy.MetaData.VideoMetaData --> Trying to match nPVR/SiliconDust/FlixGrab series showname -> Bob's Burgers (2011) - S11E11 - Romancing the Beef
2023-02-14T19:33:30 MCEBuddy.MetaData.VideoMetaData --> Looking for Season/Episode information in text
2023-02-14T19:33:30 MCEBuddy.MetaData.VideoMetaData --> Pattern 1, Found Season/Episode information in text, Season:11, Episode:11
--> Looking for Premiere Year information in text
--> Found Premiere Year information in text, Year:2011
2023-02-14T19:33:30 MCEBuddy.MetaData.VideoMetaData --> Successfully matched nPVR/SiliconDust/FlixGrab series filename metadata
2023-02-14T19:33:30 MCEBuddy.MetaData.VideoMetaData --> Video Tags extracted from file/name metadata -> 
Title: Bob's Burgers
SubTitle: Romancing the Beef
Description: 
Network: 
Network Affiliate: 
Parental Rating: 
Media Credits: 
Genres: 
Season: 11
Episode: 11
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: 2011-05-05T00:00:00
CopyProtected: False
SageTV FileID: 
SageTV MediaFileID: 

2023-02-14T19:33:30 MCEBuddy.MetaData.VideoMetaData --> Checking for metadata title and ID correction
2023-02-14T19:33:30 MCEBuddy.MetaData.VideoMetaData --> Checking for metadata type correction
INFORMATION> 2023-02-14T19:33:30 MCEBuddy.MetaData.VideoMetaData --> Skipping downloading Series details
2023-02-14T19:33:30 MCEBuddy.MetaData.VideoMetaData --> Updated Video Tags extracted after downloading details -> 
Title: Bob's Burgers
SubTitle: Romancing the Beef
Description: 
Network: 
Network Affiliate: 
Parental Rating: 
Media Credits: 
Genres: 
Season: 11
Episode: 11
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: 2011-05-05T00:00:00
CopyProtected: False
SageTV FileID: 
SageTV MediaFileID: 

2023-02-14T19:33:30 MCEBuddy.Engine.QueueManager --> Show >Bob's Burgers<, checking for showname filter ><
2023-02-14T19:33:30 MCEBuddy.Engine.QueueManager --> Network ><, checking for network/channel filter ><
2023-02-14T19:33:30 MCEBuddy.Engine.QueueManager --> IsSports >False<, IsMovie >False<, checking for show type filter >Default<
2023-02-14T19:33:30 MCEBuddy.Engine.QueueManager --> Checking for file size ><
2023-02-14T19:33:30 MCEBuddy.Engine.QueueManager --> Checking for video bitrate ><
2023-02-14T19:33:30 MCEBuddy.Engine.QueueManager --> Checking for video width ><
2023-02-14T19:33:30 MCEBuddy.Engine.QueueManager --> Checking for codec filter >Any<
INFORMATION> 2023-02-14T19:33:30 MCEBuddy.Engine.QueueManager --> Monitor task Plex-DVR : Added new job to queue using conversion task -> Convert to MP4 for \\TRUENAS\Media\_TV\TV-DVR\Bob's Burgers (2011)\Season 11\Bob's Burgers (2011) - S11E11 - Romancing the Beef.ts
2023-02-14T19:33:30 MCEBuddy.Engine.ConversionJob --> Starting Conversion Thread
INFORMATION> 2023-02-14T19:33:30 MCEBuddy.Engine.Core --> Job for \\TRUENAS\Media\_TV\TV-DVR\Bob's Burgers (2011)\Season 11\Bob's Burgers (2011) - S11E11 - Romancing the Beef.ts started using conversion task -> Convert to MP4 and profile -> HEVC MKV
2023-02-14T19:33:30 MCEBuddy.Engine.Core --> Temp working path is D:\working0
2023-02-14T19:33:30 MCEBuddy.Engine.Core --> Starting new conversions, preventing system sleep
INFORMATION> 2023-02-14T19:33:31 MCEBuddy.Engine.ConversionJob --> Creating log file : C:\Program Files\MCEBuddy2x\log\Bob's Burgers (2011) - S11E11 - Romancing the Beef.ts-Convert to MP4-2023-02-14T19-33-30.log
INFORMATION> 2023-02-14T19:42:56 MCEBuddy.Engine.Core --> Job for \\TRUENAS\Media\_TV\TV-DVR\Bob's Burgers (2011)\Season 11\Bob's Burgers (2011) - S11E11 - Romancing the Beef.ts completed
2023-02-14T19:42:56 MCEBuddy.Engine.Core --> Deleting original file \\TRUENAS\Media\_TV\TV-DVR\Bob's Burgers (2011)\Season 11\Bob's Burgers (2011) - S11E11 - Romancing the Beef.ts
INFORMATION> 2023-02-14T19:42:56 --> Job for \\TRUENAS\Media\_TV\TV-DVR\Bob's Burgers (2011)\Season 11\Bob's Burgers (2011) - S11E11 - Romancing the Beef.ts converted successfully to \\TRUENAS\Media\_TV\TV-DVR\Bob's Burgers (2011)\Season 11\Bob's Burgers (2011) - S11E11 - Romancing the Beef.mkv using conversion task -> Convert to MP4 and profile -> HEVC MKV
2023-02-14T19:42:56 MCEBuddy.Engine.Core --> No conversions running, allowing system sleep
WARNING> 2023-02-14T19:43:42 MCEBuddy.Engine.QueueManager --> File Bob's Burgers (2011) - S11E11 - Romancing the Beef.mkv did not match wildcard *.ts; for monitor task Plex-DVR

If I manually drag and drop the files into the queue, it processes fine.

Even more weird, if I let the folder monitor scan the location, it finds and processes the recordings fine as well.

I have a username and password configured. I’m also using MCEBuddy.ServiceCMD.exe vs the service for the backend.

I know MCEBuddy / Windows are super twitchy about the mapped drive / same credentials, but I would have guessed it would fail in all three approaches (the Plex post processing script, manual drag and drop, and scan) - the fact that the first fails, but not the other two confuses me.

How could I approach fixing this?

Check the username and password for the manually added files. MCEBuddy requires you to configure monitor locations and manually added remote locations with separate usernames/passwords.

Also could the NAS be having a timing issue (wondering if multiple files being accessed at the same time is causing an issue).

The monitored and manually added files work fine - only when MCEBuddy is kicked off by the plex postprocessing script does it get the “can’t access” error - same username and password is used for both the monitor and the general username / password system settings.

Would it make a difference for me to create a new MCEBuddy specific username and password on the NAS?

Thanks for the help! Will.

No I don’t think that’ll help, the user/pass used for the CLI and manual are the same.

From what you’re describing it sounds like Plex may be still accessing the file when it calls the CLI so when MCEBuddy tries to access it it’s not able to. When you wait to a bit and do it manually or when the monitor location waits and picks it up then it’s unlocked.

Try adding a delay to your script for wait for a few minutes before kicking off the CLI.

I tried adding a delay - still got the error. I also tried creating a new user / pass on the NAS, still nothing.

The thing that finally fixed it was moving a workload that required a mapped drive to a different machine and removing the mapped drive. As soon as I did that, MCEBuddy worked perfectly. I’m glad it works now, but it’s an inconvenient limitation - is there any workaround, or is this just underlying Windows infrastructure?