Yes it was HealthCheck calling IdentityRoleRepository.GetListAsync
I'm reporting a small problem with IdentityRole Repository (and maybe others too)
The interface contains includeDetails = false
But in the implementation, it's True.
If the repository is injected with the interface, False wins. If it's injected with the class, True wins.
I recommend that you align your implementation code with the defaults in the interface.
Thanks!
[Sturla] said:
Seems like you are the only one active in this thread
It does, doesn’t? 😅 Do they value my inputs or should I just stop?
I find your posts interesting because I too have similar errors. And I think it's right to report them so ABP Team can improve the product and avoid new ones.
I don't use InMemory storage in my code, and the query looks like it's an ABP (Roles) module. It runs every 10 seconds.
I've been asked to not have Workers running in the application servers and only have them in the ETL Server. Can you help me figure out which one it is so I can block it if possible or open an issue about it?
Thanks
P.s. You can use the repo shared with you for debug and test.
[maliming] said:
Saved 2 entities to in-memory store.
This log only outputs if you are using
Microsoft.EntityFrameworkCore.InMemory
But who generates them since I have deactivated all workers and jobs?
Ok, and for my second question?
I did it, but it's not clear to me why it's needed since the jobs are not initialized and the worker I made to delete the logs is similar to ExpiredAuditLogDeleterWorker so it shouldn't depend on the presence or absence of HangFire. Can you explain it to me?
Finally, I always see this call in the logs. I thought it was related to the ABP workers, but it doesn't seem to be the case since they should all be down now. Can you tell me what's causing it?
2025-08-12T10:22:32.9921082+02:00 [INF] -
(Microsoft.EntityFrameworkCore.Database.Command)
Executed DbCommand ("4"ms) [Parameters=["@__p_0='0', @__p_1='1'"], CommandType='Text', CommandTimeout='30']"\r\n""SELECT [a].[Id], [a].[ConcurrencyStamp], [a].[EntityVersion], [a].[ExtraProperties], [a].[IsDefault], [a].[IsPublic], [a].[IsStatic], [a].[Name], [a].[NormalizedName], [a].[TenantId]\r\nFROM [AbpRoles] AS [a]\r\nWHERE [a].[TenantId] IS NULL\r\nORDER BY [a].[Id]\r\nOFFSET @__p_0 ROWS FETCH NEXT @__p_1 ROWS ONLY"
2025-08-12T10:22:32.9936939+02:00 [INF] -
(Microsoft.EntityFrameworkCore.Update)
Saved 2 entities to in-memory store.
2025-08-12T10:22:42.9977294+02:00 [INF] -
(Microsoft.EntityFrameworkCore.Database.Command)
Executed DbCommand ("4"ms) [Parameters=["@__p_0='0', @__p_1='1'"], CommandType='Text', CommandTimeout='30']"\r\n""SELECT [a].[Id], [a].[ConcurrencyStamp], [a].[EntityVersion], [a].[ExtraProperties], [a].[IsDefault], [a].[IsPublic], [a].[IsStatic], [a].[Name], [a].[NormalizedName], [a].[TenantId]\r\nFROM [AbpRoles] AS [a]\r\nWHERE [a].[TenantId] IS NULL\r\nORDER BY [a].[Id]\r\nOFFSET @__p_0 ROWS FETCH NEXT @__p_1 ROWS ONLY"
2025-08-12T10:22:42.9995277+02:00 [INF] -
(Microsoft.EntityFrameworkCore.Update)
Saved 2 entities to in-memory store.
Thanks
I tried, but when I disable it from appsettings I get this error:
Volo.Abp.AbpInitializationException: An error occurred during the initialize Volo.Abp.Modularity.OnPreApplicationInitializationModuleLifecycleContributor phase of the module Volo.Abp.BackgroundWorkers.Hangfire.AbpBackgroundWorkersHangfireModule, Volo.Abp.BackgroundWorkers.Hangfire, Version=8.3.2.0, Culture=neutral, PublicKeyToken=null: An exception was thrown while activating ?:Volo.Abp.Hangfire.AbpHangfireBackgroundJobServer -> ?:Hangfire.JobStorage.. See the inner exception for details.
---> Autofac.Core.DependencyResolutionException: An exception was thrown while activating ?:Volo.Abp.Hangfire.AbpHangfireBackgroundJobServer -> ?:Hangfire.JobStorage.
---> System.InvalidOperationException: Current JobStorage instance has not been initialized yet. You must set it before using Hangfire Client or Server API. For .NET Core applications please call the IServiceCollection.AddHangfire
extension method from Hangfire.NetCore or Hangfire.AspNetCore package depending on your application type when configuring the services and ensure service-based APIs are used instead of static ones, like IBackgroundJobClient
instead of BackgroundJob
and IRecurringJobManager
instead of RecurringJob
.
at Hangfire.JobStorage.get_Current() in C:\projects\hangfire-525\src\Hangfire.Core\JobStorage.cs:line 42
Hi @maliming, sorry to ask, but can you explain what these options do? I'm always interested in understanding ABP services, since I don't use many of them, and I'd also like to find a way to disable anything I don't need to improve debugging and development.
Thanks
Sorry, I don't have time to test the proposed solution yet. Could you check if it works in the project already shared? If not, I'll do it tomorrow. In the meantime, I'll keep the ticket open.
Thanks
Ok, thanks anyway for your support