Docker suddenly keeps restarting (worked previously) (Jellyfin)

My Jellyfin docker container went down yesterday and now won’t stay up anymore. It was working perfectly for several weeks, but now there’s some issue.

With “docker container ls” I can see that the container is there, but is never up for more than 10 seconds before I get something like “Restarting (133) 3 seconds ago”.

I’ve removed the container and added it back again. I’m using docker run.

Any advice?

Thanks!

I ran “docker logs --tail 50 --follow --timestamps jellyfin” and this is the output:

2023-11-08T08:45:00.085464652Z    at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteScalar(RelationalCommandParameterObject parameterObject)
2023-11-08T08:45:00.085478856Z    at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.Exists()
2023-11-08T08:45:00.085492818Z    at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.GetAppliedMigrations()
2023-11-08T08:45:00.085507059Z    at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.GetAppliedMigrations(DatabaseFacade databaseFacade)
2023-11-08T08:45:00.085521262Z    at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.GetPendingMigrations(DatabaseFacade databaseFacade)
2023-11-08T08:45:00.085535762Z    at Jellyfin.Server.Implementations.JellyfinDbProvider..ctor(IServiceProvider serviceProvider, IApplicationPaths appPaths, ILogger1 logger)
2023-11-08T08:45:00.085550243Z    at System.RuntimeMethodHandle.InvokeMethod(Object target, Span1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
2023-11-08T08:45:00.085567039Z    at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
2023-11-08T08:45:00.085581965Z    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
2023-11-08T08:45:00.085596612Z    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2023-11-08T08:45:00.085615501Z    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
2023-11-08T08:45:00.085632538Z    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2023-11-08T08:45:00.085646963Z    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
2023-11-08T08:45:00.085661518Z    at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
2023-11-08T08:45:00.085675648Z    at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
2023-11-08T08:45:00.085689962Z    at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
2023-11-08T08:45:00.085729017Z    at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
2023-11-08T08:45:00.085746461Z    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
2023-11-08T08:45:00.085760776Z    at Emby.Server.Implementations.ApplicationHost.Resolve[T]()
2023-11-08T08:45:00.085774553Z    at Jellyfin.Server.Program.StartApp(StartupOptions options)
2023-11-08T08:45:00.085788330Z    at Jellyfin.Server.Program.<Main>(String[] args)
2023-11-08T08:45:00.087513498Z Unhandled exception. Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 10: 'disk I/O error'.
2023-11-08T08:45:00.087612940Z    at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
2023-11-08T08:45:00.087636125Z    at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements(Stopwatch timer)+MoveNext()
2023-11-08T08:45:00.087651050Z    at Microsoft.Data.Sqlite.SqliteCommand.GetStatements(Stopwatch timer)+MoveNext()
2023-11-08T08:45:00.087665383Z    at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
2023-11-08T08:45:00.087699938Z    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
2023-11-08T08:45:00.087715234Z    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader()
2023-11-08T08:45:00.087729382Z    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteScalar()
2023-11-08T08:45:00.087743141Z    at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteScalar(RelationalCommandParameterObject parameterObject)
2023-11-08T08:45:00.087776399Z    at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.Exists()
2023-11-08T08:45:00.087791899Z    at Microsoft.EntityFrameworkCore.Migrations.HistoryRepository.GetAppliedMigrations()
2023-11-08T08:45:00.087806010Z    at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.GetAppliedMigrations(DatabaseFacade databaseFacade)
2023-11-08T08:45:00.087820102Z    at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.GetPendingMigrations(DatabaseFacade databaseFacade)
2023-11-08T08:45:00.087834306Z    at Jellyfin.Server.Implementations.JellyfinDbProvider..ctor(IServiceProvider serviceProvider, IApplicationPaths appPaths, ILogger1 logger)
2023-11-08T08:45:00.087868731Z    at System.RuntimeMethodHandle.InvokeMethod(Object target, Span1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
2023-11-08T08:45:00.087884156Z    at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
2023-11-08T08:45:00.087898823Z    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
2023-11-08T08:45:00.087913230Z    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
2023-11-08T08:45:00.087946785Z    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context)
2023-11-08T08:45:00.088002135Z    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
2023-11-08T08:45:00.088039690Z    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
2023-11-08T08:45:00.088054412Z    at Microsoft.Extensions.DependencyInjection.ServiceProvider.CreateServiceAccessor(Type serviceType)
2023-11-08T08:45:00.088068486Z    at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
2023-11-08T08:45:00.088082726Z    at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope)
2023-11-08T08:45:00.088117114Z    at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType)
2023-11-08T08:45:00.088132170Z    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
2023-11-08T08:45:00.088146392Z    at Emby.Server.Implementations.ApplicationHost.Resolve[T]()
2023-11-08T08:45:00.088160095Z    at Jellyfin.Server.Program.StartApp(StartupOptions options)
2023-11-08T08:45:00.088191817Z    at Jellyfin.Server.Program.<Main>(String[] args) 

Did you read the log?

2 Likes

Got it fixed, the drive was over full.