Jellyfin Forum
Moved data directory using datadir option, some bits not working... - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Moved data directory using datadir option, some bits not working... (/t-moved-data-directory-using-datadir-option-some-bits-not-working)



Moved data directory using datadir option, some bits not working... - Dan Challis - 2025-07-09

I moved my data directory from D:\ProgramData\Jellyfin\Server to  C:\ProgramData\Jellyfin\Server and used the datadir option on the service command line. In order to take advantage of an SSD drive.

Most of Jellyfin seems to be working okay, for example logs now go to the new drive and I can playback just fine.  Unfortunately it is not indexing new shows (or movies or music) if I look in the log file I see the error below.  Is there a job I can run to fix these hardcoded paths?

Version info:

Server version 10.10.6
Web version 10.10.6 (c335a3024)
Build version 10.10.6

Running on Windows 10 

Thanks, Dan

----------- Detailed Error -------------------

System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\ProgramData\Jellyfin\Server\root\default\Shows'.
  at System.IO.Enumeration.FileSystemEnumerator1.Init()
  at System.IO.Enumeration.FileSystemEnumerableFactory.FileSystemInfos(String directory, String expression, EnumerationOptions options, Boolean isNormalized)
  at System.IO.DirectoryInfo.InternalEnumerateInfos(String path, String searchPattern, SearchTarget searchTarget, EnumerationOptions options)
  at MediaBrowser.Controller.Providers.DirectoryService.<>c.<GetFileSystemEntries>b__5_0(String p, IFileSystem fileSystem)
  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, IProgress1 progress, CancellationToken cancellationToken)
  at MediaBrowser.Controller.Entities.Folder.<>c__DisplayClass69_0
1.<<RunTasks>b__1>d.MoveNext()<<RunTasks>b__1>d.MoveNext()


RE: Moved data directory using datadir option, some bits not working... - niels - 2025-07-09

Jellyfin does not currently support moving your data as it relies on absolute paths in parts of the database and config files.


RE: Moved data directory using datadir option, some bits not working... - Dan Challis - 2025-07-10

(2025-07-09, 06:36 PM)niels Wrote: Jellyfin does not currently support moving your data as it relies on absolute paths in parts of the database and config files.

Thanks for your help.

I wonder what the point of the datadir directive and/or registry entry is, if the developers are just going to hardcode paths in the database?

If I need to get the programdata directory onto my SSD, then I guess the only option is a reinstall?