Open Closed

Azure DevOps CI and CD Operations After License Problem for Development Environment #3697


User avatar
0
avengers created
  • ABP Framework version: v5.3.4 (Stable)
  • UI type: MVC
  • 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.TextTemplateManagement.Domain-v5.2.1.0'. You need to log in using the command abp login <username>. For more information, contact to license@abp.io.

  • Steps to reproduce the issue: 1- Use .NET Core SDK 6.0.x 2- dotnet tool update -g Volo.Abp.Cli 3- abp login avengers@talentra.net -p ourPassword 4- NuGet Restore 5- Build 6- Publish 7- Deployment 8- Go to web site and 503 error. OUR Environment: Development I see the above exception message in the logs. We use Azure DevOps, CI (Build Pipelines) and CD (Release Pipelines). Thanks

7 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Since you are in development mode, it is normal to check the license, but if you run the production environment, you should not encounter this problem. Of course, I assume that in your case, you want to run in development mode, so the abp login command will be required as you mentioned.

    I think there is a problem with the abp login step. So, I will ask you to run the following command after step 3 and step 7 and share the output with us.

    abp login-info

  • User Avatar
    0
    avengers created

    Yes. We want to work in development mode.

    Build Pipeline After 3rd stage (abp login-info); [15:05:32 INF] Login info: Name: Surname: Username: avengers Email Address: avengers@talentra.net Organization: Talentra Recruitment Agency

    Release Pipeline After 7rd stage (abp login-info); 2022-09-14T15:08:44.7205439Z ##[command]"C:\Windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "C:\azagent\A1_work_temp\f90e3dea-9c5f-470b-82dd-fdc734cf065d.cmd"" 2022-09-14T15:08:44.7745889Z 'abp' is not recognized as an internal or external command, 2022-09-14T15:08:44.7747381Z operable program or batch file. 2022-09-14T15:08:44.9509242Z ##[error]Cmd.exe exited with code '1'.

    I also ran cmd in the server we deployed (without pipelines). Output; C:>abp login-info [18:06:23 INF] ABP CLI (https://abp.io) [18:06:24 INF] Version 5.3.4 (Stable) [18:06:26 INF] Login info: Name: Surname: Username: avengers Email Address: avengers@talentra.net Organization: Talentra Recruitment Agency

    It is natural that it is not working in the "Release Pipeline". Because there is an agent in between. But when I enter the command directly on the server we deploy, it works.

    Thank you for your support

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    You're welcome. As far as I understand, the problem is solved. So I am closing the issue. Feel free to re-open or create a new issue if you have further questions.

  • User Avatar
    0
    avengers created

    No, it is not resolved. I just said the abp login-info command works. I'm still getting the same error. Please read the message in detail.

  • User Avatar
    0
    avengers created

    After deploying, I run the commands on the server. It shows that I am logged in, but it gives an abp license error.

    C:>abp login-info [18:06:23 INF] ABP CLI (https://abp.io) [18:06:24 INF] Version 5.3.4 (Stable) [18:06:26 INF] Login info: Name: Surname: Username: avengers Email Address: avengers@talentra.net Organization: Talentra Recruitment Agency

  • User Avatar
    0
    avengers created

    OK, problem solved. Resolution;

    1- Open CMD with IIS User. (IIS user must be have a home folder. Example: C:\Users\username) 2- Run abp login command.

    Problem Detail: IIS cannot open the abp file (below) because we ran abp login it as administrator the first time. %UserProfile%/.abp/cli/access-token.bin

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Thank you for the information. Have a nice day.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11