KNOWLEDGE BASE

Error "com.tableausoftware.commandline.commons.ReportableException: Failed to activate key" or "(lmgrd) Invalid License File"


Published: 16 Mar 2018
Last Modified Date: 26 Mar 2018

Issue

When activating a key with 'tsm licenses activate', the following error message is returned: "com.tableausoftware.commandline.commons.ReportableException: Failed to activate key: <key>".

OR

If lmgrd is manually started using: 

/var/opt/tableau/tableau_server/data/tabsvc/services/licenseservice_0.10500.18.0109.1050/bin/lmgrd -c /var/opt/tableau/tableau_server/data/tabsvc/services/licenseservice_0.10500.18.0109.1050/bin/tableau.lic -l /var/opt/tableau/tableau_server/data/tabsvc/logs/licenseservice/tablicsrv.log -z -s

it returns:

23:11:36 (lmgrd) Invalid License File

Environment

  • Tableau Server 10.5.0
  • Linux

Resolution

As a workaround, remove the executable permissions from tableau.lic using chmod:

sudo chmod a-x /var/opt/tableau/tableau_server/data/tabsvc/services/licenseservice_0.<version>/bin/tableau.lic

where <version> is the version string appended to the licenseservice_0 directory.

Cause

This behavior is related to a known issue with ID 694779 which is currently under investigation. 
 

Additional Information

tsm status -v will show:

        'Tableau Server License Manager 0' is in an error state.

tsm stop or tsm restart will output:

Service failed to stop properly. Run tsm status -v for detailed status.

chmod at Wikipedia
Did this article resolve the issue?