Activities of "DominaTang"

hi

Please share full debug logs.

Are you sure all your packages are 9.1.1? You can try to upgrade to the latest 9.1.3 https://www.nuget.org/packages/Volo.Abp.Cli/9.1.3

Thanks.

I couldn't upgrade to 9.1.2, create a separate ticket here: https://abp.io/support/questions/9348/ABP-9-upgrade

Here is part of package.json "@abp/ng.components": "~9.1.1", "@abp/ng.core": "~9.1.1", "@abp/ng.oauth": "~9.1.1", "@abp/ng.setting-management": "~9.1.1", "@abp/ng.theme.shared": "~9.1.1", "@abp/ng.feature-management": "~9.1.1", "@volo/abp.commercial.ng.ui": "~9.1.1", "@volo/abp.ng.account": "~9.1.1", "@volo/abp.ng.audit-logging": "~9.1.1", "@volo/abp.ng.identity": "~9.1.1", "@volo/abp.ng.language-management": "~9.1.1", "@volo/abp.ng.openiddictpro": "~9.1.1", "@volo/abp.ng.saas": "~9.1.1", "@volo/abp.ng.text-template-management": "~9.1.1", "@volosoft/abp.ng.theme.lepton-x": "~4.1.1", "@angular/animations": "~19.1.0", "@angular/cdk": "~19.1.0", "@angular/common": "~19.1.0", "@angular/compiler": "~19.1.0", "@angular/core": "~19.1.0", "@angular/forms": "~19.1.0", "@angular/localize": "~19.1.0", "@angular/material": "~19.1.0", "@angular/material-date-fns-adapter": "~19.1.0", "@angular/platform-browser": "~19.1.0", "@angular/platform-browser-dynamic": "~19.1.0", "@angular/router": "~19.1.0",

Answer

yarn version 1.22.22

Answer

export const appConfig: ApplicationConfig = { providers: [ provideAppInitializer(appInitializerFactory()), importProvidersFrom([ AccountAdminConfigModule, IdentityConfigModule, ThemeLeptonXModule.forRoot(), SideMenuLayoutModule.forRoot(), AccountLayoutModule.forRoot(), ]), provideRouter(appRoutes), APP_ROUTE_PROVIDER, OVERRIDE_LEPTON_X_USER_MENU_PROVIDERS, provideAnimations(), // Add the date-fns adapter provider - this is the correct way in Angular 19 provideDateFnsAdapter(), provideAbpCore( withOptions({ environment, registerLocaleFn: registerLocale(), }), ), provideAbpOAuth(), provideOpeniddictproConfig(), provideIdentityConfig(), provideSettingManagementConfig(), provideFeatureManagementConfig(), provideAccountAdminConfig(), provideTextTemplateManagementConfig(), provideLanguageManagementConfig(), provideAccountPublicConfig(), provideCommercialUiConfig(), provideAuditLoggingConfig(), ACCOUNT_MANAGE_PROFILE_TAB_PROVIDERS, //This is local's override abp provider AuditInterceptorProvider, provideAbpThemeShared( withHttpErrorConfig({ errorScreen: { component: HttpErrorComponent, forWhichErrors: [401, 403, 404, 500], hideCloseIcon: true, }, }), withValidationBluePrint({ wrongPassword: 'Please choose 1q2w3E*', }), ), provideSaasConfig(), DateFnsFormatDateTimePipe, DatePipe, TitleCasePipe,

], };

Here is from log: [20:16:42 INF] Executed action method Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore), returned result Microsoft.AspNetCore.Mvc.SignInResult in 83.8041ms. [20:16:42 INF] Executing SignInResult with authentication scheme (OpenIddict.Server.AspNetCore) and the following principal: System.Security.Claims.ClaimsPrincipal. [20:16:42 WRN] There is an entry which is not saved due to concurrency exception: OpenIddictAuthorization {Id: 8b3fde63-5710-65fd-c036-3a135d4249bc} Modified FK {ApplicationId: 55abca09-b50d-399f-246c-3a0cbf31440d}

[20:16:42 INF] Executed action Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore) in 120.0721ms [20:16:42 INF] Executed endpoint 'Volo.Abp.OpenIddict.Controllers.AuthorizeController.HandleAsync (Volo.Abp.OpenIddict.AspNetCore)' [20:16:42 WRN] There is an entry which is not saved due to concurrency exception: OpenIddictAuthorization {Id: 8b3fde63-5710-65fd-c036-3a135d4249bc} Modified FK {ApplicationId: 55abca09-b50d-399f-246c-3a0cbf31440d}

[20:16:42 ERR] An unhandled exception has occurred while executing the request. Volo.Abp.Data.AbpDbConcurrencyException: The database operation was expected to affect 1 row(s), but actually affected 0 row(s); data may have been modified or deleted since entities were loaded. See https://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions. ---> Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: The database operation was expected to affect 1 row

This error comes back again. After yesterday's deployment, there is no 409 error. And this noon, I access QA site again (no new deployment) since that. Is it because of something regarding to session expired

Answer

After upgrade to ABP 9.1.2, angular app got this exception: NullInjectorError: NullInjectorError: No provider for InjectionToken CORE_OPTIONS!

I am using stand alone mode, that the provider sequence in app.config.ts provided by ABP team's sample code when upgrade to 9.1.1

this might caused by item 2, since we figure out a wrong setting in deployment pipeline. I will close the ticket.

Answer

After deploy the code to QA site, there are two more exceptions in Console: function ct(ft, Kt) { const $ = ft.url.toLowerCase(); if (!(0, y.WQX)(ot) || "GET" === ft.method || "HEAD" === ft.method || $.startsWith("http://") || $.startsWith("https://")) return Kt(ft); const Re = (0, y.WQX)(jt).getToken() , he = (0, y.WQX)(at); return null != Re && !ft.headers.has(he) && (ft = ft.clone({ headers: ft.headers.set(he, Re) })), Kt(ft) }

, gA = [(0, t.phd)( () => { !function L9() { (0, t.WQX)(Rn.EVb).add({ id: "Impersonation", executable: !0, execute: r => { const {reason: p} = r , {error: {grant_type: }} = p || {}; return !! && "Impersonation" === _ } }) }() } )];

This ticket could be closed. Restart the container works. But the root cause should be we put wrong Auth server Url in yarp settings.

I checked the code, in AdministrationServiceHttpApiHostModule there is method this method would call _administrationServiceDataSeeder.SeedAsync(), even though I comment out the if statement, and run AdministrationService.HttpApi.Host, the Administrator Db's Permission table is still empty. It's pretty strange.

//if (!env.IsDevelopment())
        {
            using (var scope = context.ServiceProvider.CreateScope())
            {
                await scope.ServiceProvider
                    .GetRequiredService<AdministrationServiceDatabaseMigrationChecker>()
                    .CheckAndApplyDatabaseMigrationsAsync();
            }
        }

Then I run the project template created by ABP Studio, I run each micro service one by one (except for GdprService), then I export the permissions to csv and import to my app's Administraion database and using SQL left join by name and and I only find two missing entries: GroupName Name AdministrationService AdministrationService.Dashboard.Tenant AdministrationService AdministrationService.Dashboard.Host

Though if I left join by name and parent name, then I found 22 rows. I think it's a bug in ABP 9, instead of using Db Null value, it using string 'NULL' as parent name, but it should not relate to issue here. There must be something else regarding to permission policy. NameParentName AbpIdentity.ClaimTypes NULL AbpIdentity.OrganizationUnits NULL AbpIdentity.Roles NULL AbpIdentity.SecurityLogs NULL AbpIdentity.Sessions NULL AbpIdentity.SettingManagement NULL AbpIdentity.UserLookup NULL AbpIdentity.Users NULL AdministrationService.Dashboard.Host NULL AdministrationService.Dashboard.Tenant NULL AuditLogging.AuditLogs NULL FeatureManagement.ManageHostFeatures NULL LanguageManagement.Languages NULL LanguageManagement.LanguageTexts NULL OpenIddictPro.Application NULL OpenIddictPro.Scope NULL Saas.Editions NULL Saas.SettingManagement NULL Saas.Tenants NULL SettingManagement.Emailing NULL SettingManagement.TimeZone NULL TextTemplateManagement.TextTemplates NULL

Showing 21 to 30 of 108 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20