連線磁碟機失敗的協助

大家好,

我因搬遷並整合伺服器,遇到一個詭異的問題,不知道該如何解決。

我有一台 NAS 伺服器 Truenas,用來存放所有 Plex 錄影。媒體共享資料夾在 Plex 伺服器(同時也跑 MCEBuddy)上映射為 Z:。

我使用 Plex 的後處理腳本把 H264 錄影轉成 H265。腳本確實被呼叫,但查看紀錄時卻看到:

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

如果我手動把檔案拖曳進佇列,就能正常處理。

更奇怪的是,若讓資料夾監控去掃描該位置,也能找到並處理錄影。

我已設定使用者名稱與密碼,後端也改用 MCEBuddy.ServiceCMD.exe 而非系統服務。

我知道 MCEBuddy / Windows 對映射磁碟機 / 相同憑證超級敏感,但原以為三種方式(Plex 後處理腳本、手動拖曳、掃描)會一起失敗——結果第一種失敗,後兩種正常,讓我十分困惑。

該如何解決?

檢查手動新增檔案的使用者名稱和密碼。MCEBuddy 要求您為監控位置與手動新增的遠端位置分別設定使用者名稱/密碼。

另外,NAS 是否可能有時間差問題(懷疑同時存取多個檔案是否導致問題)。

受監控和手動新增的檔案都正常——只有在 Plex 後處理腳本觸發 MCEBuddy 時才會出現「無法存取」錯誤,監控與一般使用者名稱/密碼的系統設定都使用同一組帳密。

我若在 NAS 上為 MCEBuddy 建立一組專屬的使用者名稱和密碼會有幫助嗎?

感謝協助!Will。

不,我觉得那不会起作用,CLI 和手动使用的用户名/密码是一样的。

根据你的描述,听起来 Plex 在调用 CLI 时可能仍在访问该文件,因此当 MCEBuddy 尝试访问时无法成功。如果你稍等一会儿再手动操作,或者让监控位置稍后再拾取,文件就会被解锁。

试着在你的脚本里加个延迟,等几分钟再触发 CLI。

我尝试添加了延迟——仍然出现错误。我还尝试在 NAS 上新建用户/密码,依旧无效。

最终解决的办法是:把需要映射驱动器的工作负载移到另一台机器,并移除映射驱动器。操作完成后,MCEBuddy 立即运行完美。虽然很高兴它能用了,但这个限制很不方便——有什么变通方法,还是这就是 Windows 底层基础设施的问题?