Open Closed

ABP License issue on CI builds #8485


User avatar
0
naeem76 created
  • ABP Framework version: v9.0.0
  • UI Type: MVC
  • Database System: EF Core PostgreSQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): no - single layer application in this case
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Getting license errors in GitLab CI, wasn't happening before on older .NET - ABP CLI 9.0.2

[11:29:25 ERR] ABP-LIC-ERROR - License check failed for 'Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX-v4.0.0.0'.
You need to log in using the command `abp login <username>`.
For more information, contact to license@abp.io.

the command

dotnet restore $PROJECT_NAME.csproj --runtime linux-x64
dotnet build $PROJECT_NAME.csproj --configuration Release --no-restore
dotnet run --migrate-database --configuration Release --no-build --no-restore

ASPNETCORE_ENVIRONMENT is set to Production


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    the command

    could you try this

    dotnet run ... --environment Production

  • User Avatar
    0
    naeem76 created

    Solved by using --no-launch-profile For some reason even though the environment was set it was still using the launch profiles

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09