New docker container keeps restarting - amminadabz - 2024-07-11
I'm trying to set up Jellyfin using docker, and the resulting container shows in the desktop app as just restarting over and over. Here's the command I'm using, based on the tutorial.
Code: docker run -d \
--name jellyfin \
--user 1000:1000 \
--net=host \
--volume /home/evanm/jellyfin/config:/config \
--volume /home/evanm/jellyfin/cache:/cache \
--mount type=bind,source=/media/raid/movies,target=/movies \
--mount type=bind,source=/media/raid/tv_shows,target=/tv_shows \
--mount type=bind,source=/media/raid/music,target=/music \
--restart=unless-stopped \
jellyfin/jellyfin
Sorry I can't be more specific, I'm very new to docker.
RE: New docker container keeps restarting - Efficient_Good_5784 - 2024-07-11
Can you describe more about your setup? What system are you using to run Docker?
RE: New docker container keeps restarting - amminadabz - 2024-07-11
(2024-07-11, 01:52 AM)Efficient_Good_5784 Wrote: Can you describe more about your setup? What system are you using to run Docker?
Of course! I'm running Docker 27.0.3 on Debian 12. Docker itself is working well, Immich is running happily in another container. I've got an FX 6300 and 8GB RAM that I'll double later.
RE: New docker container keeps restarting - Efficient_Good_5784 - 2024-07-11
Could you try starting a brand new Jellyfin container, but without nothing declared?
As in, don't add a user/group value, no volumes or mounts. Maybe keep the host network declaration there just so you can access the server start page.
Basically, if the container runs with nothing declared, it's most likely an issue with your command.
RE: New docker container keeps restarting - amminadabz - 2024-07-11
Code: docker run -d --name jellyfin --net=host jellyfin/jellyfin
Seems to be running stably, but I can't access the web console.
RE: New docker container keeps restarting - TheDreadPirate - 2024-07-11
What is the output of "sudo docker logs jellyfin"?
RE: New docker container keeps restarting - amminadabz - 2024-07-11
Code: [19:38:00] [INF] [4] Main: Jellyfin version: 10.9.7
[19:38:00] [INF] [4] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_CACHE_DIR, /cache]", "[JELLYFIN_CONFIG_DIR, /config/config]", "[JELLYFIN_FFMPEG, /usr/lib/jellyfin-ffmpeg/ffmpeg]", "[JELLYFIN_WEB_DIR, /jellyfin/jellyfin-web]", "[JELLYFIN_DATA_DIR, /config]"]
[19:38:00] [INF] [4] Main: Arguments: ["/jellyfin/jellyfin.dll"]
[19:38:00] [INF] [4] Main: Operating system: Debian GNU/Linux 12 (bookworm)
[19:38:00] [INF] [4] Main: Architecture: X64
[19:38:00] [INF] [4] Main: 64-Bit Process: True
[19:38:00] [INF] [4] Main: User Interactive: True
[19:38:00] [INF] [4] Main: Processor count: 6
[19:38:00] [INF] [4] Main: Program data path: /config
[19:38:00] [INF] [4] Main: Log directory path: /config/log
[19:38:00] [INF] [4] Main: Config directory path: /config/config
[19:38:00] [INF] [4] Main: Cache path: /cache
[19:38:00] [INF] [4] Main: Web resources path: /jellyfin/jellyfin-web
[19:38:00] [INF] [4] Main: Application directory: /jellyfin/
[19:38:00] [INF] [4] Jellyfin.Server.Migrations.MigrationRunner: Marking following migrations as applied because this is a fresh install: ["CreateNetworkConfiguration", "MigrateMusicBrainzTimeout", "MigrateNetworkConfiguration"]
[19:38:00] [INF] [4] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
[19:38:00] [INF] [4] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[19:38:00] [INF] [4] 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"]
[19:38:00] [INF] [4] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[19:38:00] [INF] [4] 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"]
[19:38:00] [INF] [4] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "192.168.65.9", "192.168.65.6", "172.18.0.1"]
[19:38:00] [INF] [4] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"]
[19:38:00] [INF] [4] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is Allowlist
[19:38:00] [INF] [4] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
[19:38:02] [INF] [4] Emby.Server.Implementations.ApplicationHost: There are pending EFCore migrations in the database. Applying... (This may take a while, do not stop Jellyfin)
[19:38:02] [WRN] [4] Microsoft.EntityFrameworkCore.Migrations: An operation of type 'SqlOperation' will be attempted while a rebuild of table 'ImageInfos' is pending. The database may not be in an expected state. Review the SQL generated by this migration to help diagnose any failures. Consider moving these operations to a subsequent migration.
[19:38:02] [WRN] [4] Microsoft.EntityFrameworkCore.Migrations: An operation of type 'SqlOperation' will be attempted while a rebuild of table 'ImageInfos' is pending. The database may not be in an expected state. Review the SQL generated by this migration to help diagnose any failures. Consider moving these operations to a subsequent migration.
[19:38:02] [WRN] [4] Microsoft.EntityFrameworkCore.Migrations: An operation of type 'SqlOperation' will be attempted while a rebuild of table 'Permissions' is pending. The database may not be in an expected state. Review the SQL generated by this migration to help diagnose any failures. Consider moving these operations to a subsequent migration.
[19:38:02] [WRN] [4] Microsoft.EntityFrameworkCore.Migrations: An operation of type 'SqlOperation' will be attempted while a rebuild of table 'Permissions' is pending. The database may not be in an expected state. Review the SQL generated by this migration to help diagnose any failures. Consider moving these operations to a subsequent migration.
[19:38:02] [WRN] [4] Microsoft.EntityFrameworkCore.Migrations: An operation of type 'SqlOperation' will be attempted while a rebuild of table 'Preferences' is pending. The database may not be in an expected state. Review the SQL generated by this migration to help diagnose any failures. Consider moving these operations to a subsequent migration.
[19:38:02] [WRN] [4] Microsoft.EntityFrameworkCore.Migrations: An operation of type 'SqlOperation' will be attempted while a rebuild of table 'Preferences' is pending. The database may not be in an expected state. Review the SQL generated by this migration to help diagnose any failures. Consider moving these operations to a subsequent migration.
[19:38:02] [WRN] [4] Microsoft.EntityFrameworkCore.Migrations: An operation of type 'SqlOperation' will be attempted while a rebuild of table 'Users' is pending. The database may not be in an expected state. Review the SQL generated by this migration to help diagnose any failures. Consider moving these operations to a subsequent migration.
[19:38:02] [WRN] [4] Microsoft.EntityFrameworkCore.Migrations: An operation of type 'SqlOperation' will be attempted while a rebuild of table 'Users' is pending. The database may not be in an expected state. Review the SQL generated by this migration to help diagnose any failures. Consider moving these operations to a subsequent migration.
[19:38:03] [INF] [4] Emby.Server.Implementations.ApplicationHost: EFCore migrations applied successfully
[19:38:03] [INF] [4] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Saving system configuration
[19:38:03] [INF] [4] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
[19:38:03] [INF] [4] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: TMDb 10.9.7.0
[19:38:03] [INF] [4] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: Studio Images 10.9.7.0
[19:38:03] [INF] [4] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: OMDb 10.9.7.0
[19:38:03] [INF] [4] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: MusicBrainz 10.9.7.0
[19:38:03] [INF] [4] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: AudioDB 10.9.7.0
[19:38:03] [INF] [4] 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"]
[19:38:03] [INF] [4] Jellyfin.Server.Migrations.MigrationRunner: Applying migration 'AddDefaultPluginRepository'
[19:38:03] [INF] [4] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Saving system configuration
[19:38:03] [INF] [4] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
[19:38:03] [INF] [4] Jellyfin.Server.Migrations.MigrationRunner: Migration 'AddDefaultPluginRepository' applied successfully
[19:38:03] [INF] [4] Jellyfin.Server.Migrations.MigrationRunner: Applying migration 'ReaddDefaultPluginRepository'
[19:38:03] [INF] [4] Jellyfin.Server.Migrations.MigrationRunner: Migration 'ReaddDefaultPluginRepository' applied successfully
[19:38:03] [INF] [4] Jellyfin.Server.Migrations.MigrationRunner: Applying migration 'AddDefaultCastReceivers'
[19:38:03] [INF] [4] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Saving system configuration
[19:38:03] [INF] [4] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
[19:38:03] [INF] [4] Jellyfin.Server.Migrations.MigrationRunner: Migration 'AddDefaultCastReceivers' applied successfully
[19:38:03] [INF] [4] Jellyfin.Server.Migrations.MigrationRunner: Applying migration 'UpdateDefaultPluginRepository10.9'
[19:38:03] [INF] [4] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Saving system configuration
[19:38:03] [INF] [4] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /cache
[19:38:03] [INF] [4] Jellyfin.Server.Migrations.MigrationRunner: Migration 'UpdateDefaultPluginRepository10.9' applied successfully
[19:38:03] [INF] [4] Main: Kestrel is listening on 0.0.0.0
[19:38:03] [WRN] [4] Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager: No XML encryptor configured. Key {3845eeb1-bac1-459c-b3b8-1faa42929cdf} may be persisted to storage in unencrypted form.
[19:38:04] [WRN] [4] Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware: The WebRootPath was not found: /wwwroot. Static files may be unavailable.
[19:38:04] [INF] [4] Emby.Server.Implementations.ApplicationHost: Running startup tasks
[19:38:04] [INF] [4] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for Generate Trickplay Images set to fire at 2024-07-12 03:00:00.000 +00:00, which is 07:21:55.1624953 from now.
[19:38:04] [INF] [4] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for Extract Chapter Images set to fire at 2024-07-12 02:00:00.000 +00:00, which is 06:21:55.1580509 from now.
[19:38:05] [INF] [4] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version 6.0.1
[19:38:05] [INF] [4] 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"]
[19:38:05] [INF] [4] 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"]
[19:38:05] [INF] [4] 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"]
[19:38:05] [INF] [4] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available hwaccel types: ["cuda", "vaapi", "qsv", "drm", "opencl", "vulkan"]
[19:38:06] [INF] [4] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: /usr/lib/jellyfin-ffmpeg/ffmpeg
[19:38:06] [INF] [4] Emby.Server.Implementations.ApplicationHost: ServerId: 2e3497df3f2c4535a2130278fb06b6f5
[19:38:06] [INF] [4] Emby.Server.Implementations.ApplicationHost: Core startup complete
[19:38:06] [INF] [4] Main: Startup complete 0:00:06.4207334
[19:38:07] [INF] [6] Emby.Server.Implementations.ScheduledTasks.TaskManager: Clean up collections and playlists Completed after 0 minute(s) and 0 seconds
[19:38:09] [INF] [12] Emby.Server.Implementations.ScheduledTasks.TaskManager: Update Plugins Completed after 0 minute(s) and 1 seconds
[20:38:06] [INF] [118] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: Optimizing and vacuuming jellyfin.db...
[20:38:06] [INF] [18] Emby.Server.Implementations.ScheduledTasks.TaskManager: Clean Log Directory Completed after 0 minute(s) and 0 seconds
[20:38:06] [INF] [17] Emby.Server.Implementations.ScheduledTasks.TaskManager: Clean Transcode Directory Completed after 0 minute(s) and 0 seconds
[20:38:06] [INF] [20] Emby.Server.Implementations.ScheduledTasks.TaskManager: Clean Cache Directory Completed after 0 minute(s) and 0 seconds
[20:38:06] [INF] [19] Emby.Server.Implementations.ScheduledTasks.TaskManager: Audio Normalization Completed after 0 minute(s) and 0 seconds
[20:38:06] [INF] [25] Emby.Server.Implementations.ScheduledTasks.TaskManager: Download missing subtitles Completed after 0 minute(s) and 0 seconds
[20:38:07] [INF] [19] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[20:38:08] [INF] [25] Emby.Server.Implementations.ScheduledTasks.TaskManager: TasksRefreshChannels Completed after 0 minute(s) and 0 seconds
[20:38:08] [INF] [120] Emby.Server.Implementations.Library.LibraryManager: People validation complete
[20:38:08] [INF] [120] Emby.Server.Implementations.ScheduledTasks.TaskManager: Refresh People Completed after 0 minute(s) and 1 seconds
[20:38:08] [INF] [118] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: jellyfin.db optimized successfully!
[20:38:08] [INF] [118] Emby.Server.Implementations.ScheduledTasks.TaskManager: Optimize database Completed after 0 minute(s) and 3 seconds
[20:38:09] [WRN] [19] MediaBrowser.Controller.Entities.BaseItem: Library folder /config/data/playlists is inaccessible or empty, skipping
[20:38:10] [WRN] [120] MediaBrowser.Controller.Entities.BaseItem: Library folder /config/data/playlists is inaccessible or empty, skipping
[20:38:10] [INF] [20] Emby.Server.Implementations.ScheduledTasks.TaskManager: Scan Media Library Completed after 0 minute(s) and 2 seconds
[20:38:11] [INF] [17] Emby.Server.Implementations.ScheduledTasks.TaskManager: Update Plugins Completed after 0 minute(s) and 3 seconds
[20:38:11] [INF] [17] Jellyfin.LiveTv.Guide.GuideManager: Refreshing guide with 7 days of guide data
[20:38:11] [INF] [17] Emby.Server.Implementations.ScheduledTasks.TaskManager: Refresh Guide Completed after 0 minute(s) and 3 seconds
[21:57:36] [INF] [72] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[21:57:36] [INF] [70] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: Optimizing and vacuuming jellyfin.db...
[21:57:37] [INF] [65] Emby.Server.Implementations.Library.LibraryManager: People validation complete
[21:57:37] [INF] [65] Emby.Server.Implementations.ScheduledTasks.TaskManager: Refresh People Completed after 0 minute(s) and 0 seconds
[21:57:38] [INF] [70] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: jellyfin.db optimized successfully!
[21:57:38] [INF] [70] Emby.Server.Implementations.ScheduledTasks.TaskManager: Optimize database Completed after 0 minute(s) and 2 seconds
[21:57:39] [WRN] [72] MediaBrowser.Controller.Entities.BaseItem: Library folder /config/data/playlists is inaccessible or empty, skipping
[21:57:39] [WRN] [73] MediaBrowser.Controller.Entities.BaseItem: Library folder /config/data/playlists is inaccessible or empty, skipping
[21:57:39] [INF] [73] Emby.Server.Implementations.ScheduledTasks.TaskManager: Scan Media Library Completed after 0 minute(s) and 2 seconds
[21:57:40] [INF] [73] Jellyfin.LiveTv.Guide.GuideManager: Refreshing guide with 7 days of guide data
[21:57:40] [INF] [73] Emby.Server.Implementations.ScheduledTasks.TaskManager: Refresh Guide Completed after 0 minute(s) and 3 seconds
I'm running docker under my own user account, not as root. I'm not a sudoer, that's how debian came and I figured I'd stick to it.
RE: New docker container keeps restarting - TheDreadPirate - 2024-07-11
Code: Filtered interface addresses: ["127.0.0.1", "192.168.65.9", "192.168.65.6", "172.18.0.1"]
Which address are you using when trying to connect to it?
RE: New docker container keeps restarting - amminadabz - 2024-07-12
The host ip, 192.168.68.82:8096
RE: New docker container keeps restarting - TheDreadPirate - 2024-07-12
(2024-07-12, 01:01 AM)amminadabz Wrote: The host ip, 192.168.68.82:8096
This address doesn't appear on the list of addresses that the container sees, AFAICT.
192.168.65.9
192.168.65.6
Those are the two host addresses the container sees. Use "sudo ifconfig -a" to list out all the interfaces on the host and their IPs.
Also, why are there two IPs? Do you have two NICs?
|