Jellyfin Forum
Library Disappears - 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: Library Disappears (/t-library-disappears)

Pages: 1 2


Library Disappears - missmintygreen - 2024-11-23

I'm not sure if this is a problem with the configuration of my Jellyfin library or the Linux server it is running on. In the last few months, I've had some power outages, and I've noticed that, once or twice in that time, my server could not be located by the Jellyfin app or the local website, and I was forced to rebuild the library by rescanning all of my media.
To note, my media is kept on a separate drive from the boot drive, which makes me wonder if maybe the Jellyfin app is spinning up on Docker faster than the mounted drive can be recognized, leading Jellyfin to conclude there is no library where there should be one.
Any suggestions or similar concerns?


RE: Library Disappears - TheDreadPirate - 2024-11-23

Can you share your docker config? And what distro you are using?


RE: Library Disappears - missmintygreen - 2024-11-26

(2024-11-23, 03:46 PM)TheDreadPirate Wrote: Can you share your docker config?  And what distro you are using?

I'm going to expose my ignorance, but how do I find my Docker config in Terminal? Still learning my way around the command line.

My Linux distro is Ubuntu 22.04.4 LTS


RE: Library Disappears - TheDreadPirate - 2024-11-26

In your docker compose you should have provided the container a host path to mount /config. In THAT directory there will be a log directory.


RE: Library Disappears - missmintygreen - 2024-12-08

(2024-11-26, 01:48 PM)TheDreadPirate Wrote: In your docker compose you should have provided the container a host path to mount /config.  In THAT directory there will be a log directory.

So, I wasn't sure how many lines of the log to actually grab, so I restarted my container and grabbed everything that came from that. Additionally, I have been having some issues with Jellyfin not downloading artwork for recent uploads.

