Hi, we are unable to save permissions for users (e.g. ADMIN) and below are the exception details. please let us know if there is anything we can do manually
- ABP Framework version: ABP CLI 7.3.0
- UI Type: Blazor Server
- Database System: EF Core (SQL Server)
- Tiered (for MVC) or Auth Server Separated (for Angular): no
- Exception message and full stack trace:
- 2023-09-14 19:39:36.867 +05:30 [INF] Request finished HTTP/1.1 GET https://localhost:44392/api/permission-management/permissions?providerName=U&providerKey=8bc0ec4f-05b8-cc79-8453-3a0b44a40c99&api-version=1.0 - - - 200 - application/json;+charset=utf-8 25507.0827ms 2023-09-14 19:40:00.655 +05:30 [INF] Request starting HTTP/1.1 PUT https://localhost:44392/api/permission-management/permissions?providerName=U&providerKey=8bc0ec4f-05b8-cc79-8453-3a0b44a40c99&api-version=1.0 application/json;+charset=utf-8 4572 2023-09-14 19:40:00.658 +05:30 [INF] Executing endpoint 'Volo.Abp.PermissionManagement.PermissionsController.UpdateAsync (Volo.Abp.PermissionManagement.HttpApi)' 2023-09-14 19:40:00.665 +05:30 [INF] Route matched with {area = "permissionManagement", action = "Update", controller = "Permissions", page = ""}. Executing controller action with signature System.Threading.Tasks.Task UpdateAsync(System.String, System.String, Volo.Abp.PermissionManagement.UpdatePermissionsDto) on controller Volo.Abp.PermissionManagement.PermissionsController (Volo.Abp.PermissionManagement.HttpApi). 2023-09-14 19:40:00.706 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:U,pk:8bc0ec4f-05b8-cc79-8453-3a0b44a40c99,n:AbpIdentity.Users.ManagePermissions 2023-09-14 19:40:00.706 +05:30 [DBG] Found in the cache: pn:U,pk:8bc0ec4f-05b8-cc79-8453-3a0b44a40c99,n:AbpIdentity.Users.ManagePermissions 2023-09-14 19:40:00.706 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:AbpIdentity.Users.ManagePermissions 2023-09-14 19:40:00.706 +05:30 [DBG] Found in the cache: pn:R,pk:admin,n:AbpIdentity.Users.ManagePermissions 2023-09-14 19:40:00.706 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:RISE_BlazorServerTiered,n:AbpIdentity.Users.ManagePermissions 2023-09-14 19:40:00.706 +05:30 [DBG] Found in the cache: pn:C,pk:RISE_BlazorServerTiered,n:AbpIdentity.Users.ManagePermissions 2023-09-14 19:40:13.161 +05:30 [WRN] Savepoints are disabled because Multiple Active Result Sets (MARS) is enabled. If 'SaveChanges' fails, then the transaction cannot be automatically rolled back to a known clean state. Instead, the transaction should be rolled back by the application before retrying 'SaveChanges'. See https://go.microsoft.com/fwlink/?linkid=2149338 for more information and examples. To identify the code which triggers this warning, call 'ConfigureWarnings(w => w.Throw(SqlServerEventId.SavepointsDisabledBecauseOfMARS))'. 2023-09-14 19:40:13.762 +05:30 [INF] Completed to save external localizations. 2023-09-14 19:41:40.966 +05:30 [ERR] An error occurred using a transaction. 2023-09-14 19:41:40.976 +05:30 [ERR] ---------- RemoteServiceErrorInfo ---------- { "code": null, "message": "An internal error occurred during your request!", "details": null, "data": {}, "validationErrors": null }
- Steps to reproduce the issue:
9 Answer(s)
-
0
hi
An internal error occurred during your request!
Are there any other error logs?
How many permissions does your app have?
-
0
2023-09-15 13:05:20.537 +05:30 [DBG] Getting not cache granted permissions from the repository for this provider name,key: R,admin 2023-09-15 13:05:21.139 +05:30 [DBG] Setting the cache items. Count: 72 2023-09-15 13:05:21.141 +05:30 [DBG] Finished setting the cache items. Count: 72 2023-09-15 13:05:21.142 +05:30 [DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:RISE_BlazorServerTiered,n:AbpIdentity.UserLookup,pn:C,pk:RISE_BlazorServerTiered,n:MerchandiseOrganization.AllUser,pn:C,pk:RISE_BlazorServerTiered,n:MerchandiseOrganization.Edit,pn:C,pk:RISE_BlazorServerTiered,n:RISE.SuperUser 2023-09-15 13:05:21.142 +05:30 [DBG] Not found in the cache: pn:C,pk:RISE_BlazorServerTiered,n:AbpIdentity.UserLookup,pn:C,pk:RISE_BlazorServerTiered,n:MerchandiseOrganization.AllUser,pn:C,pk:RISE_BlazorServerTiered,n:MerchandiseOrganization.Edit,pn:C,pk:RISE_BlazorServerTiered,n:RISE.SuperUser 2023-09-15 13:05:21.143 +05:30 [DBG] Getting not cache granted permissions from the repository for this provider name,key: C,RISE_BlazorServerTiered 2023-09-15 13:05:21.446 +05:30 [DBG] Setting the cache items. Count: 4 2023-09-15 13:05:21.446 +05:30 [DBG] Finished setting the cache items. Count: 4 2023-09-15 13:05:21.757 +05:30 [DBG] Executed AbpApplicationConfigurationAppService.GetAsync(). 2023-09-15 13:05:21.759 +05:30 [DBG] Added 0 entity changes to the current audit log 2023-09-15 13:05:21.759 +05:30 [DBG] Added 0 entity changes to the current audit log 2023-09-15 13:05:21.760 +05:30 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationConfigurationDto'. 2023-09-15 13:05:21.762 +05:30 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 1619.0161ms 2023-09-15 13:05:21.762 +05:30 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationConfigurationController.GetAsync (Volo.Abp.AspNetCore.Mvc)' 2023-09-15 13:05:21.764 +05:30 [DBG] Added 0 entity changes to the current audit log 2023-09-15 13:05:21.764 +05:30 [DBG] Added 0 entity changes to the current audit log 2023-09-15 13:05:21.765 +05:30 [INF] Request finished HTTP/1.1 GET https://localhost:44392/api/abp/application-configuration?IncludeLocalizationResources=False&api-version=1.0 - - - 200 - application/json;+charset=utf-8 1625.8087ms 2023-09-15 13:05:21.767 +05:30 [INF] Request starting HTTP/1.1 GET https://localhost:44392/api/abp/application-localization?CultureName=en&OnlyDynamics=True&api-version=1.0 - - 2023-09-15 13:05:21.770 +05:30 [INF] Executing endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationLocalizationController.GetAsync (Volo.Abp.AspNetCore.Mvc)' 2023-09-15 13:05:21.770 +05:30 [INF] Route matched with {area = "abp", action = "Get", controller = "AbpApplicationLocalization", page = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationLocalizationDto] GetAsync(Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationLocalizationRequestDto) on controller Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationLocalizationController (Volo.Abp.AspNetCore.Mvc). 2023-09-15 13:05:21.775 +05:30 [INF] Executing ObjectResult, writing value of type 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.ApplicationLocalizationDto'. 2023-09-15 13:05:21.775 +05:30 [INF] Executed action Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationLocalizationController.GetAsync (Volo.Abp.AspNetCore.Mvc) in 5.6234ms 2023-09-15 13:05:21.775 +05:30 [INF] Executed endpoint 'Volo.Abp.AspNetCore.Mvc.ApplicationConfigurations.AbpApplicationLocalizationController.GetAsync (Volo.Abp.AspNetCore.Mvc)' 2023-09-15 13:05:21.776 +05:30 [INF] Request finished HTTP/1.1 GET https://localhost:44392/api/abp/application-localization?CultureName=en&OnlyDynamics=True&api-version=1.0 - - - 200 - application/json;+charset=utf-8 8.3326ms
-
0
we have two permissions for each module such as view(All User) and edit(Edit) permissions
-
0
hi
Please share all logs.txt of your applications.
liming.ma@volosoft.com
I wonder how can I reproduce this on my local machine.
-
0
Hi shared over email with subject as Log File. please check
-
0
try enable auth server and check in local
-
0
hi
There is not much useful info in the log.
Can you share a simple project? I will reproduce the problem locally.
liming.ma@volosoft.com
-
0
Hi, I have replied to the same email with the latest log file subject as Log File. please check
-
0
hi
Can you share a simple project? I will reproduce the problem locally.