Hi guys,
we are experiencing issues with the permissions being cached on our system
This is a log from our application insight:
Timeout awaiting response (outbound=0KiB, inbound=0KiB, 5428ms elapsed, timeout is 5000ms), command=HMGET, next: HMGET c:Volo.Abp.PermissionManagement.PermissionGrant,k:Flyguys:pn:C,pk:AdministrationService,n:AbpIdentity.Users, inst: 0, qu: 0, qs: 0, aw: False, bw: SpinningDown, rs: ReadAsync, ws: Idle, in: 0, last-in: 28, cur-in: 0, sync-ops: 62, async-ops: 155618, serverEndpoint: flyguys20-shared-arc-prod-eastus.redis.cache.windows.net:6380, conn-sec: 44464.33, aoc: 0, mc: 1/1/0, mgr: 10 of 10 available, clientName: flyguys20-e05cd8f5(SE.Redis-v2.6.122.38350), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=2,Free=32765,Min=8,Max=32767), POOL: (Threads=8,QueuedItems=0,CompletedItems=7239990,Timers=259), v: 2.6.122.38350 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)
We are using Azure Redis Cache for our implementation:
For reference I queried all the keys on the Azure Redis Cache and we got this:
We enabled so the permissions are being read from cache and not queried from the DB (We followed an abp guide to do this) and whenever an user logs in to Angular (it loads permissions and other set of configurations ABP has) it takes a very long time to read those from cache.
We have a total of 1073465 rows in AbpPermissionGrants
We have a total of 29 rows in AbpPermissionGroups
and a total of 1947 in AbpPermissions.
Is there any recomendations on how we can improve the permission process whenever a user is logging into Angular?
Hi guys, we want to check if it is possible to move just the AbpAuditLog table to another data base, we are currently facing a problem with this table, and it is way too big, and we are wondering if it is possible to move this table to CosmosDB.
Do we have to separate the whole audit log module from Administration and from there move the module to cosmos? or can we do just that specific table?
Thanks in advance!
Hi,
Probably because other modules are using the package reference.
I don’t recommend that you customize it through source code, it may make it difficult for you to upgrade in the future.
Could you describe your use case and I will try to help you
Hi Liang, thanks for the answer.
We want to modify the User creation/update modal to hide the user name and make it the same value as the Email when they save it. Also we want to show the errors before the user hits the Save button
ABP Framework version: v7.2.2
UI Type: Angular
Database System: EF Core (SQL Server)
Auth Server Separated (for Angular): yes
Exception message and full stack trace: at System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, RuntimeType type, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) at System.Reflection.CustomAttribute.AddCustomAttributes(ListBuilder1& attributes, RuntimeModule decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, ListBuilder1 derivedAttributes) at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) at System.Attribute.GetCustomAttributes(MemberInfo element, Boolean inherit) at Volo.Abp.Modularity.AbpModuleHelper.FindDependedModuleTypes(Type moduleType) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.AddModuleAndDependenciesRecursively(List1 moduleTypes, Type moduleType, ILogger logger, Int32 depth) at Volo.Abp.Modularity.AbpModuleHelper.FindAllModuleTypes(Type startupModuleType, ILogger logger) at Volo.Abp.Modularity.ModuleLoader.FillModules(List1 modules, IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.GetDescriptors(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.Modularity.ModuleLoader.LoadModules(IServiceCollection services, Type startupModuleType, PlugInSourceList plugInSources) at Volo.Abp.AbpApplicationBase.LoadModules(IServiceCollection services, AbpApplicationCreationOptions options) at Volo.Abp.AbpApplicationBase..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationWithExternalServiceProvider..ctor(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.Create(Type startupModuleType, IServiceCollection services, Action1 optionsAction) at Volo.Abp.AbpApplicationFactory.<CreateAsync>d__21.MoveNext() at Microsoft.Extensions.DependencyInjection.ServiceCollectionApplicationExtensions.<AddApplicationAsync>d__21.MoveNext() at Microsoft.Extensions.DependencyInjection.WebApplicationBuilderExtensions.<AddApplicationAsync>d__0`1.MoveNext() at NVC.Flyguys.IdentityService.Program.
d__0.MoveNext() in C:\repo\FGBackEnd\NVC.FlyGuys\services\identity\src\NVC.Flyguys.IdentityService.HttpApi.Host\Program.cs:line 39
Steps to reproduce the issue:
Hi team,
We are trying to to replace a few front end changes from the Identity Service (Specifically the user creator, we want to replace the username and add a few custom validations). However when I dowloaded the source code with the Abp Suite, when I execute the project to check if its working correctly after using the suite to add the source code I get this error:
this is in the Program.cs
Let me know if I can provide more information
Thanks!