Code:
[03:16:06] [INF] [66] Emby.Server.Implementations.Session.SessionManager: Sending shutdown notifications
[03:16:06] [INF] [64] Jellyfin.Networking.PortForwardingHost: Stopping NAT discovery
[03:16:06] [INF] [59] Main: Running query planner optimizations in the database... This might take a while
[03:16:06] [INF] [64] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /Movies
[03:16:06] [INF] [64] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path /Shows
[03:16:06] [INF] [59] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
[03:16:06] [INF] [59] Emby.Server.Implementations.ApplicationHost: Disposing MusicBrainzArtistProvider
[03:16:06] [INF] [59] Emby.Server.Implementations.ApplicationHost: Disposing MusicBrainzAlbumProvider
[03:16:06] [INF] [59] Emby.Server.Implementations.ApplicationHost: Disposing PluginManager
[03:16:07] [INF] [1] Main: Jellyfin version: 10.9.6
[03:16:07] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_DATA_DIR, /config]", "[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]"]
[03:16:07] [INF] [1] Main: Arguments: ["/jellyfin/jellyfin.dll", "--ffmpeg", "/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[03:16:07] [INF] [1] Main: Operating system: Debian GNU/Linux 12 (bookworm)
[03:16:07] [INF] [1] Main: Architecture: X64
[03:16:07] [INF] [1] Main: 64-Bit Process: True
[03:16:07] [INF] [1] Main: User Interactive: True
[03:16:07] [INF] [1] Main: Processor count: 4
[03:16:07] [INF] [1] Main: Program data path: /config
[03:16:07] [INF] [1] Main: Log directory path: /config/log
[03:16:07] [INF] [1] Main: Config directory path: /config/config
[03:16:07] [INF] [1] Main: Cache path: /cache
[03:16:07] [INF] [1] Main: Web resources path: /jellyfin/jellyfin-web
[03:16:07] [INF] [1] Main: Application directory: /jellyfin/
[03:16:07] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Marking following migrations as applied because this is a fresh install: ["CreateNetworkConfiguration", "MigrateMusicBrainzTimeout", "MigrateNetworkConfiguration"]
[03:16:07] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
[03:16:08] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[03:16:08] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.AniDB, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/AniDB_9.0.0.0/Jellyfin.Plugin.AniDB.dll
[03:16:08] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.AniList, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/AniList_9.0.0.0/Jellyfin.Plugin.AniList.dll
[03:16:08] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.AniSearch, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/AniSearch_5.0.0.0/Jellyfin.Plugin.AniSearch.dll
[03:16:08] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Tvdb.Sdk, Version=4.7.9.1, Culture=neutral, PublicKeyToken=null from /config/plugins/TheTVDB_13.0.0.0/Tvdb.Sdk.dll
[03:16:08] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.Tvdb, Version=13.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/TheTVDB_13.0.0.0/Jellyfin.Plugin.Tvdb.dll
[03:16:08] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly Jellyfin.Plugin.TMDbBoxSets, Version=11.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/TMDb Box Sets_11.0.0.0/Jellyfin.Plugin.TMDbBoxSets.dll
[03:16:08] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[03:16:08] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[03:16:08] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
[03:16:08] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "192.168.68.112", "172.17.0.1"]
[03:16:08] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"]
[03:16:08] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is Allowlist
[03:16:08] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
[03:16:10] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AniDB 9.0.0.0
[03:16:10] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AniList 9.0.0.0
[03:16:10] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AniSearch 5.0.0.0
[03:16:10] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: TheTVDB 13.0.0.0
[03:16:10] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: TMDb Box Sets 11.0.0.0
[03:16:10] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: TMDb 10.9.6.0
[03:16:10] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: Studio Images 10.9.6.0
[03:16:10] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: OMDb 10.9.6.0
[03:16:10] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: MusicBrainz 10.9.6.0
[03:16:10] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AudioDB 10.9.6.0
[03:16:10] [INF] [1] Jellyfin.Server.Migrations.MigrationRunner: Marking following migrations as applied because this is a fresh install: ["DisableTranscodingThrottling", "CreateLoggingConfigHeirarchy", "MigrateActivityLogDatabase", "RemoveDuplicateExtras", "MigrateUserDatabase", "MigrateDisplayPreferencesDatabase", "RemoveDownloadImagesInAdvance", "MigrateAuthenticationDatabase", "FixPlaylistOwner", "MigrateRatingLevels", "FixAudioData"]
[03:16:10] [INF] [1] Main: Kestrel is listening on 0.0.0.0
[03:16:11] [WRN] [1] Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware: The WebRootPath was not found: /wwwroot. Static files may be unavailable.
[03:16:11] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks
[03:16:11] [INF] [10] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /Movies
[03:16:11] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for Generate Trickplay Images set to fire at 2024-12-09 03:00:00.000 +00:00, which is 23:43:48.6266690 from now.
[03:16:11] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for Extract Chapter Images set to fire at 2024-12-09 02:00:00.000 +00:00, which is 22:43:48.6214362 from now.
[03:16:11] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for Scan Media Library set to fire at 2024-12-09 02:00:00.000 +00:00, which is 22:43:48.6073019 from now.
[03:16:11] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version 6.0.1
[03:16:11] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available decoders: ["libdav1d", "av1", "av1_cuvid", "av1_qsv", "h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8", "libvpx", "vp8_cuvid", "vp8_qsv", "vp9", "libvpx-vp9", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "dca", "flac", "mp3", "truehd"]
[03:16:11] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available encoders: ["libsvtav1", "av1_nvenc", "av1_qsv", "av1_amf", "av1_vaapi", "libx264", "h264_amf", "h264_nvenc", "h264_qsv", "h264_v4l2m2m", "h264_vaapi", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "hevc_vaapi", "mjpeg_qsv", "mjpeg_vaapi", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "libfdk_aac", "ac3", "alac", "dca", "flac", "libmp3lame", "libopus", "truehd", "libvorbis", "srt"]
[03:16:11] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available filters: ["deinterlace_qsv", "deinterlace_vaapi", "hwupload_cuda", "hwupload_vaapi", "libplacebo", "overlay_opencl", "overlay_qsv", "overlay_vaapi", "overlay_vulkan", "overlay_cuda", "procamp_vaapi", "scale_cuda", "scale_opencl", "scale_qsv", "scale_vaapi", "scale_vulkan", "tonemap_cuda", "tonemap_opencl", "tonemap_vaapi", "vpp_qsv", "yadif_cuda", "zscale", "alphasrc"]
[03:16:11] [INF] [8] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /Shows
[03:16:11] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available hwaccel types: ["cuda", "vaapi", "qsv", "drm", "opencl", "vulkan"]
[03:16:11] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: /usr/lib/jellyfin-ffmpeg/ffmpeg
[03:16:11] [INF] [1] Emby.Server.Implementations.ApplicationHost: ServerId: e7b4f708509043ce8256293baf82ac34
[03:16:11] [INF] [1] Emby.Server.Implementations.ApplicationHost: Core startup complete
[03:16:11] [INF] [1] Main: Startup complete 0:00:04.3091764
[03:16:14] [INF] [11] Emby.Server.Implementations.ScheduledTasks.TaskManager: Clean up collections and playlists Completed after 0 minute(s) and 0 seconds
[03:16:15] [INF] [10] Emby.Server.Implementations.ScheduledTasks.TaskManager: Update Plugins Completed after 0 minute(s) and 1 seconds



