KNOWLEDGE BASE

Extract Refresh Fails With Error "Temporary File Is Locked By Another Process: Flock(): Resource Temporarily Unavailable"


Published: 09 Dec 2020
Last Modified Date: 20 Jul 2021

Issue

Extract refresh job failed with the following error:

file is locked by another process: flock(): Resource temporarily unavailable
or
com.tableausoftware.nativeapi.exceptions.DataSourceException: Hyper API: Could not connect to the Hyper server.

The error is encountered upon querying the .tmp files or .hyper files that are generated during extract refresh.
 

Environment

  • Tableau Server
  • Linux

Resolution

Check if the security or anti-virus software is running on the server hosting Tableau Server and exclude the following directories from scanning as it can cause conflict with Tableau Server using the directory/file upon running extract refresh jobs.

 /opt/tableau/tableau_server/
 /data/tableau
 

Cause

This is caused by the security/anti-virus software e.g. McAfee that is running on the machine hosting Tableau Server.
Did this article resolve the issue?