otispresley 81 Posted July 20, 2018 Share Posted July 20, 2018 (edited) I am running Emby on Docker on Ubuntu Server on a Hyper-V VM. When running it with a bind mount for /config that points to a directory in a CIFS mount on the host, the server will not start. When pointing to a directory on the host disk, it works fine. I am not sure if you would support such a setup or not but decided to report it anyway. Here are the details about my setup and the logs: Windows Server 2016 Standard Version 1607 Build 14393.2368 with Hyper-V role Ubuntu Server 18.04 Virtual Machine in Hyper-V Docker 18.03.1-ce running on Ubunter Server VM emby/embyserver:latest (3.5.0.0) with host networking The following container logs just repeat over and over: [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] done. [services.d] starting services [services.d] done. FailFast: Infinite recursion during resource lookup within System.Private.CoreLib. This may be a bug in System.Private.CoreLib, or potentially in certain extensibility points such as assembly resolve events or CultureInfo names. Resource name: Arg_ExternalException at System.Environment.FailFast(System.String) at System.SR.InternalGetResourceString(System.String) at System.SR.GetResourceString(System.String, System.String) at System.Globalization.CompareInfo.InitSort(System.Globalization.CultureInfo) at System.Globalization.CultureInfo.get_CompareInfo() at System.Globalization.CompareInfo..cctor() at System.String.IndexOf(System.String, Int32, Int32, System.StringComparison) at System.Globalization.CultureData.InitCultureData() at System.Globalization.CultureData.CreateCultureData(System.String, Boolean) at System.Globalization.CultureData.GetCultureData(System.String, Boolean) at System.Globalization.CultureInfo.InitializeFromName(System.String, Boolean) at System.Globalization.CultureInfo.GetCultureInfoHelper(Int32, System.String, System.String) at System.Globalization.CultureInfo.GetCultureInfo(System.String) at System.Resources.ManifestBasedResourceGroveler.GetNeutralResourcesLanguage(System.Reflection.Assembly, System.Resources.UltimateResourceFallbackLocation ByRef) at System.Resources.ResourceManager.CommonAssemblyInit() at System.Resources.ResourceManager..ctor(System.Type) at System.SR.InternalGetResourceString(System.String) at System.SR.GetResourceString(System.String, System.String) at System.Globalization.CompareInfo.InitSort(System.Globalization.CultureInfo) at System.Globalization.CultureInfo.get_CompareInfo() at System.StringComparer..cctor() at System.AppDomain.InitializeCompatibilityFlags() at System.AppDomain.Setup(System.Object) Aborted (core dumped) [cont-finish.d] executing container finish scripts... [cont-finish.d] done. [s6-finish] syncing disks. [s6-finish] sending all processes the TERM signal. [s6-finish] sending all processes the KILL signal and exiting. I am creating it with Portainer, but the equivalent CLI would be: docker run -d \ --volume /mnt/SERVER/Containers/emby:/config \ --volume /mnt/SERVER/Media:/media \ --publish 8096:8096 \ --publish 8920:8920 \ --restart unless-stopped \ emby/embyserver:latest CIFS mount options: file_mode=0775,dir_mode=0775,vers=3.0 Here are the automatically created environment variables: The CIFS mount in the Ubuntu Server VM points to a shared RAID5/0 on the Windows Server. Please let me know if you need any other information. Edited July 20, 2018 by otispresley Link to comment Share on other sites More sharing options...
Luke 37099 Posted July 20, 2018 Share Posted July 20, 2018 Hi, i saw one other user report something similar and they said this: Had this issue with Freenas / Rancher. Fixed by changing the env variable ICU_DATA /share/icu/61.1 (was previously set to icu/5...something) Can you try that? Thanks ! Link to comment Share on other sites More sharing options...
otispresley 81 Posted July 20, 2018 Author Share Posted July 20, 2018 Thanks @@Luke!The error is different now...it appears to get a little further, and it actually created some files in the directory this time: [s6-init] making user provided files available at /var/run/s6/etc...exited 0. [s6-init] ensuring user provided files have correct perms...exited 0. [fix-attrs.d] applying ownership & permissions fixes... [fix-attrs.d] done. [cont-init.d] executing container initialization scripts... [cont-init.d] done. [services.d] starting services [services.d] done. Info Main: Application path: /system/EmbyServer.dll Info Main: Emby Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Unix 4.15.0.24 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 16 Program data path: /config Application directory: /system Info App: Application version: 3.5.0.0 Info App: Loading assemblies Info App: Loading Emby.Server.CinemaMode, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Server.CinemaMode.dll Info App: Loading IMVDb, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null from /config/plugins/IMVDb.dll Info App: Loading OpenSubtitles, Version=1.0.2.0, Culture=neutral, PublicKeyToken=null from /config/plugins/OpenSubtitles.dll Info App: Loading MediaBrowser.Api, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading MediaBrowser.WebDashboard, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading MediaBrowser.Model, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading MediaBrowser.Common, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading MediaBrowser.Controller, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading MediaBrowser.Providers, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Photos, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Server.Implementations, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Server.MediaEncoding, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Dlna, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading MediaBrowser.LocalMetadata, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Notifications, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading MediaBrowser.XbmcMetadata, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Server.Connect, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info App: Loading Emby.Server.Sync, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null Info LocalizationManager: Extracting ratings to /config/localization/ratings-br.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-ca.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-co.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-dk.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-es.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-fr.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-gb.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-ie.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-jp.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-kz.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-mx.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-nl.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-nz.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-ro.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-uk.txt Info LocalizationManager: Extracting ratings to /config/localization/ratings-us.txt Info SqliteUserRepository: Sqlite version: 3.24.0 Info SqliteUserRepository: Sqlite compiler options: COMPILER=gcc-6.3.0,ENABLE_COLUMN_METADATA,ENABLE_DBSTAT_VTAB,ENABLE_FTS3,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS3_TOKENIZER,ENABLE_FTS5,ENABLE_JSON1,ENABLE_PREUPDATE_HOOK,ENABLE_RTREE,ENABLE_SESSION,ENABLE_UNLOCK_NOTIFY,ENABLE_UPDATE_DELETE_LIMIT,LIKE_DOESNT_MATCH_BLOBS,MAX_SCHEMA_RETRY=25,MAX_VARIABLE_NUMBER=250000,OMIT_LOOKASIDE,SECURE_DELETE,THREADSAFE=1 Info SqliteUserRepository: Default journal_mode for /config/data/users.db is delete Info App: Disposing CoreAppHost Info App: Disposing IsoManager Info App: Disposing TaskManager Info App: Disposing InstallationManager Info Main: Releasing mutex Info Main: Mutex released Error Main: UnhandledException *** Error Report *** Version: 3.5.0.0 Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Unix 4.15.0.24 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 16 Program data path: /config Application directory: /system System.AggregateException: One or more errors occurred. (Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.) ---> SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc) at SQLitePCL.pretty.StatementImpl.MoveNext() at SQLitePCL.pretty.DatabaseConnection.ExecuteAll(IDatabaseConnection This, String sql) at Emby.Server.Implementations.Data.BaseSqliteRepository.RunDefaultInitialization(ManagedConnection db) at Emby.Server.Implementations.Data.SqliteUserRepository.Initialize() at Emby.Server.Implementations.ApplicationHost.GetUserRepository() at Emby.Server.Implementations.ApplicationHost.RegisterResources() at Emby.Server.Implementations.ApplicationHost.Init() at EmbyServer.Program.RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, IEnvironmentInfo environmentInfo, StartupOptions options) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at EmbyServer.Program.Main(String[] args) at EmbyServer.Program.<Main>(String[] args) ---> (Inner Exception #0) Busy: database is locked SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc) at SQLitePCL.pretty.StatementImpl.MoveNext() at SQLitePCL.pretty.DatabaseConnection.ExecuteAll(IDatabaseConnection This, String sql) at Emby.Server.Implementations.Data.BaseSqliteRepository.RunDefaultInitialization(ManagedConnection db) at Emby.Server.Implementations.Data.SqliteUserRepository.Initialize() at Emby.Server.Implementations.ApplicationHost.GetUserRepository() at Emby.Server.Implementations.ApplicationHost.RegisterResources() at Emby.Server.Implementations.ApplicationHost.Init() at EmbyServer.Program.RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, IEnvironmentInfo environmentInfo, StartupOptions options)<--- System.AggregateException at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at EmbyServer.Program.Main(String[] args) at EmbyServer.Program.<Main>(String[] args) InnerException: SQLitePCL.pretty.SQLiteException Busy: database is locked SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc) at SQLitePCL.pretty.StatementImpl.MoveNext() at SQLitePCL.pretty.DatabaseConnection.ExecuteAll(IDatabaseConnection This, String sql) at Emby.Server.Implementations.Data.BaseSqliteRepository.RunDefaultInitialization(ManagedConnection db) at Emby.Server.Implementations.Data.SqliteUserRepository.Initialize() at Emby.Server.Implementations.ApplicationHost.GetUserRepository() at Emby.Server.Implementations.ApplicationHost.RegisterResources() at Emby.Server.Implementations.ApplicationHost.Init() at EmbyServer.Program.RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, IEnvironmentInfo environmentInfo, StartupOptions options) at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc) at SQLitePCL.pretty.StatementImpl.MoveNext() at SQLitePCL.pretty.DatabaseConnection.ExecuteAll(IDatabaseConnection This, String sql) at Emby.Server.Implementations.Data.BaseSqliteRepository.RunDefaultInitialization(ManagedConnection db) at Emby.Server.Implementations.Data.SqliteUserRepository.Initialize() at Emby.Server.Implementations.ApplicationHost.GetUserRepository() at Emby.Server.Implementations.ApplicationHost.RegisterResources() at Emby.Server.Implementations.ApplicationHost.Init() at EmbyServer.Program.RunApplication(ServerApplicationPaths appPaths, ILogManager logManager, IEnvironmentInfo environmentInfo, StartupOptions options) Link to comment Share on other sites More sharing options...
Luke 37099 Posted July 21, 2018 Share Posted July 21, 2018 Try rebooting your machine. Database locked means somehow you managed to get two instances of the server running, which in theory shouldn't be possible. That's why I'm suggesting reboot. Link to comment Share on other sites More sharing options...
otispresley 81 Posted July 21, 2018 Author Share Posted July 21, 2018 Hi @@Luke, I rebooted, removed the old files from the directory, deleted the container, and deployed it again. Unfortunately, it still throws the same error. This would be the command: docker run -d \ --volume /mnt/SERVER/Containers/emby:/config \ --volume /mnt/SERVER/Media:/media \ --publish 8096:8096 \ --publish 8920:8920 \ -e ICU_DATA='/share/icu/61.1' \ -e UID='0' \ -e GID='0' \ --restart unless-stopped \ emby/embyserver:latest The CIFS share is mounted as root:root as well. Link to comment Share on other sites More sharing options...
Luke 37099 Posted July 21, 2018 Share Posted July 21, 2018 My response is still the same, that somehow it appears you've managed to run multiple instances. You could try removing that auto restart param. Link to comment Share on other sites More sharing options...
Guest plexman Posted July 21, 2018 Share Posted July 21, 2018 I had similar problems with NFS and LXC when bind mounting NFS directory on LXC it wasn't working. It's not the same setup but its correlative. I couldn't find the solution and ended by simplifiying the setup (not so much nested software). Link to comment Share on other sites More sharing options...
mastrmind11 717 Posted July 21, 2018 Share Posted July 21, 2018 CIFS why? Link to comment Share on other sites More sharing options...
otispresley 81 Posted July 21, 2018 Author Share Posted July 21, 2018 (edited) My RAID is on the Windows Server and is NTFS. That is also where my other containers store their files. The idea is to use a phpapache container on the same storage to map to 4 different web directories, including Emby and Nextcloud. The VM's run on a much smaller SSD datastore, so I would much rather store the files on the larger RAID. Even though I have metadata stored with Emby media, there is still about 3.5 GB of Emby data. I can do it without Emby storing /config data on the RAID and just use phpapache to do reverse proxy for Emby, but then Emby would be the only container with its files on different storage. Edited July 21, 2018 by otispresley Link to comment Share on other sites More sharing options...
otispresley 81 Posted July 21, 2018 Author Share Posted July 21, 2018 I had similar problems with NFS and LXC when bind mounting NFS directory on LXC it wasn't working. It's not the same setup but its correlative. I couldn't find the solution and ended by simplifiying the setup (not so much nested software). Yes, it does correlate. Emby is doing something that is not compatible when it is on CIFS. Link to comment Share on other sites More sharing options...
Guest plexman Posted July 21, 2018 Share Posted July 21, 2018 (edited) It's wasn't only Emby related, I remember I had problems with other apps. I don't know, maybe the OS doesn't like bind mounting shares on containers or I don't have enough knowledge to solve it. Anyways, what you could do is running Emby directly on your Ubuntu VM. Edit: Just for my curiosity, isn't CIFS considered obsolete? Edited July 21, 2018 by plexman Link to comment Share on other sites More sharing options...
otispresley 81 Posted July 22, 2018 Author Share Posted July 22, 2018 Edit: Just for my curiosity, isn't CIFS considered obsolete? No, it definitelhy is not obselete. It is still getting updates. How else would you mount a Windows share from Linux? Link to comment Share on other sites More sharing options...
otispresley 81 Posted August 10, 2018 Author Share Posted August 10, 2018 OK, so I installed a new Debian VM with Docker and moved the Emby /config into Debian. It works except that it always fails a library scan. I am on 3.5.2.0 and here is the error, and not sure what the duplicate path thing is about: 2018-08-10 17:20:20.329 Info App: Found duplicate path: /media/Media/Recordings/_emby 2018-08-10 17:20:20.331 Info App: Found duplicate path: /media/Media/Recordings/_emby 2018-08-10 17:20:20.334 Error App: Error in GetFilteredFileSystemEntries isPhysicalRoot: False IsVf: False *** Error Report *** Version: 3.5.2.0 Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Unix 4.9.0.7 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 40 Program data path: /config Application directory: /system System.IO.DirectoryNotFoundException: Could not find a part of the path '/var/lib/emby/data/collections'. at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path) at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options) at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive) at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path) at MediaBrowser.Controller.IO.FileData.GetFilteredFileSystemEntries(IDirectoryService directoryService, String path, IFileSystem fileSystem, IServerApplicationHost appHost, ILogger logger, ItemResolveArgs args, Int32 flattenFolderDepth, Boolean resolveShortcuts) at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, IDirectoryService directoryService, IItemResolver[] resolvers, Folder parent, String collectionType, LibraryOptions libraryOptions) System.IO.DirectoryNotFoundException at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path) at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options) at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive) at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path) at MediaBrowser.Controller.IO.FileData.GetFilteredFileSystemEntries(IDirectoryService directoryService, String path, IFileSystem fileSystem, IServerApplicationHost appHost, ILogger logger, ItemResolveArgs args, Int32 flattenFolderDepth, Boolean resolveShortcuts) at Emby.Server.Implementations.Library.LibraryManager.ResolvePath(FileSystemMetadata fileInfo, IDirectoryService directoryService, IItemResolver[] resolvers, Folder parent, String collectionType, LibraryOptions libraryOptions) 2018-08-10 17:20:20.477 Error BaseItem: Error refreshing owned items for /var/lib/emby/data/collections *** Error Report *** Version: 3.5.2.0 Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Unix 4.9.0.7 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 40 Program data path: /config Application directory: /system System.IO.DirectoryNotFoundException: Could not find a part of the path '/var/lib/emby/data/collections'. at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path) at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options) at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive) at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) System.IO.DirectoryNotFoundException at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path) at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options) at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive) at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) 2018-08-10 17:20:20.477 Error App: Error validating images for /var/lib/emby/data/collections *** Error Report *** Version: 3.5.2.0 Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Unix 4.9.0.7 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 40 Program data path: /config Application directory: /system System.IO.DirectoryNotFoundException: Could not find a part of the path '/var/lib/emby/data/collections'. at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path) at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options) at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive) at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path) at MediaBrowser.LocalMetadata.Images.LocalImageProvider.GetFiles(BaseItem item, Boolean includeDirectories, IDirectoryService directoryService) at MediaBrowser.LocalMetadata.Images.LocalImageProvider.GetImages(BaseItem item, IDirectoryService directoryService) at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at MediaBrowser.Providers.Manager.ItemImageProvider.ValidateImages(BaseItem item, IEnumerable`1 providers, IDirectoryService directoryService) at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) System.IO.DirectoryNotFoundException at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path) at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options) at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive) at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path) at MediaBrowser.LocalMetadata.Images.LocalImageProvider.GetFiles(BaseItem item, Boolean includeDirectories, IDirectoryService directoryService) at MediaBrowser.LocalMetadata.Images.LocalImageProvider.GetImages(BaseItem item, IDirectoryService directoryService) at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToList() at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at MediaBrowser.Providers.Manager.ItemImageProvider.ValidateImages(BaseItem item, IEnumerable`1 providers, IDirectoryService directoryService) at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) 2018-08-10 17:20:20.555 Error BaseItem: Error refreshing owned items for /var/lib/emby/root/default/Photos *** Error Report *** Version: 3.5.2.0 Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Unix 4.9.0.7 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 40 Program data path: /config Application directory: /system System.IO.DirectoryNotFoundException: Could not find a part of the path '/var/lib/emby/root/default/Photos'. at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path) at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options) at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive) at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path) at MediaBrowser.Controller.IO.FileData.GetFilteredFileSystemEntries(IDirectoryService directoryService, String path, IFileSystem fileSystem, IServerApplicationHost appHost, ILogger logger, ItemResolveArgs args, Int32 flattenFolderDepth, Boolean resolveShortcuts) at MediaBrowser.Controller.Entities.CollectionFolder.CreateResolveArgs(IDirectoryService directoryService, Boolean setPhysicalLocations) at MediaBrowser.Controller.Entities.CollectionFolder.GetFileSystemChildren(IDirectoryService directoryService) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) System.IO.DirectoryNotFoundException at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path) at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options) at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive) at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path) at MediaBrowser.Controller.IO.FileData.GetFilteredFileSystemEntries(IDirectoryService directoryService, String path, IFileSystem fileSystem, IServerApplicationHost appHost, ILogger logger, ItemResolveArgs args, Int32 flattenFolderDepth, Boolean resolveShortcuts) at MediaBrowser.Controller.Entities.CollectionFolder.CreateResolveArgs(IDirectoryService directoryService, Boolean setPhysicalLocations) at MediaBrowser.Controller.Entities.CollectionFolder.GetFileSystemChildren(IDirectoryService directoryService) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) 2018-08-10 17:20:20.556 Info LibraryMonitor: Skipping realtime monitor for /var/lib/emby/data/collections because the path does not exist 2018-08-10 17:20:20.564 Error TaskManager: Error *** Error Report *** Version: 3.5.2.0 Command line: /system/EmbyServer.dll -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 Operating system: Unix 4.9.0.7 64-Bit OS: True 64-Bit Process: True User Interactive: True Processor count: 40 Program data path: /config Application directory: /system System.IO.DirectoryNotFoundException: Could not find a part of the path '/var/lib/emby/root/default/Photos'. at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path) at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options) at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive) at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path) at MediaBrowser.Controller.IO.FileData.GetFilteredFileSystemEntries(IDirectoryService directoryService, String path, IFileSystem fileSystem, IServerApplicationHost appHost, ILogger logger, ItemResolveArgs args, Int32 flattenFolderDepth, Boolean resolveShortcuts) at MediaBrowser.Controller.Entities.CollectionFolder.CreateResolveArgs(IDirectoryService directoryService, Boolean setPhysicalLocations) at MediaBrowser.Controller.Entities.CollectionFolder.RequiresRefresh() at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.Folder.RefreshChildMetadata(BaseItem child, MetadataRefreshOptions refreshOptions, Boolean recursive, IProgress`1 progress, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.Folder.RefreshMetadataRecursive(List`1 children, MetadataRefreshOptions refreshOptions, Boolean recursive, IProgress`1 progress, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService) at MediaBrowser.Controller.Entities.UserRootFolder.ValidateChildrenInternal(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService) at Emby.Server.Implementations.Library.LibraryManager.ValidateTopLibraryFolders(CancellationToken cancellationToken) at Emby.Server.Implementations.Library.LibraryManager.PerformLibraryValidation(IProgress`1 progress, CancellationToken cancellationToken) at Emby.Server.Implementations.Library.LibraryManager.ValidateMediaLibraryInternal(IProgress`1 progress, CancellationToken cancellationToken) at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options) System.IO.DirectoryNotFoundException at System.IO.Enumeration.FileSystemEnumerator`1.CreateDirectoryHandle(String path) at System.IO.Enumeration.FileSystemEnumerator`1..ctor(String directory, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerable`1..ctor(String directory, FindTransform transform, EnumerationOptions options) at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options) at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options) at Emby.Server.Implementations.IO.ManagedFileSystem.GetFileSystemEntries(String path, Boolean recursive) at MediaBrowser.Controller.Providers.DirectoryService.GetFileSystemEntries(String path) at MediaBrowser.Controller.IO.FileData.GetFilteredFileSystemEntries(IDirectoryService directoryService, String path, IFileSystem fileSystem, IServerApplicationHost appHost, ILogger logger, ItemResolveArgs args, Int32 flattenFolderDepth, Boolean resolveShortcuts) at MediaBrowser.Controller.Entities.CollectionFolder.CreateResolveArgs(IDirectoryService directoryService, Boolean setPhysicalLocations) at MediaBrowser.Controller.Entities.CollectionFolder.RequiresRefresh() at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.Folder.RefreshChildMetadata(BaseItem child, MetadataRefreshOptions refreshOptions, Boolean recursive, IProgress`1 progress, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.Folder.RefreshMetadataRecursive(List`1 children, MetadataRefreshOptions refreshOptions, Boolean recursive, IProgress`1 progress, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService) at MediaBrowser.Controller.Entities.UserRootFolder.ValidateChildrenInternal(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService) at Emby.Server.Implementations.Library.LibraryManager.ValidateTopLibraryFolders(CancellationToken cancellationToken) at Emby.Server.Implementations.Library.LibraryManager.PerformLibraryValidation(IProgress`1 progress, CancellationToken cancellationToken) at Emby.Server.Implementations.Library.LibraryManager.ValidateMediaLibraryInternal(IProgress`1 progress, CancellationToken cancellationToken) at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options) 2018-08-10 17:20:20.564 Info TaskManager: Scan media library Failed after 0 minute(s) and 0 seconds I can browse my media, play it, and record Live TV. Link to comment Share on other sites More sharing options...
Luke 37099 Posted August 10, 2018 Share Posted August 10, 2018 Can you try doing it without moving the configuration? Link to comment Share on other sites More sharing options...
otispresley 81 Posted August 10, 2018 Author Share Posted August 10, 2018 You mean just map /config to an empty folder? Link to comment Share on other sites More sharing options...
Luke 37099 Posted August 10, 2018 Share Posted August 10, 2018 I mean essentially trying a fresh install. Link to comment Share on other sites More sharing options...
otispresley 81 Posted August 11, 2018 Author Share Posted August 11, 2018 I did map /config to an empty folder. As expected, the scan works. BTW, I was not clear before. I copied the /var/lib/emby folder from my old installation on Ubuntu 18.04. Link to comment Share on other sites More sharing options...
Luke 37099 Posted August 11, 2018 Share Posted August 11, 2018 Thanks for the feedback. Link to comment Share on other sites More sharing options...
otispresley 81 Posted August 11, 2018 Author Share Posted August 11, 2018 Thanks for the feedback. Do you know what the problem is with my original data? I would rather not start over because I need to keep all my user information, watched status, etc. Link to comment Share on other sites More sharing options...
Luke 37099 Posted August 11, 2018 Share Posted August 11, 2018 If the program data path is different than before there could be problems. Newer installations will handle this better so that it's not a problem going forward but it could still be a problem coming from an older install. I would suggest starting fresh but copying the users db file, and then follow the user data backup procedures on our wiki. 1 Link to comment Share on other sites More sharing options...
otispresley 81 Posted August 11, 2018 Author Share Posted August 11, 2018 OK, thanks Luke! Link to comment Share on other sites More sharing options...
otispresley 81 Posted August 11, 2018 Author Share Posted August 11, 2018 If the program data path is different than before there could be problems. Newer installations will handle this better so that it's not a problem going forward but it could still be a problem coming from an older install. I would suggest starting fresh but copying the users db file, and then follow the user data backup procedures on our wiki. I followed all the instructions from the Wiki (https://github.com/MediaBrowser/Wiki/wiki/Backup) for Manual Backup and Restore. But for some reason, it did not migrate the user accounts. I do user the LDAP plugin if that matters, but there are 3 local accounts configured as well. All my plugins and configuration migrated fine. I do take backups using the plugin, so maybe I will try that route next. Link to comment Share on other sites More sharing options...
Luke 37099 Posted August 12, 2018 Share Posted August 12, 2018 Did you copy the users.db file? Link to comment Share on other sites More sharing options...
otispresley 81 Posted August 12, 2018 Author Share Posted August 12, 2018 Yes, sure did. I will try it again to make sure though. Link to comment Share on other sites More sharing options...
Luke 37099 Posted August 12, 2018 Share Posted August 12, 2018 if you have the backup plugin then that's the method i would use. 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