linuxserver / docker-jellyfin

GNU General Public License v3.0
630 stars 94 forks source link

jellyfin does not start - Received a SIGTERM signal, shutting down #122

Closed uinguzero closed 3 years ago

uinguzero commented 3 years ago

os: ubuntu 21.04

how i start jellyfin

sudo docker run -d \
  --name=jellyfin \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Europe/Brussels \
  -p 8096:8096 \
  -v /opt/jellyfin:/config:Z \
   -v /media/jellyfin-cache:/cache:Z \
   -v /media/tvseries:/media/tvseries \
   -v /media/movies:/media/movies \
   -v /media/music:/media/music \
   -v /media/books:/media/books \
   -v /media/pictures:/media/pictures \
  --device /dev/dri:/dev/dri \
  --restart unless-stopped \
  ghcr.io/linuxserver/jellyfin 

part in the log

[12:18:47] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
[12:18:47] [INF] [2] Main: Received a SIGTERM signal, shutting down

full logs

   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.<RealizeService>b__0(ServiceProviderEngineScope scope),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType),
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType),
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider),
   at Emby.Server.Implementations.ApplicationHost.Resolve[T](),
   at Emby.Server.Implementations.ApplicationHost.InitializeServices(),
   at Jellyfin.Server.Program.StartApp(StartupOptions options),
[12:19:19] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost,
[12:19:19] [INF] [2] Main: Received a SIGTERM signal, shutting down,
[12:19:19] [INF] [1] Main: Jellyfin version: 10.7.6,
[12:19:19] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_CACHE_DIR, /config/cache]"],
[12:19:19] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg", "--webdir=/usr/share/jellyfin/web"],
[12:19:19] [INF] [1] Main: Operating system: Linux,
[12:19:19] [INF] [1] Main: Architecture: X64,
[12:19:19] [INF] [1] Main: 64-Bit Process: True,
[12:19:19] [INF] [1] Main: User Interactive: True,
[12:19:19] [INF] [1] Main: Processor count: 8,
[12:19:19] [INF] [1] Main: Program data path: /config/data,
[12:19:19] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web,
[12:19:19] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/,
[12:19:19] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /config/cache,
[12:19:19] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16],
[12:19:19] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : [],
[12:19:19] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16],
[12:19:19] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: [],
[12:19:19] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: [],
[12:19:19] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies,
[12:19:20] [FTL] [1] Main: Error while starting server.,
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 8: 'attempt to write a readonly database'.,
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db),
   at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements(Stopwatch timer)+MoveNext(),
   at Microsoft.Data.Sqlite.SqliteCommand.GetStatements(Stopwatch timer)+MoveNext(),
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult(),
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior),
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(),
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteScalar(),
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteScalar(RelationalCommandParameterObject parameterObject),
   at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.Exists(),
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration),
   at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.Migrate(DatabaseFacade databaseFacade),
   at Jellyfin.Server.Implementations.JellyfinDbProvider..ctor(IServiceProvider serviceProvider, IApplicationPaths appPaths),
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions),
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.<RealizeService>b__0(ServiceProviderEngineScope scope),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope),
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngine.GetService(Type serviceType),
   at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType),
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider),
   at Emby.Server.Implementations.ApplicationHost.Resolve[T](),
   at Emby.Server.Implementations.ApplicationHost.InitializeServices(),
   at Jellyfin.Server.Program.StartApp(StartupOptions options),
[12:19:20] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost,
[12:19:20] [INF] [2] Main: Received a SIGTERM signal, shutting down,
[12:19:20] [INF] [1] Main: Jellyfin version: 10.7.6,
[12:19:20] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_DATA_DIR, /config/data]"],
[12:19:20] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg", "--webdir=/usr/share/jellyfin/web"],
[12:19:20] [INF] [1] Main: Operating system: Linux,
[12:19:20] [INF] [1] Main: Architecture: X64,
[12:19:20] [INF] [1] Main: 64-Bit Process: True,
[12:19:20] [INF] [1] Main: User Interactive: True,
[12:19:20] [INF] [1] Main: Processor count: 8,
[12:19:20] [INF] [1] Main: Program data path: /config/data,
[12:19:20] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web,
[12:19:20] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/,
[12:19:21] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /config/cache,
[12:19:21] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16],
[12:19:21] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : [],
[12:19:21] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: [127.0.0.1/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16],
[12:19:21] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: [],
[12:19:21] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: [],
[12:19:21] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies,
github-actions[bot] commented 3 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

j0nnymoe commented 3 years ago

Please provide the full docker log from the container, docker log jellyfin.

j0nnymoe commented 3 years ago

Though, your issue is stated in the logs Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 8: 'attempt to write a readonly database'.,

Make sure your UID/GIF you're using has the correct access to the folder you're using for /config

uinguzero commented 3 years ago

ok, i found out where i was missing the permissions.

so now i don't get the error aymore and i see good logging.