This guide covers all known causes and solutions for the "Your demo of Carbon Black App Control has expired" error (which often prevents login or causes a login loop) in Carbon Black App Control (formerly Cb Protection).
Your Demo of Carbon Black App Control has expired. Contact Global Customer Assistance to purchase a copy.
This is the most common cause, particularly if you recently upgraded your server to version 8.11.x or higher and the license was already expired prior to the upgrade.
.lic file in a text editor and copy its contents.USE das;
EXECUTE dbo.UpdateLicense 'PASTE_YOUR_LICENSE_VALUE_HERE', '0'Important: If your current license is unavailable for download, call GCA and/or open a non-technical case with Broadcom for License Related Issues.
|
The App Control server validates the license by making an internal API call to the Web Server Address stored in the database. If this fails to resolve properly for both IPv4 and IPv6, the license check fails.
USE das;
SELECT value FROM shepherd_configs (NOLOCK) WHERE name = 'WebServerAddress'USE das;
EXEC dbo.updateshepherdconfig @name = 'WebServerAddress', @value = 'YourAppCServer.example.com';127.0.0.1 YourAppCServer.example.com
::1 YourAppCServer.example.comIf the license is valid but the API call fails, it may be due to a misconfiguration in IIS.
API Error from page /login.php: GET appc.example.com/api/bit9platform/restricted/licenseUsage/ with params []
.....
returned http code 401 and result in 0.0067501068115234 seconds
API Error from page /login.php: GET appc.example.com/api/bit9platform/restricted/licenseUsage/ with params []
.....
http code 0 and result in 0.37768602371216 seconds
Last Curl error: Empty reply from server
API Error from page /login.php: GET appc.example.com/api/bit9platform/restricted/licenseUsage/ with params []
.....
http code 500 and result in 0.13003587722778 seconds
If your license is valid but you still get the error (and your php_errors.log shows a 401 error for licenseUsage), the service user account may lack permissions to the MachineKeys folder. This often happens after changing the service user account.
icacls "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" /grant "Everyone":(NP)(RX,W,RC)takeown /F "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\YOUR_KEY_FILE_NAME"icacls "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\YOUR_KEY_FILE_NAME" /grant "DOMAIN\service_account":(R)