• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Updated Synology 7.1 Docker Container to use NAS shares

     
    • 0 Vote(s) - 0 Average

    Updated Synology 7.1 Docker Container to use NAS shares

    samatusen
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2025 Apr
    Reputation: 0
    Country:United States
    #1
    2025-04-17, 07:48 AM
    After moving Container to use a folder on the NAS vs internal docker path, the refresh metadata is failing, Updated all the permissions but the docker seems to still look at old location.

    MediaBrowser.Controller.Entities.BaseItem: Error refreshing owned items for "/config/root/default/Movies"
    System.IO.DirectoryNotFoundException: Could not find a part of the path '/config/root/default/Movies'.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2025-04-17, 12:36 PM
    From the container's perspective, there shouldn't be any change in path. You address that by updating the container volume mapping.

    Which folders did you move to the NAS? /config and/or /cache? If so, /config should never be on a NAS since that is where the Jellyfin database is located. At a minimum, /config/data should remain on a local disk.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    samatusen
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2025 Apr
    Reputation: 0
    Country:United States
    #3
    2025-04-17, 05:22 PM
    Yessir that is what I did. I was unable to get existing container to pull the latest. So I made file share for the /cache and /config and then mounted them to the container as new file path so that it didn't matter what container connected as the config would be outside the container. Copied all the contents over and then chown/chmod the new folders in the duplicated container. For the duplicated container I exported the settings first and then just imported them thinking that it would pick up the the new path to find it's config but by the log I do not think that is actually happening? I do not have the Container Manager and using Docker, but assumed there is some config file somewhere where I need to update these path's? Or you just saying I need to now copy back over all the files back into the container?

    I do not think it would be performance issue as it is the same network connection as the box, and for last couple days have not seen any performance issues for the libraries that were already discovered, so is that really a worry having them on the NAS vs inside of the container?

    Code:
    "env_variables" : [
          {
            "key" : "PATH",
            "value" : "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
          },
          {
            "key" : "HEALTHCHECK_URL",
            "value" : "http://localhost:8096/health"
          },
          {
            "key" : "DOTNET_SYSTEM_GLOBALIZATION_INVARIANT",
            "value" : "1"
          },
          {
            "key" : "LC_ALL",
            "value" : "en_US.UTF-8"
          },
          {
            "key" : "LANG",
            "value" : "en_US.UTF-8"
          },
          {
            "key" : "LANGUAGE",
            "value" : "en_US:en"
          },
          {
            "key" : "JELLYFIN_DATA_DIR",
            "value" : "/jellyconfig"
          },
          {
            "key" : "JELLYFIN_CACHE_DIR",
            "value" : "/jellycache"
          },
          {
            "key" : "JELLYFIN_CONFIG_DIR",
            "value" : "/jellyconfig/config"
          },
          {
            "key" : "JELLYFIN_LOG_DIR",
            "value" : "/jellyconfig/log"
          },

    [2025-04-16 04:35:04.330 +00:00] [ERR] [35] MediaBrowser.Controller.Entities.BaseItem: Error refreshing owned items for "/config/root/default/Photos"
    System.IO.DirectoryNotFoundException: Could not find a part of the path '/config/root/default/Photos'.
      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.GetFileSystemChildren(IDirectoryService directoryService)
      at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
    [2025-04-16 04:35:04.330 +00:00] [ERR] [44] MediaBrowser.Controller.Entities.BaseItem: Error refreshing owned items for "/config/root/default/Movies"
    System.IO.DirectoryNotFoundException: Could not find a part of the path '/config/root/default/Movies'.
      at System.IO.Enumeration.FileSystemEnumerator
    1.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.GetFileSystemChildren(IDirectoryService directoryService)
      at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
    [2025-04-16 04:35:04.341 +00:00] [ERR] [44] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-04-17, 06:12 PM
    All I see is that you changed the data paths within the container. Not how they are stored on the host. Which would 100% break jellyfin.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    samatusen
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2025 Apr
    Reputation: 0
    Country:United States
    #5
    2025-04-19, 01:57 AM
    Ok so do I just need to copy all of the files back and instead point the /config and /cache at the NAS. Understand there are performance concerns with that.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2025-04-19, 02:04 AM
    Ideally /config in its entirety would be on local storage. At a minimum, /config/data should be on a local disk since that contains the database. The rest would be ok, but suboptimal, to put on the NAS due to the number of small requests. Network file systems are not built for numerous small transfers.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    samatusen
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2025 Apr
    Reputation: 0
    Country:United States
    #7
    2025-04-19, 07:53 AM
    I tried copying back the files to /config and /cache, setting mount point to those directories and Jellyfin doesn't load. Switched back now to mount points that were working and now nothing loads. Am I just broke now and lost all of Jellyfin config?
    samatusen
    Offline

    Junior Member

    Posts: 5
    Threads: 1
    Joined: 2025 Apr
    Reputation: 0
    Country:United States
    #8
    2025-04-19, 05:43 PM
    Thanks, triggered thoughts of folder directories, and I forgot to marry up config with mount points. Update both to be the same and appears all working again.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode