Starting web host.
[20:05:11 INF] Starting web host.
[20:05:20 WRN] Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
[20:05:20 INF] User profile is available. Using '/root/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
[20:05:20 INF] Loaded ABP modules:
[20:05:20 INF] - DeviceManagement.DeviceManagementHttpApiHostModule
[20:05:20 INF] - DeviceManagement.DeviceManagementHttpApiHostModule
[20:05:20 INF] - DeviceManagement.Migration.DeviceManagementApplicationModule
[20:05:20 INF] - DeviceManagement.Migration.DeviceManagementApplicationModule
[20:05:20 INF] - DeviceManagement.DeviceManagementDomainModule
[20:05:20 INF] - DeviceManagement.DeviceManagementDomainModule
[20:05:20 INF] - Volo.Abp.Domain.AbpDddDomainModule
[20:05:20 INF] - Volo.Abp.Domain.AbpDddDomainModule
[20:05:20 INF] - Volo.Abp.Auditing.AbpAuditingModule
[20:05:20 INF] - Volo.Abp.Auditing.AbpAuditingModule
[20:05:20 INF] - Volo.Abp.Data.AbpDataModule
[20:05:20 INF] - Volo.Abp.Data.AbpDataModule
[20:05:20 INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
[20:05:20 INF] - Volo.Abp.ObjectExtending.AbpObjectExtendingModule
[20:05:20 INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
[20:05:20 INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule
[20:05:20 INF] - Volo.Abp.Localization.AbpLocalizationAbstractionsModule
[20:05:20 INF] - Volo.Abp.Validation.AbpValidationAbstractionsModule
[20:05:20 INF] - Volo.Abp.Uow.AbpUnitOfWorkModule
[20:05:20 INF] - Volo.Abp.Uow.AbpUnitOfWorkModule
[20:05:20 INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
[20:05:20 INF] - Volo.Abp.Json.AbpJsonModule
[20:05:20 INF] - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule
[20:05:20 INF] - Volo.Abp.Timing.AbpTimingModule
[20:05:20 INF] - Volo.Abp.Json.AbpJsonModule
[20:05:20 INF] - Volo.Abp.Timing.AbpTimingModule
[20:05:20 INF] - Volo.Abp.Localization.AbpLocalizationModule
[20:05:20 INF] - Volo.Abp.Localization.AbpLocalizationModule
[20:05:20 INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
[20:05:20 INF] - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule
[20:05:20 INF] - Volo.Abp.Settings.AbpSettingsModule
[20:05:20 INF] - Volo.Abp.Settings.AbpSettingsModule
[20:05:20 INF] - Volo.Abp.Security.AbpSecurityModule
[20:05:20 INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
[20:05:20 INF] - Volo.Abp.Security.AbpSecurityModule
[20:05:20 INF] - Volo.Abp.MultiTenancy.AbpMultiTenancyModule
[20:05:20 INF] - Volo.Abp.Threading.AbpThreadingModule
[20:05:20 INF] - Volo.Abp.Threading.AbpThreadingModule
[20:05:20 INF] - Volo.Abp.EventBus.AbpEventBusModule
[20:05:20 INF] - Volo.Abp.Guids.AbpGuidsModule
[20:05:20 INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule
[20:05:20 INF] - Volo.Abp.EventBus.AbpEventBusModule
[20:05:20 INF] - Volo.Abp.Guids.AbpGuidsModule
[20:05:20 INF] - Volo.Abp.ObjectMapping.AbpObjectMappingModule
[20:05:20 INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
[20:05:20 INF] - Volo.Abp.Specifications.AbpSpecificationsModule
[20:05:20 INF] - DeviceManagement.DeviceManagementDomainSharedModule
[20:05:20 INF] - Volo.Abp.Validation.AbpValidationModule
[20:05:20 INF] - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule
[20:05:20 INF] - DeviceManagement.Migration.DeviceManagementApplicationContractsModule
[20:05:20 INF] - Volo.Abp.Specifications.AbpSpecificationsModule
[20:05:20 INF] - DeviceManagement.DeviceManagementDomainSharedModule
[20:05:20 INF] - Volo.Abp.Application.AbpDddApplicationContractsModule
[20:05:20 INF] - Volo.Abp.Authorization.AbpAuthorizationModule
[20:05:20 INF] - Volo.Abp.Validation.AbpValidationModule
[20:05:20 INF] - DeviceManagement.Migration.DeviceManagementApplicationContractsModule
[20:05:20 INF] - Volo.Abp.Application.AbpDddApplicationContractsModule
[20:05:20 INF] - Volo.Abp.Authorization.AbpAuthorizationModule
[20:05:20 INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
[20:05:20 INF] - Volo.Abp.Application.AbpDddApplicationModule
[20:05:20 INF] - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule
[20:05:20 INF] - Volo.Abp.Http.AbpHttpAbstractionsModule
[20:05:20 INF] - Volo.Abp.Application.AbpDddApplicationModule
[20:05:20 INF] - Volo.Abp.Features.AbpFeaturesModule
[20:05:20 INF] - Volo.Abp.Http.AbpHttpAbstractionsModule
[20:05:20 INF] - Volo.Abp.Features.AbpFeaturesModule
[20:05:20 INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
[20:05:20 INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule
[20:05:20 INF] - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule
[20:05:20 INF] - Volo.Abp.AutoMapper.AbpAutoMapperModule
[20:05:20 INF] - DeviceManagement.EntityFrameworkCore.DeviceManagementEntityFrameworkCoreModule
[20:05:20 INF] - DeviceManagement.EntityFrameworkCore.DeviceManagementEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityProEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityProEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.Identity.AbpIdentityProDomainModule
[20:05:20 INF] - Volo.Abp.Identity.AbpIdentityDomainModule
[20:05:20 INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule
[20:05:20 INF] - Volo.Abp.Identity.AbpIdentityProDomainModule
[20:05:20 INF] - Volo.Abp.Users.AbpUsersDomainSharedModule
[20:05:20 INF] - Volo.Abp.Identity.AbpIdentityDomainModule
[20:05:20 INF] - Volo.Abp.Identity.AbpIdentityDomainSharedModule
[20:05:20 INF] - Volo.Abp.Users.AbpUsersDomainModule
[20:05:20 INF] - Volo.Abp.Users.AbpUsersDomainSharedModule
[20:05:20 INF] - Volo.Abp.Users.AbpUsersAbstractionModule
[20:05:20 INF] - Volo.Abp.Users.AbpUsersDomainModule
[20:05:20 INF] - Volo.Abp.Users.AbpUsersAbstractionModule
[20:05:20 INF] - Volo.Abp.Identity.AbpIdentityProDomainSharedModule
[20:05:20 INF] - Volo.Abp.Identity.AbpIdentityProDomainSharedModule
[20:05:20 INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.Identity.EntityFrameworkCore.AbpIdentityEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.Users.EntityFrameworkCore.AbpUsersEntityFrameworkCoreModule
[20:05:20 INF] - DeviceManagement.DeviceManagementHttpApiModule
[20:05:20 INF] - DeviceManagement.DeviceManagementHttpApiModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule
[20:05:20 INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule
[20:05:20 INF] - Volo.Abp.Http.AbpHttpModule
[20:05:20 INF] - Volo.Abp.Minify.AbpMinifyModule
[20:05:20 INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
[20:05:20 INF] - Volo.Abp.AspNetCore.AbpAspNetCoreModule
[20:05:20 INF] - Volo.Abp.Http.AbpHttpModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
[20:05:20 INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule
[20:05:20 INF] - Volo.Abp.UI.AbpUiModule
[20:05:20 INF] - Volo.Abp.Minify.AbpMinifyModule
[20:05:20 INF] - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule
[20:05:20 INF] - Volo.Abp.UI.Navigation.AbpUiNavigationModule
[20:05:20 INF] - Volo.Abp.UI.AbpUiModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy.AbpAspNetCoreMvcUiMultiTenancyModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.AbpAspNetCoreMvcUiThemeSharedModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.AbpAspNetCoreMvcUiBootstrapModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule
[20:05:20 INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.AbpAspNetCoreMvcUiModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Packages.AbpAspNetCoreMvcUiPackagesModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingAbstractionsModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Widgets.AbpAspNetCoreMvcUiWidgetsModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Bundling.AbpAspNetCoreMvcUiBundlingModule
[20:05:20 INF] - Volo.Abp.AspNetCore.MultiTenancy.AbpAspNetCoreMultiTenancyModule
[20:05:20 INF] - Volo.Abp.Autofac.AbpAutofacModule
[20:05:20 INF] - Volo.Abp.Castle.AbpCastleCoreModule
[20:05:20 INF] - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
[20:05:20 INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.Autofac.AbpAutofacModule
[20:05:20 INF] - Volo.Abp.Castle.AbpCastleCoreModule
[20:05:20 INF] - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule
[20:05:20 INF] - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
[20:05:20 INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
[20:05:20 INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
[20:05:20 INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
[20:05:20 INF] - Volo.Abp.Caching.AbpCachingModule
[20:05:20 INF] - Volo.Abp.Serialization.AbpSerializationModule
[20:05:20 INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule
[20:05:20 INF] - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule
[20:05:20 INF] - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule
[20:05:20 INF] - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule
[20:05:20 INF] - Volo.Abp.Caching.AbpCachingModule
[20:05:20 INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
[20:05:20 INF] - Volo.Abp.Serialization.AbpSerializationModule
[20:05:20 INF] - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule
[20:05:20 INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule
[20:05:20 INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton.AbpAspNetCoreMvcUiLeptonThemeModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Commercial.AbpAspNetCoreMvcUiThemeCommercialModule
[20:05:20 INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementDomainSharedModule
[20:05:20 INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementApplicationModule
[20:05:20 INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementDomainModule
[20:05:20 INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementApplicationContractsModule
[20:05:20 INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
[20:05:20 INF] - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton.AbpAspNetCoreMvcUiLeptonThemeModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Mvc.UI.Theme.Commercial.AbpAspNetCoreMvcUiThemeCommercialModule
[20:05:20 INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementDomainSharedModule
[20:05:20 INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementApplicationModule
[20:05:20 INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementDomainModule
[20:05:20 INF] - Volo.Abp.LeptonTheme.Management.LeptonThemeManagementApplicationContractsModule
[20:05:20 INF] - Volo.Abp.Swashbuckle.AbpSwashbuckleModule
[20:05:20 INF] - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule
[20:07:40 INF] Initialized all ABP modules.
[20:07:40 INF] Initialized all ABP modules.
[20:07:40 INF] Now listening on: https://[::]:44391
[20:07:40 INF] Now listening on: http://[::]:80
[20:07:40 INF] Now listening on: https://[::]:44391
[20:07:40 INF] Now listening on: http://[::]:80
[20:07:40 INF] Application started. Press Ctrl+C to shut down.
[20:07:40 INF] Application started. Press Ctrl+C to shut down.
[20:07:40 INF] Hosting environment: Development
[20:07:40 INF] Hosting environment: Development
[20:07:40 INF] Content root path: /app
[20:07:40 INF] Content root path: /app
[20:07:40 ERR] ABP-LIC-0013 - License exception: ABP-LIC-0023: An error occured while calling the license server! Unterminated string. Expected delimiter: ". Path 'ControlCode', line 1, position 11504.
- Steps to reproduce the issue:
- The app throws the license exception after the application starts. Our solution contains multiple other projects for which this is not an issue. The solution is run using docker-compose. When I run the app without a value given for
AbpLicenseCode
in theappsettings.json
file, I get this exception, which is to be expected:
[20:18:42 ERR] ABP-LIC-0020 - License code not found! Ensure that your appsettings.json has "AbpLicenseCode" key with your license code.
[20:18:42 ERR] ABP-LIC-0008 - License check failed for 'Volo.Abp.Identity.Pro.Domain-v4.4.3.0'.
The container appears to be using a valid access token (I verified this by removing the access-token.bin
copy line in the dockerfile and received the expected error saying I need to login).
9 Answer(s)
-
0
- The error
ABP-LIC-0013 - License exception: ABP-LIC-0023: An error occured while calling the license server! Unterminated string. Expected delimiter: ". Path 'ControlCode'
indicates that the license server response is malformed, likely due to an invalid or corruptedAbpLicenseCode
value in your configuration.
To resolve this issue:
Check the
AbpLicenseCode
Value- Ensure the
AbpLicenseCode
in yourappsettings.json
(or environment variable) is a valid, unmodified license string. It should be a single line, without extra spaces, line breaks, or missing/extra characters. - If you copied the license from an email or portal, make sure no characters were lost or added.
- Ensure the
Re-obtain the License Code
- Retrieve a fresh copy of your license code from the official ABP Commercial portal or your license email, and replace the existing value in your configuration.
Check for Hidden Characters
- Sometimes, copying from certain sources can introduce hidden or non-printable characters. Paste the license code into a plain text editor (like Notepad) before copying it into your configuration file.
Restart the Application
- After updating the license code, restart your application to ensure the new value is loaded.
Check for Multiple License Codes
- Make sure there is only one
AbpLicenseCode
entry in your configuration files and environment variables to avoid conflicts.
- Make sure there is only one
Network Issues
- If you are behind a proxy or firewall, ensure your application can reach the ABP license server.
If the problem persists after these steps, contact ABP Commercial support with your license code and error details.
Sources:
- https://abp.io/support/questions/6663
- https://abp.io/support/questions/9263
- https://abp.io/QA/Questions/245/ABP-LIC-0008---License-check-failed-for-'XXXXX'
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
- The error
-
0
Hi,
I tried every step mentioned above except for 2. I am not sure how to re-obtain the license code. Are you able to assist me in doing so?
-
0
hi
Can you check https://abp.io/support/questions/817/How-to-delete-current-license-login-session#answer-4cbc8f13-c7f3-84fa-7fc8-39fa2688df13
https://abp.io/support/questions/9640/ABP-LIC-ERROR---License-check-failed-for-%27VoloAbpAspNetCoreMvcUIThemeCommercial-v9210%27#answer-3a1b3ec8-a0d4-ebf7-e38a-1ae23251cc5d
Thanks
-
0
Hi,
So I tried running the docker container using a value other than
Development
forASPNETCORE_ENVIRONMENT
but that did not change anything. All of the containers are copyingaccess-token.bin
to their respective docker containers, but only the one above is throwing this error after the app starts. Just for fun I removed the copy line in theDockerfile
for the problem container and I got the following (regardless of what the value forASPNETCORE_ENVIRONMENT
was):ABP-LIC-0008 - License check failed for 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton-v4.4.3.0'. You need to log in using the command `abp login <username>`. For more information, contact to license@abp.io. [15:05:44 ERR] ABP-LIC-0008 - License check failed for 'Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton-v4.4.3.0'. You need to log in using the command `abp login <username>`. For more information, contact to license@abp.io.
I also logged in on my host machine again. I don't have a
AbpLicense.bin
file though. When I try install abp suite, I get the following:dotnet tool install -g Volo.Abp.Suite --add-source https://nuget.abp.io/myApiToken/v3/index.json Unhandled exception: Response status code does not indicate success: 401 (Unauthorized).
It should be noted that I replaced
myApiToken
with my actual Api token. -
0
Update: When I don't run visual studio in debug mode, I don't see the license error. We, however, need to run in debug mode, which is why I copied the
access-token.bin
to the docker containers in the first place. -
0
hi
Did you run the
abp login
to log in to your account?Thanks.
-
0
If you are required to run the project in a Development environment or build your project in Debug mode, copy your local ABP token file to the following directory in your Docker container.
for Windows:
%UserProfile%\.abp\cli\access-token.bin
for Linux:
/home/user/.abp/cli/
-
0
Thank you for the support. I was able to fix the error by updating the project to use version 6.03.
-
0
Thanks hiltond 👍
If you encounter other problems, please feel free to provide feedback.