RedBaron164 18 Posted May 15, 2019 Share Posted May 15, 2019 (edited) I'm in the process of moving my Emby server from Server 2012 R2 to Ubuntu 18.04. I didn't have any luck pointing Emby at the smb shares so I mapped each share to a local directory using cifs. And so far, my film and television show libraries are working properly. However my music library refuses to populate.I went through the logs and it appears that Emby is getting hung up on the DfsrPrivate folder. This isn't a problem for Emby while on my Windows server. My music share is replicated to multiple servers using DFS and the DfsrPrivate folder is a hidden systems folder that I can't make changes to.Even if I point this at a SMB share I have a feeling I will run into the same issue. I have attached a copy of my latest log and hopefully someone can point me in the right direction. embyserver.txt Edited May 15, 2019 by RedBaron164 Link to comment Share on other sites More sharing options...
Luke 37008 Posted May 15, 2019 Share Posted May 15, 2019 Hi, I've never heard of this folder before, but we can start ignoring it for the next release. Thanks. 1 Link to comment Share on other sites More sharing options...
Luke 37008 Posted May 15, 2019 Share Posted May 15, 2019 Additionally it looks like you might have migrated a little too much from windows, notice this path error in the logs: 2019-05-15 18:12:16.319 Error App: Error getting intro files *** Error Report *** Version: 4.1.1.0 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 4.15.0.48 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll Processor count: 2 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.IO.DirectoryNotFoundException: System.IO.DirectoryNotFoundException: Could not find a part of the path '/opt/emby-server/C:\Cinema Intro'. Things like that are bound to cause you some problems. Link to comment Share on other sites More sharing options...
RedBaron164 18 Posted May 15, 2019 Author Share Posted May 15, 2019 (edited) Sounds good.DfsrPrivate is a Hidden System Folder in Windows created when you are using DFS Replication. I replicate several shares, including my music library between three different servers in case one of them dies. You won't see this folder at all unless you have a DFS share and the Folder Option "Hide Protected Operating System Files (Recommended)" is unchecked. Is there anything I can do in the meantime to workaround this issue? *Regarding the Cinema Intro path, yeah, I found that when I posted the log and I've already fixed it :-) I restored my Windows backup to Ubuntu so I'm still going through and cleaning it up. I had to recreate my libraries from scratch because of it. Edited May 15, 2019 by RedBaron164 Link to comment Share on other sites More sharing options...
RedBaron164 18 Posted August 6, 2019 Author Share Posted August 6, 2019 I updated to the latest release today and I'm still seeing the access denied error for the DfsrPrivate folder. 2019-08-06 22:19:28.976 Error BaseItem: Error refreshing owned items for /drives/music *** Error Report *** Version: 4.2.0.40 Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb Operating system: Unix 4.18.0.1024 64-Bit OS: True 64-Bit Process: True User Interactive: True Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll Processor count: 2 Program data path: /var/lib/emby Application directory: /opt/emby-server/system System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path '/drives/music/DfsrPrivate' is denied. ---> System.IO.IOException: Permission denied --- End of inner exception stack trace --- at System.IO.FileStatus.EnsureStatInitialized(ReadOnlySpan`1 path, Boolean continueOnError) at System.IO.FileSystemInfo.Init(FileStatus& fileStatus) at System.IO.FileSystemInfo.Create(String fullPath, String fileName, FileStatus& fileStatus) at System.IO.Enumeration.FileSystemEntry.ToFileSystemInfo() at System.IO.Enumeration.FileSystemEnumerableFactory.<>c.<FileSystemInfos>b__8_0(FileSystemEntry& entry) at System.IO.Enumeration.FileSystemEnumerable`1.DelegateEnumerator.TransformEntry(FileSystemEntry& entry) at System.IO.Enumeration.FileSystemEnumerator`1.MoveNext() at System.Linq.Enumerable.SelectEnumerableIterator`2.ToArray() at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) Source: System.IO.FileSystem TargetSite: Void EnsureStatInitialized(System.ReadOnlySpan`1[system.Char], Boolean) InnerException: System.IO.IOException: Permission denied Source: 8-6-embyserver.txt Link to comment Share on other sites More sharing options...
Luke 37008 Posted August 7, 2019 Share Posted August 7, 2019 Are you experiencing a problem? Link to comment Share on other sites More sharing options...
RedBaron164 18 Posted August 7, 2019 Author Share Posted August 7, 2019 Yes, my music library still won't populate. I re-added the music library after upgrading Emby on my Ubuntu VM and Emby still looks like it's getting hung up on that dfsrprivate folder and then refuses to scan the rest of the directory. I've re-run the Scan media Library task a few times now and my music library is still empty. Link to comment Share on other sites More sharing options...
Luke 37008 Posted August 8, 2019 Share Posted August 8, 2019 Is this the only one of these? /drives/music/DfsrPrivate Link to comment Share on other sites More sharing options...
RedBaron164 18 Posted August 8, 2019 Author Share Posted August 8, 2019 Yes, my music directory is the only media directory that I have in a DFS share. Link to comment Share on other sites More sharing options...
Luke 37008 Posted August 9, 2019 Share Posted August 9, 2019 Unfortunately this is a hard one for us to fix because it looks like this is happening in the .net core runtime. What we're doing is querying for the contents of: /drives/music The runtime method will then get every file and folder insider and send back some information about those to us. But it runs into a permissions problem on the dfsrprivate folder and this causes the whole method to fail and send back an empty list - meaning, it makes the folder appear empty to Emby Server. Can you change the permissions on the dfsrprivate to make the error go away? Emby will not try to examine the contents underneath that folder because as I said we already added an ignore rule for that. It's just that the permissions are preventing us from being able to get the contents of the parent folder. Link to comment Share on other sites More sharing options...
Solution RedBaron164 18 Posted August 13, 2019 Author Solution Share Posted August 13, 2019 (edited) Ok, so changing the permissions on the dfsrprivate directory itself had no effect. However, Ubuntu is using an active directory account to authenticate with the file server. When I made that account a domain admin, ubuntu was able to read the dfsrprivate directory and then scan the music directory. I was hoping to avoid this solution as it is a security issue. But I'm not really surprised .net is causing this kind of issue, and since it appears to be working now, the security concern is something I can live with. Edited August 13, 2019 by RedBaron164 1 Link to comment Share on other sites More sharing options...
Luke 37008 Posted August 13, 2019 Share Posted August 13, 2019 That's interesting, thanks for the feedback ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now