Jump to content

Migrating from FreeBSD to Windows - Library path substitution


Recommended Posts

aklindeman
Posted

I'm migrating from a FreeNAS setup running Emby in a FreeBSD jail to running Emby on a Windows 10 system.  I've migrated over the data and attempted to use the Backup plugin for the migration, but I'm running into a problem.

 

I have the same directory structure, but Windows uses drive letters.  Emby seems to be using C: as the default after the restore.  However, the new RAID is a different drive letter (K:).  I can update the path in the library, but it doesn't seem to update where the program is looking for my library.

 

server log - 

2017-05-29 11:53:25.7898 Info TaskManager: IntervalTrigger fired for task: Scan media library
2017-05-29 11:53:25.7898 Info TaskManager: Queueing task RefreshMediaLibraryTask
2017-05-29 11:53:25.7898 Info TaskManager: Executing Scan media library
2017-05-29 11:53:25.7898 Info App: Validating media library
2017-05-29 11:53:25.8098 Error App: Error validating images for C:\Users\Andy\AppData\Roaming\Emby-Server\root\default\Movies
    *** Error Report ***
    Version: 3.2.17.0
    Command line: C:\Users\Andy\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe
    Operating system: Microsoft Windows NT 6.2.9200.0
    64-Bit OS: True
    64-Bit Process: True
    Processor count: 8
    Program data path: C:\Users\Andy\AppData\Roaming\Emby-Server
    Application directory: C:\Users\Andy\AppData\Roaming\Emby-Server\system
    System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\media\video\Movies'.
     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
     at System.IO.FileSystemEnumerableIterator`1.CommonInit()
     at System.IO.DirectoryInfo.EnumerateFiles(String searchPattern, SearchOption searchOption)
     at Emby.Common.Implementations.IO.ManagedFileSystem.GetFiles(String path, String[] extensions, Boolean enableCaseSensitiveExtensions, Boolean recursive)
     at MediaBrowser.LocalMetadata.Images.LocalImageProvider.<GetImages>b__10_0(String i)
     at System.Linq.Enumerable.<SelectManyIterator>d__16`2.MoveNext()
     at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
     at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
     at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
     at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
     at MediaBrowser.LocalMetadata.Images.LocalImageProvider.GetImages(IHasImages item, IEnumerable`1 paths, Boolean arePathsInMediaFolders, IDirectoryService directoryService)
     at MediaBrowser.LocalMetadata.Images.CollectionFolderLocalImageProvider.GetImages(IHasImages item, IDirectoryService directoryService)
     at System.Linq.Enumerable.<SelectManyIterator>d__16`2.MoveNext()
     at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
     at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
     at MediaBrowser.Providers.Manager.ItemImageProvider.ValidateImages(IHasImages item, IEnumerable`1 providers, IDirectoryService directoryService)
     at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>d__7.MoveNext()
    System.IO.DirectoryNotFoundException
     at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
     at System.IO.FileSystemEnumerableIterator`1.CommonInit()
     at System.IO.DirectoryInfo.EnumerateFiles(String searchPattern, SearchOption searchOption)
     at Emby.Common.Implementations.IO.ManagedFileSystem.GetFiles(String path, String[] extensions, Boolean enableCaseSensitiveExtensions, Boolean recursive)
     at MediaBrowser.LocalMetadata.Images.LocalImageProvider.<GetImages>b__10_0(String i)
     at System.Linq.Enumerable.<SelectManyIterator>d__16`2.MoveNext()
     at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
     at System.Linq.OrderedEnumerable`1.<GetEnumerator>d__1.MoveNext()
     at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
     at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
     at MediaBrowser.LocalMetadata.Images.LocalImageProvider.GetImages(IHasImages item, IEnumerable`1 paths, Boolean arePathsInMediaFolders, IDirectoryService directoryService)
     at MediaBrowser.LocalMetadata.Images.CollectionFolderLocalImageProvider.GetImages(IHasImages item, IDirectoryService directoryService)
     at System.Linq.Enumerable.<SelectManyIterator>d__16`2.MoveNext()
     at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
     at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
     at MediaBrowser.Providers.Manager.ItemImageProvider.ValidateImages(IHasImages item, IEnumerable`1 providers, IDirectoryService directoryService)
     at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>d__7.MoveNext()
    

server.log

post-27605-0-04225000-1496099131_thumb.jpg

Posted

Did you update all the libraries?

Posted

There might be some issues with migrating across operating systems. I personally would suggest a fresh start, and then when you restore with the backup plugin, uncheck the library definitions option and just add the library in manually. Let us know if this helps. Thanks.

  • 4 weeks later...
aklindeman
Posted

Just got back to this.  Life got it the way for a bit.  Importing without library definitions after creating the library and letting it finish scanning did the trick.

Posted

Thanks for the feedback.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...