• 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 Troubleshooting Library Disappears

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    Library Disappears

    My server disappears after power outages, and the whole library needs to be rescanned.
    missmintygreen
    Offline

    Junior Member

    Posts: 20
    Threads: 2
    Joined: 2024 Jun
    Reputation: 0
    Country:United States
    #11
    2024-12-14, 10:55 PM
    (2024-12-12, 01:52 PM)TheDreadPirate Wrote: That is not strictly necessary, since the cache folder is temporary data.  But you can if you want.  You can move files around anywhere you want on the host side, as long as you provide that new path to the container.

    Okay, so, the best way I thought to accomplish this was to remove the docker Jellyfin container and completely rebuild it with a docker compose file. It seems to have worked. Portainer is showing a container named Jellyfin with the correct config and cache paths, but now, I cannot reach Jellyfin on my local network. Here is the docker compose file:

    Code:
    services:
      jellyfin:
        image: jellyfin/jellyfin
        container_name: jellyfin
        user: 1000:1000
        network_mode: 'host'
        volumes:
          - /config:/config
          - /cache:/cache
          - type: bind
            source: /media/danielle/library/Movies
            target: /Movies
          - type: bind
            source: /media/danielle/library/Shows
            target: /Shows
            read_only: true
        restart: 'unless-stopped'

    But https://jellyfin.local and the address of my server with port 8096 gives me "This site can't be reached". Do I need to change the network_mode in the docker-compose.yml to the port? In the past, I know that worked, but I'm not sure why.
    Rescued from the Trash Optiplex Build
    CPU: Intel i5 3470
    RAM: 4GB DDR3-1333
    GPU: NVIDIA Quadro P400 2GB GDDR5
    Boot Drive: Inland Professional 240GB SSD
    Storage: Seagate Ironwolf 8TB 7200 RPM HDD
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #12
    2024-12-14, 11:03 PM (This post was last modified: 2024-12-14, 11:03 PM by TheDreadPirate.)
    Can you share your jellyfin log via pastebin?

    /config/log/lo20241214.log

    I also recommend against bind mounts. Mainly because they sometimes cause issues.

    Change this

    Code:
    - type: bind
            source: /media/danielle/library/Movies
            target: /Movies
          - type: bind
            source: /media/danielle/library/Shows
            target: /Shows
            read_only: true

    To this

    Code:
    - /media/danielle/library/Movies:/Movies:ro
          - /media/danielle/library/Shows:/Shows:ro
    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]
    missmintygreen
    Offline

    Junior Member

    Posts: 20
    Threads: 2
    Joined: 2024 Jun
    Reputation: 0
    Country:United States
    #13
    2024-12-14, 11:18 PM (This post was last modified: 2024-12-14, 11:29 PM by missmintygreen. Edited 1 time in total.)
    (2024-12-14, 11:03 PM)TheDreadPirate Wrote: Can you share your jellyfin log via pastebin?

    /config/log/lo20241214.log

    I also recommend against bind mounts.  Mainly because they sometimes cause issues.

    Change this

    Code:
          - type: bind
            source: /media/danielle/library/Movies
            target: /Movies
          - type: bind
            source: /media/danielle/library/Shows
            target: /Shows
            read_only: true

    To this

    Code:
          - /media/danielle/library/Movies:/Movies:ro
          - /media/danielle/library/Shows:/Shows:ro

    So, that log doesn't seem to exist. /config appears to be empty. When I start jellyfin and look at the logs on portainer, I keep seeing this repeated:

    Code:
    Unhandled exception. System.UnauthorizedAccessException: Access to the path '/config/log' is denied.

    ---> System.IO.IOException: Permission denied

      --- End of inner exception stack trace ---

      at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)

      at System.IO.Directory.CreateDirectory(String path)

      at Jellyfin.Server.Helpers.StartupHelpers.CreateApplicationPaths(StartupOptions options)

      at Jellyfin.Server.Program.StartApp(StartupOptions options)

      at Jellyfin.Server.Program.<Main>(String[] args)
    Rescued from the Trash Optiplex Build
    CPU: Intel i5 3470
    RAM: 4GB DDR3-1333
    GPU: NVIDIA Quadro P400 2GB GDDR5
    Boot Drive: Inland Professional 240GB SSD
    Storage: Seagate Ironwolf 8TB 7200 RPM HDD
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #14
    2024-12-15, 07:34 PM
    It's pretty clear what the issue is. Recursively chown /config so that your user owns it and all sub-directories.
    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]
    missmintygreen
    Offline

    Junior Member

    Posts: 20
    Threads: 2
    Joined: 2024 Jun
    Reputation: 0
    Country:United States
    #15
    2024-12-15, 08:26 PM (This post was last modified: 2024-12-15, 08:31 PM by missmintygreen. Edited 1 time in total.)
    (2024-12-15, 07:34 PM)TheDreadPirate Wrote: It's pretty clear what the issue is.  Recursively chown /config so that your user owns it and all sub-directories.

    Okay, I chown'd the directory and restarted Jellyfin. Still nothing in the config directory, and here is what the logs on Portainer are saying: https://pastebin.com/L1sFtL7N

    Now, Jellyfin is accessible at the IP address and port that it had, before. Should I be concerned that the config directory is still empty?
    Rescued from the Trash Optiplex Build
    CPU: Intel i5 3470
    RAM: 4GB DDR3-1333
    GPU: NVIDIA Quadro P400 2GB GDDR5
    Boot Drive: Inland Professional 240GB SSD
    Storage: Seagate Ironwolf 8TB 7200 RPM HDD
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #16
    2024-12-15, 10:43 PM
    Is portainer using the docker compose you provided? Or the config you put in the portainer UI?
    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]
    missmintygreen
    Offline

    Junior Member

    Posts: 20
    Threads: 2
    Joined: 2024 Jun
    Reputation: 0
    Country:United States
    #17
    2024-12-15, 11:53 PM
    (2024-12-15, 10:43 PM)TheDreadPirate Wrote: Is portainer using the docker compose you provided?  Or the config you put in the portainer UI?

    The docker compose.
    Rescued from the Trash Optiplex Build
    CPU: Intel i5 3470
    RAM: 4GB DDR3-1333
    GPU: NVIDIA Quadro P400 2GB GDDR5
    Boot Drive: Inland Professional 240GB SSD
    Storage: Seagate Ironwolf 8TB 7200 RPM HDD
    Pages (2): « Previous 1 2

    « Next Oldest | Next Newest »

    Users browsing this thread: 2 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