KNOWLEDGE BASE

Tableau Server restore failed with error "tableauserver.jks: The process cannot access the file because it is being used by another process."


Published: 20 Jun 2021
Last Modified Date: 21 Jun 2021

Issue

Restoring a backup failed with below error intermittently:

2021-06-19 05:00:04.365 +0000  pool-19-thread-1 : ERROR com.tableausoftware.tabadmin.webapp.asyncjobs.JobStepRunner - Running step RestoreKeyManagementService failed
java.lang.RuntimeException: java.nio.file.FileSystemException: D:\Program Files\Tableau\Tableau Server\data\tabsvc\temp\tabadmincontroller_0.20203.21.0216.1504\keystores12868166530765614193\
tableauserver.jks: The process cannot access the file because it is being used by another process.

Environment

  • Tableau Server 2020.3.6

Resolution

Workaround

Reboot the server before restoring backup.

Permanent fix:
Upgrade to Tableau Server Release 2020.3.7 and later.
Fixed in 2020.3.7 - https://www.tableau.com/support/releases/server/2020.3.7 (See Issue ID#1233456 )

 

Cause

A source code tab-core-crypto doesn't correctly close the object once done so the .jks file still locked with a handle on it.  
This is a known issue that is fixed in more recent version of Tableau Server.
Did this article resolve the issue?