- ABP Framework version: v6.0.3
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes / no
- Exception message and stack trace:ABP-LIC-ERROR - License check failed for 'Volo.Abp.Account.Pro.Admin.HttpApi-v6.0.3.0'.
- Steps to reproduce the issue:"
- Created a new solution with seperate auth server
- Added 2 extra Modules
- Added docker file to start debugging in docker
- Added compose file
- Got error on License Check
- Mapped access-token.bin to /root/.abp/cli
- Mapped access-token.bin to /home/user/.abp/cli/
- Verfied the file available in linux image
- The error presisted
- I have also tried to run "abp login" in linux terminal in docker but got sdk not installed in linux
- Note certs folder contains "access-token.bin" file
- Your help is highly appreciated
The error in docker log:
2023-02-26 16:09:06 [14:09:06 ERR] ABP-LIC-ERROR - License check failed for 'Volo.Abp.Account.Pro.Admin.HttpApi-v6.0.3.0'.
2023-02-26 16:09:06 You need to log in using the command abp login <username>
.
2023-02-26 16:09:06 For more information, contact to license@abp.io.
launchSettings.json
{ "profiles": { "IIS Express": { "commandName": "IISExpress", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } }, "Tawwon.HttpApi.Host": { "commandName": "Project", "launchBrowser": true, "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" }, "applicationUrl": "https://localhost:44388" }, "Docker": { "commandName": "Docker", "launchBrowser": true, "launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Prooduction" }, "publishAllPorts": true, "useSSL": true, "DockerfileRunArguments": "-e "ASPNETCORE_ENVIRONMENT=Production" -v C:\Tawwon\aspnet-core\certs:/root/.abp/cli" } }, "iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "https://localhost:44388", "sslPort": 44388 } } }
Host 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 EXPOSE 80 EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build WORKDIR /src
ENV PATH="${PATH}:/root/.dotnet/tools" ENV ASPNETCORE_ENVIRONMENT="Production"
COPY ["NuGet.Config", "."] COPY ["modules/Tender/NuGet.Config", "modules/Tender/"] COPY ["modules/Product/NuGet.Config", "modules/Product/"] COPY ["src/Tawwon.HttpApi.Host/Tawwon.HttpApi.Host.csproj", "src/Tawwon.HttpApi.Host/"] COPY ["src/Tawwon.Application/Tawwon.Application.csproj", "src/Tawwon.Application/"] COPY ["src/Tawwon.Domain/Tawwon.Domain.csproj", "src/Tawwon.Domain/"] COPY ["src/Tawwon.Domain.Shared/Tawwon.Domain.Shared.csproj", "src/Tawwon.Domain.Shared/"] COPY ["modules/Tender/src/Tender.Domain.Shared/Tender.Domain.Shared.csproj", "modules/Tender/src/Tender.Domain.Shared/"] COPY ["modules/Product/src/Product.Domain.Shared/Product.Domain.Shared.csproj", "modules/Product/src/Product.Domain.Shared/"] COPY ["modules/Tender/src/Tender.Domain/Tender.Domain.csproj", "modules/Tender/src/Tender.Domain/"] COPY ["modules/Product/src/Product.Domain/Product.Domain.csproj", "modules/Product/src/Product.Domain/"] COPY ["src/Tawwon.Application.Contracts/Tawwon.Application.Contracts.csproj", "src/Tawwon.Application.Contracts/"] COPY ["modules/Tender/src/Tender.Application.Contracts/Tender.Application.Contracts.csproj", "modules/Tender/src/Tender.Application.Contracts/"] COPY ["modules/Product/src/Product.Application.Contracts/Product.Application.Contracts.csproj", "modules/Product/src/Product.Application.Contracts/"] COPY ["modules/Tender/src/Tender.Application/Tender.Application.csproj", "modules/Tender/src/Tender.Application/"] COPY ["modules/Product/src/Product.Application/Product.Application.csproj", "modules/Product/src/Product.Application/"] COPY ["src/Tawwon.EntityFrameworkCore/Tawwon.EntityFrameworkCore.csproj", "src/Tawwon.EntityFrameworkCore/"] COPY ["modules/Tender/src/Tender.EntityFrameworkCore/Tender.EntityFrameworkCore.csproj", "modules/Tender/src/Tender.EntityFrameworkCore/"] COPY ["modules/Product/src/Product.EntityFrameworkCore/Product.EntityFrameworkCore.csproj", "modules/Product/src/Product.EntityFrameworkCore/"] COPY ["src/Tawwon.HttpApi/Tawwon.HttpApi.csproj", "src/Tawwon.HttpApi/"] COPY ["modules/Tender/src/Tender.HttpApi/Tender.HttpApi.csproj", "modules/Tender/src/Tender.HttpApi/"] COPY ["modules/Product/src/Product.HttpApi/Product.HttpApi.csproj", "modules/Product/src/Product.HttpApi/"]
RUN dotnet restore "src/Tawwon.HttpApi.Host/Tawwon.HttpApi.Host.csproj" COPY . . WORKDIR "/src/src/Tawwon.HttpApi.Host" RUN dotnet build "Tawwon.HttpApi.Host.csproj" -c Release -o /app/build
FROM build AS publish RUN dotnet publish "Tawwon.HttpApi.Host.csproj" -c Release -o /app/publish /p:UseAppHost=false
FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "Tawwon.HttpApi.Host.dll"]
docker-compose file: version: '3.4'
services:
redis:
container_name: redis
image: redis:alpine
ports:
- "6379:6379"
networks:
- abp-network
healthcheck:
test: ["CMD", "redis-cli","ping"]
tawwon.httpapi.host: image: ${DOCKER_REGISTRY-}tawwonhttpapihost container_name: tawwon-api-host-debug build: context: . dockerfile: src/Tawwon.HttpApi.Host/Dockerfile environment: - ASPNETCORE_URLS=https://+:443;http://+:80; - Kestrel__Certificates__Default__Path=/root/certificate/localhost.pfx - Kestrel__Certificates__Default__Password=????????????? - App__SelfUrl=https://localhost:44354 - App__AngularUrl=http://localhost:4200 - AuthServer__RequireHttpsMetadata=false - AuthServer__Authority=http://tawwon-identity-server - App__MVCPublicUrl=https://localhost:44306 - ConnectionStrings__Default=???removed - Redis__Configuration=redis ports: - "44354:443" volumes: - ./certs:/root/certificate - ./certs:/home/user/.abp/cli/ - ./certs:/root networks: - abp-network
networks: abp-network: name: tawwon-network driver: bridge
3 Answer(s)
-
0
Hi,
You can check this: https://support.abp.io/QA/Questions/817/How-to-delete-current-license-login-session#answer-4cbc8f13-c7f3-84fa-7fc8-39fa2688df13
-
0
Thanks for your replay, I tried deleting the token file and login again as in the link with same error, Also the token file is present in $home on linux image, the site is running fine on windows with out docker, the license issue is only happening on docker linux image.
I need to debug the application so I don't want to set to Production
If you need any file not included let me
-
0
Also the token file is present in $home on linux image,
hi
The access token must be:
/Users/your-user-name/.abp/cli/access-token.bin