Open Closed

ABP License check when running docker compose from Visual Studio #9263


User avatar
0
tferrero created

I am trying out the ABP Microservices template and I am currently attempting to set up a docker compose to run the ABP microservices in a development environment in my computer. I set up Visual Studio Orcherstration Support to be able to debug the containers and i have the following docker compose with just one container (Audit Logging Service) for now.

  upm.bioforestpoc.auditloggingservice:
    image: ${DOCKER_REGISTRY-}upmbioforestpocauditloggingservice
    build:
      context: .
      dockerfile: Upm.BioforestPoC.AuditLoggingService/Dockerfile
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
    ports:
      - "44361:44361" 

Docker file is very simple for now

FROM mcr.microsoft.com/dotnet/aspnet:9.0
WORKDIR /app
ENTRYPOINT ["dotnet", "Upm.BioforestPoC.AuditLoggingService.dll"]

When i run the docker compose using Visual Studio, my container is crashing because of a failed licensing check

[20:53:08 ERR] ABP-LIC-ERROR - License check failed for 'Volo.Saas.Domain-v9.1.0.0'. You need to log in using the command abp login <username>. For more information, contact to license@abp.io.

I am logged on the ABP CLI in my host computer, but i am not sure how to "transfer" the license to the container i am debugging. I have tried using other ASPNETCORE_ENVIRONMENT values instead of Development such as Production or Local because it is what we do with our other ABP applications running in production in containers, but the error persists.

I would like to be able to debug the services running in containers, any help would be appreciated!


3 Answer(s)
  • User Avatar
    1
    alper created
    Support Team Director

    check these solutions: https://abp.io/support/questions/6663/Licensing-problem#answer-3a10afcf-030f-043e-40d2-0a4f708062c8

  • User Avatar
    0
    tferrero created

    Thanks alper,

    Copying the access token from the host filesystem to the container was the solution in this case, i had to copy the file to the project directory and make the following addition in the dockerfile:

    FROM mcr.microsoft.com/dotnet/aspnet:9.0 WORKDIR /app RUN mkdir -p /root/.abp/cli COPY access-token.bin /root/.abp/cli/access-token.bin ENTRYPOINT ["dotnet", "Upm.BioforestPoC.AuditLoggingService.dll"]

  • User Avatar
    0
    alper created
    Support Team Director

    thank you for the feedback

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on May 14, 2025, 07:53