KNOWLEDGE BASE

Error "An error occurred on the server while trying to export site '<site name>'" Occurs When Running tsm sites export


Published: 01 Apr 2021
Last Modified Date: 02 Apr 2021

Issue

The following error occurs when running tsm sites export command.

An error occurred on the server while trying to export site '<site name>'.
This job failed due to unexpected error: 'SiteImportExportException'
The configured export location does not exist: <the locations for export file>

User-added image


Error "Access is denied" can be found in tabadmincontroller.log, 

Example:

// tabadmincontroller_node1-0.log
2021-03-10 12:54:25.912 +0900  pool-20-thread-1 : ERROR com.tableausoftware.tabadmin.webapp.asyncjobs.JobStepRunner - Running step PerformSiteExport failed
com.tableausoftware.siteimportexport.endpoint.SiteImportExportException: C:\ProgramData\Tableau\Tableau Server\data\tabsvc\files\siteexports\export-file.zip (Access is denied.)

Environment

  • Tableau Server
  • Windows Server

Resolution

Follow the steps below to verify that the Run As Service Account of Tableau Server has the necessary folder permissions.

1. Get the location of the current export file and check if it actually exists. For more information see Get the current file location.
tsm configuration get -k basefilepath.site_export.exports

2. Confirm the Run As Service Account. For more information see Change the Run As Service Account.
tsm configuration get -k service.runas.username

3. Verify that the Run As Service Account has granted permissions to the location of the current export file as follows, then try tsm sites export again.
The below example is by default,
  • Run As Service Account: NT AUTHORITY\NetworkService 
  • The export location: C:\ProgramData\Tableau\Tableau Server\data\tabsvc\files\siteexports 
User-added image
 
     

    Cause

    In some complex deployment scenarios, you may need to verify or manually configuration the Run As service account permissions on the local Tableau Server computer.
    Did this article resolve the issue?