This commit is contained in:
Konstantin Hintermayer 2025-05-30 16:18:51 +02:00
parent 37c418a869
commit db63447052
4 changed files with 61 additions and 8 deletions

View File

@ -0,0 +1,45 @@
[2025-05-30 14:16:14+00:00] [Error] [Oqtane.Infrastructure.NotificationJob] An Error Occurred Stopping Scheduled Job: Notification Job - System.InvalidOperationException: No database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext.
at Microsoft.EntityFrameworkCore.Internal.DbContextServices.Initialize(IServiceProvider scopedProvider, DbContextOptions contextOptions, DbContext context)
at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()
at Microsoft.EntityFrameworkCore.DbContext.get_Model()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.CheckState()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Collections.Generic.IEnumerable<TEntity>.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Oqtane.Repository.JobRepository.<GetJobs>b__3_0(ICacheEntry entry) in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Repository/JobRepository.cs:line 26
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory, MemoryCacheEntryOptions createOptions)
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory)
at Oqtane.Repository.JobRepository.GetJobs() in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Repository/JobRepository.cs:line 23
at Oqtane.Infrastructure.HostedServiceBase.StopAsync(CancellationToken cancellationToken) in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Infrastructure/Jobs/HostedServiceBase.cs:line 288
[2025-05-30 14:16:14+00:00] [Error] [Oqtane.Infrastructure.PurgeJob] An Error Occurred Stopping Scheduled Job: Purge Job - System.InvalidOperationException: No database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext.
at Microsoft.EntityFrameworkCore.Internal.DbContextServices.Initialize(IServiceProvider scopedProvider, DbContextOptions contextOptions, DbContext context)
at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()
at Microsoft.EntityFrameworkCore.DbContext.get_Model()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.CheckState()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Collections.Generic.IEnumerable<TEntity>.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Oqtane.Repository.JobRepository.<GetJobs>b__3_0(ICacheEntry entry) in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Repository/JobRepository.cs:line 26
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory, MemoryCacheEntryOptions createOptions)
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory)
at Oqtane.Repository.JobRepository.GetJobs() in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Repository/JobRepository.cs:line 23
at Oqtane.Infrastructure.HostedServiceBase.StopAsync(CancellationToken cancellationToken) in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Infrastructure/Jobs/HostedServiceBase.cs:line 288
[2025-05-30 14:16:14+00:00] [Error] [Oqtane.Infrastructure.SearchIndexJob] An Error Occurred Stopping Scheduled Job: Search Index Job - System.InvalidOperationException: No database provider has been configured for this DbContext. A provider can be configured by overriding the 'DbContext.OnConfiguring' method or by using 'AddDbContext' on the application service provider. If 'AddDbContext' is used, then also ensure that your DbContext type accepts a DbContextOptions<TContext> object in its constructor and passes it to the base constructor for DbContext.
at Microsoft.EntityFrameworkCore.Internal.DbContextServices.Initialize(IServiceProvider scopedProvider, DbContextOptions contextOptions, DbContext context)
at Microsoft.EntityFrameworkCore.DbContext.get_ContextServices()
at Microsoft.EntityFrameworkCore.DbContext.get_Model()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityType()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.CheckState()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.get_EntityQueryable()
at Microsoft.EntityFrameworkCore.Internal.InternalDbSet`1.System.Collections.Generic.IEnumerable<TEntity>.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Oqtane.Repository.JobRepository.<GetJobs>b__3_0(ICacheEntry entry) in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Repository/JobRepository.cs:line 26
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory, MemoryCacheEntryOptions createOptions)
at Microsoft.Extensions.Caching.Memory.CacheExtensions.GetOrCreate[TItem](IMemoryCache cache, Object key, Func`2 factory)
at Oqtane.Repository.JobRepository.GetJobs() in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Repository/JobRepository.cs:line 23
at Oqtane.Infrastructure.HostedServiceBase.StopAsync(CancellationToken cancellationToken) in /home/kocoder/src/dotnet/oqtane.framework/oqtane.framework/Oqtane.Server/Infrastructure/Jobs/HostedServiceBase.cs:line 288

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

View File

@ -2,10 +2,10 @@
"RenderMode": "Interactive",
"Runtime": "Server",
"Database": {
"DefaultDBType": ""
"DefaultDBType": "Oqtane.Database.Sqlite.SqliteDatabase, Oqtane.Database.Sqlite"
},
"ConnectionStrings": {
"DefaultConnection": ""
"DefaultConnection": "Data Source=Oqtane-202505301417.db;"
},
"Installation": {
"DefaultAlias": "",
@ -22,27 +22,32 @@
{
"Name": "LocalDB",
"ControlType": "Oqtane.Installer.Controls.LocalDBConfig, Oqtane.Client",
"DBType": "Oqtane.Database.SqlServer.SqlServerDatabase, Oqtane.Database.SqlServer"
"DBTYpe": "Oqtane.Database.SqlServer.SqlServerDatabase, Oqtane.Database.SqlServer"
},
{
"Name": "SQL Server",
"ControlType": "Oqtane.Installer.Controls.SqlServerConfig, Oqtane.Client",
"DBType": "Oqtane.Database.SqlServer.SqlServerDatabase, Oqtane.Database.SqlServer"
"DBTYpe": "Oqtane.Database.SqlServer.SqlServerDatabase, Oqtane.Database.SqlServer"
},
{
"Name": "SQLite",
"ControlType": "Oqtane.Installer.Controls.SqliteConfig, Oqtane.Client",
"DBType": "Oqtane.Database.Sqlite.SqliteDatabase, Oqtane.Database.Sqlite"
"DBTYpe": "Oqtane.Database.Sqlite.SqliteDatabase, Oqtane.Database.Sqlite"
},
{
"Name": "MySQL",
"ControlType": "Oqtane.Installer.Controls.MySQLConfig, Oqtane.Client",
"DBType": "Oqtane.Database.MySQL.MySQLDatabase, Oqtane.Database.MySQL"
"DBTYpe": "Oqtane.Database.MySQL.MySQLDatabase, Oqtane.Database.MySQL"
},
{
"Name": "PostgreSQL",
"ControlType": "Oqtane.Installer.Controls.PostgreSQLConfig, Oqtane.Client",
"DBType": "Oqtane.Database.PostgreSQL.PostgreSQLDatabase, Oqtane.Database.PostgreSQL"
"DBTYpe": "Oqtane.Database.PostgreSQL.PostgreSQLDatabase, Oqtane.Database.PostgreSQL"
},
{
"Name": "Azure SQL",
"ControlType": "Oqtane.Installer.Controls.AzureSqlConfig, Oqtane.Client",
"DBTYpe": "Oqtane.Database.SqlServer.SqlServerDatabase, Oqtane.Database.SqlServer"
}
],
"Logging": {
@ -54,5 +59,8 @@
"LogLevel": {
"Default": "Information"
}
}
},
"InstallationId": "72980b93-9bdf-4820-a393-b5bc6e26b9b7",
"InstallationVersion": "6.1.3",
"InstallationDate": "202505301417"
}