Open Closed

ABP-LIC-ERROR - License check failed for 'Volo.Abp.Account.Pro.Public.Web-v5.3.0.0' #3302


0
shijo created
  • ABP Framework version: v5.3.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:" I am trying to run the application in debug mode with Linux Docker Container, getting this License check error. I tried with the solution given in https://support.abp.io/QA/Questions/69/ but no luck. Below is my docker file

`#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base WORKDIR /app

ENV ASPNETCORE_ENVIRONMENT Production

EXPOSE 80 EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build WORKDIR /src COPY ["NuGet.Config", "."] COPY ["AkadimiWF/AkadimiWF.csproj", "AkadimiWF/"]

RUN dotnet tool install --global Volo.Abp.Cli ENV PATH /root/.dotnet/tools:$PATH RUN echo $PATH RUN abp login ******** -p ********

RUN dotnet restore "AkadimiWF/AkadimiWF.csproj" COPY . . WORKDIR "/src/AkadimiWF" RUN dotnet build "AkadimiWF.csproj" -c Release -o /app/build

FROM build AS publish RUN dotnet publish "AkadimiWF.csproj" -c Release -o /app/publish

FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "AkadimiWF.dll"]`


3 Answer(s)
  • 0
    berkansasmaz created
    Support Team

    In the Production environment of ABP templates, the default log level is Information, so the logs at the Debug level are not visible, but there is a log at the Debug level in the log you sent. As a result, it seems to me that somehow your application is running in Development mode. But just to be sure, can you tell me your log level in Production mode?

    Also, after you logout with abp cli in your local, do you have a chance to publish and run the application with Production mode? Thus, we understand that the problem is not related to base images or not.

  • 0
    shijo created

    I am running this in Development Mode. I am debugging the application with Docker container in Development mode

    Application breaking in await app.InitializeApplicationAsync(); line

  • 0
    albert created
    Support Team

    First, no need to run RUN abp login ******** -p ********

    Copy your local ABP token file which is at %UserProfile%\.abp\cli\access-token.bin into your Docker container's target directory:

    • Windows => %UserProfile%\.abp\cli\
    • Linux => /home/user/.abp/cli/