RE: Library Disappears - TheDreadPirate - 2024-12-08

Not quite what I asked for. I need to see how the container is configured. Do you have a yml/yaml file that you use to configure and start Jellyfin?

The issue with downloading artwork was an unintended change on TMDB's API. We notified them of the issue and they corrected it. They pushed out the correction earlier today and the issue should be resolved now.


RE: Library Disappears - missmintygreen - 2024-12-08

(2024-12-08, 04:04 AM)TheDreadPirate Wrote: Not quite what I asked for.  I need to see how the container is configured.  Do you have a yml/yaml file that you use to configure and start Jellyfin?

The issue with downloading artwork was an unintended change on TMDB's API.  We notified them of the issue and they corrected it.  They pushed out the correction earlier today and the issue should be resolved now.

Sorry about that. This was the docker compose command I used to start the Jellyfin container:

Code:
docker run -d \
--name jellyfin \
--privileged \
--user 1000:1000 \
-p 8096:8096 \
--volume /home/danielle/jellyfin/config:/config \
--volume /home/danielle/jellyfin:/cache \
--mount type=bind,source=/home/danielle/jellyfin/media,target=/media \
--restart=unless-stopped \
jellyfin/jellyfin



RE: Library Disappears - TheDreadPirate - 2024-12-08

Ok. I see the problem.

Code:
--volume /home/danielle/jellyfin/config:/config \
--volume /home/danielle/jellyfin:/cache \

The way you have the cache folder setup will put the cache folder above the config. Once a day there is a cache cleanup job that recursive deletes files and folders older than a certain age. What is happening is that the cache cleanup job is deleting your permanent data in /config. Change your setup to this.

Code:
--volume /home/danielle/jellyfin/config:/config \
--volume /home/danielle/jellyfin/cache:/cache \

This isolates the two folders from each other and ensures that the cache cleanup job only cleans up the actual cache.


RE: Library Disappears - missmintygreen - 2024-12-12

(2024-12-08, 02:57 PM)TheDreadPirate Wrote: Ok.  I see the problem.

Code:
--volume /home/danielle/jellyfin/config:/config \
--volume /home/danielle/jellyfin:/cache \

The way you have the cache folder setup will put the cache folder above the config.  Once a day there is a cache cleanup job that recursive deletes files and folders older than a certain age.  What is happening is that the cache cleanup job is deleting your permanent data in /config.  Change your setup to this.

Code:
--volume /home/danielle/jellyfin/config:/config \
--volume /home/danielle/jellyfin/cache:/cache \

This isolates the two folders from each other and ensures that the cache cleanup job only cleans up the actual cache.

This may be a dumb question, and it's more of a Linux question than Jellyfin, but in this case, would it be safe/effective to just move this into a new cache directory using the
Code:
mv
command in Terminal? I'm not going to break anything by going about it that way, right?


RE: Library Disappears - TheDreadPirate - 2024-12-12

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.