KNOWLEDGE BASE

Errors with TSM site export has failed with "Failed to retrieve X from repository into file"


Published: 30 Apr 2023
Last Modified Date: 04 Jan 2024

Issue

While exporting the site it was failing with below error:

> tsm sites export --site-id Default --file default_site.zip

Starting site export for site 'Default'.
Job id is '64', timeout is 720 minutes.
20% - Ensuring that server is started and installing service for site import/export.
40% - Locking site.
60% - Site export has failed.
80% - Unlocking site.
100% - Stopping the site import/export service.

An error occurred on the server while trying to export site 'Default'.
This job failed due to unexpected error: 'SiteImportExportException' caught exception 'Failed to retrieve 2401 from repository into file C:\ProgramData\Tableau\Tableau Server\data\tabsvc\temp\siteimportexport_0.20214.22.0420.0834\export_0_20230202003621264\repoItem' while retrieving 2401 from the repo

See 'C:\ProgramData\Tableau\Tableau Server\data\tabsvc\logs\tabadmincontroller\tabadmincontroller_*.log' on Tableau Server nodes running the Administration Controller process for server log information.
------------------

In the logs, we found below error
2022-12-19 03:56:33.966 -0600  pool-21-thread-1 : ERROR com.tableausoftware.tabadmin.webapp.asyncjobs.SiteExportJob - Failure while trying to export site 
java.lang.RuntimeException: SiteImportExportException(message:caught exception 'Failed to retrieve 1964 from repository into file F:\Tableau\Tableau Server\data\tabsvc\temp\siteimportexport_0.20214.22.0108.1039\export_0_20221219083425206\repoItem' while retrieving 1964 from the repo, messageKey:null, messageDetails:null)

2022-12-19 08:45:50.522 -0600  pool-21-thread-1 : ERROR com.tableausoftware.tabadmin.webapp.asyncjobs.SiteExportJob - Failure while trying to export site 
java.lang.RuntimeException: SiteImportExportException(message:caught exception 'Failed to retrieve 25 from repository into file F:\Tableau\Tableau Server\data\tabsvc\temp\siteimportexport_0.20214.22.0108.1039\export_0_20221219132231001\repoItem' while retrieving 25 from the repo, messageKey:null, messageDetails:null)

 

Environment

  • Tableau Server 2021.4.3 - 2021.4.9

Resolution

Upgrade to Tableau Server version 2021.4.10 or higher.

Cause

The server has multiple in place upgrades from an old version which caused some discrepancies in the workgroup DB tables.

Additional Information

Tableau Server downloads are available on the Support Releases website.
Did this article resolve the issue?