KNOWLEDGE BASE

Tableau Server upgrade failing due to Exception: OpenPolicy returned 5


Published: 13 Jan 2020
Last Modified Date: 14 Jan 2020

Issue

When trying to run the upgrade script as part of the server upgrade process, the upgrade script immediately stops and the app-upgrade.log file shows the following error message:

2020-01-10 15:27:52.924 +0100 main : INFO  com.tableausoftware.tabadmin.security.windows.filesystem.WindowsFilePermissions - Granting full permissions for S-1-5-20 on D:\Program Files\Tableau\Tableau Server\data
2020-01-10 15:27:53.538 +0100 main : DEBUG com.tableausoftware.tabadmin.security.windows.filesystem.WindowsFilePermissions - Failed to grant full control to S-1-5-20 for D:\Program Files\Tableau\Tableau Server\data
2020-01-10 15:27:53.541 +0100 main : ERROR com.tableausoftware.installer.UpgraderMain - Generic exception raised during installation.
com.tableausoftware.tabadmin.security.PermissionsException: com.tableausoftware.tabutil.dll.Exception: OpenPolicy returned 5

    at com.tableausoftware.tabadmin.security.PermissionsException$Builder.<init>(PermissionsException.java:113)
    at com.tableausoftware.tabadmin.security.PermissionsException$Builder.<init>(PermissionsException.java:99)
    at com.tableausoftware.tabadmin.security.PermissionsException.builder(PermissionsException.java:93)
    at com.tableausoftware.tabadmin.security.windows.filesystem.WindowsFilePermissions.grantSidsFullPermissions(WindowsFilePermissions.java:398)
    at com.tableausoftware.tabadmin.security.windows.filesystem.WindowsFilePermissions.lambda$grantNetworkServiceFullPermissions$2(WindowsFilePermissions.java:174)
    at com.tableausoftware.tabadmin.security.FileLockedClosure.apply(FileLockedClosure.java:54)
    at com.tableausoftware.tabadmin.security.windows.filesystem.WindowsFilePermissions.grantNetworkServiceFullPermissions(WindowsFilePermissions.java:173)
    at com.tableausoftware.installer.operations.EnsureFilePermissionsOperation.perform(EnsureFilePermissionsOperation.java:43)
    at com.tableausoftware.installer.AbstractOperationRunner.run(AbstractOperationRunner.java:182)
    at com.tableausoftware.installer.AbstractOperationRunner.runInstance(AbstractOperationRunner.java:116)
    at com.tableausoftware.installer.AbstractOperationRunner.execute(AbstractOperationRunner.java:103)
    at com.tableausoftware.installer.AbstractOperationRunner.execute(AbstractOperationRunner.java:57)
    at com.tableausoftware.installer.UpgraderMain.execute(UpgraderMain.java:280)
    at com.tableausoftware.installer.UpgraderMain.main(UpgraderMain.java:287)
Caused by: com.tableausoftware.tabutil.dll.Exception: OpenPolicy returned 5

    at com.tableausoftware.tabutil.dll.Exception.getException(Exception.java:39)
    at com.tableausoftware.tabutil.dll.TabutilJNI.TabSec_GrantSidFullControl__SWIG_0(Native Method)
    at com.tableausoftware.tabutil.dll.TabSec.GrantSidFullControl(TabSec.java:47)
    at com.tableausoftware.tabadmin.security.windows.filesystem.WindowsFilePermissions.grantSidsFullPermissions(WindowsFilePermissions.java:395)
    ... 10 more


 

Environment

  • Tableau Server 2019.3.0, trying to upgrade to 2019.4.0
  • Windows Server 2016

Resolution

To resolve the issue, start the upgrade script from a Command prompt with Administrator privileges (right click -> Run as Administrator).

Cause

The upgrade script was not run with administrative privileges.
Did this article resolve the issue?