Ends in:
2 DAYS
5 HRS
8 MIN
29 SEC
Ends in:
2 D
5 H
8 M
29 S
Open Closed

How to delete current license login session? #817


User avatar
0
alper created
Support Team Director

If you face with one of the following problems:

  • I have upgraded to a higher license and it still shows my previous license information.
  • License check failed for 'XYZ'. You need to log in using the command abp login <username>.

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

    1-run the below command in CMD (clears your current login session):

    del %UserProfile%\.abp\cli\access-token.bin && del %UserProfile%\.\AppData\Local\Temp\AbpLicense.bin
    

    2-login again:

    abp login <username> -p <password>
    

    3-run Suite to try again:

    abp suite
    

    Running your project in Docker container: ABP makes online license check only in Development environment or when the Debugger is Attached in Visual Studio. When it's in Development environment or Debugger is attached, it's required to login your account via ABP CLI ( abp login {username} )

    When you run your app in a Docker container, publish it in Release mode. Set your environment as Production to skip online license check (or anything else other than Development) using the following command:

    -e "ASPNETCORE_ENVIRONMENT=Production" 
    

    If you are required to run the project in Development environment in the container, copy your local ABP token file %UserProfile%\.abp\cli\access-token.bin into the Docker container's relavant directory.

    By relavant directory, it's meant to be the current user's home directory.

    • For Windows it's => %UserProfile%\.abp\cli\
    • For Linux it must be $HOME => /home/user/.abp/cli/

    If you get the following error, you probably logged in 2 different computers and trying to login in the 3rd unique computer. In this case, send an email to license@abp.io to reset your linked computers.

    License Error! Given user 'XYZ' has reached the maximum allowed developer computer count (2)

Made with ❤️ on ABP v9.1.0-preview. Updated on December 02, 2024, 12:35