TDM Docker Audit job failed with java.nio.file.FileAlreadyExistsException
search cancel

TDM Docker Audit job failed with java.nio.file.FileAlreadyExistsException

book

Article ID: 278075

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

Audit job failed with java.nio.file.FileAlreadyExistsException

java.lang.RuntimeException: java.nio.file.FileAlreadyExistsException: /home/tdm/.tdm/conf/fdm/jobs

TDM_Portal_docker-4.10.235.0

Ran the below prepareTdmUser.sh
./prepareTdmUser.sh -d /local_home/srctdm/.tdm -u srctdm -g tdm

Environment

TDM Docker 4.10.x

Cause

The "/home/tdm/.tdm/" folder is the default TDM_HOME folder outside of the docker container ( on the Docker Engine machine ).

The TDM_HOME inside the docker container is always "/home/tdm/.tdm/".
 
The 2 TDM_HOME folders ( inside the container and outside of the container ) are mounted - so they are the same and their content is identical.
User might have choosen to set the TDM_HOME ( outside of the container ) to any other accessible writable folder location ( outside of the container ).
 "$TDM_HOME/conf/fdm/jobs" folder ( outside of the docker container ) was indeed created as a symbolic link.

Resolution

Set the TDM_HOME environment variable outside the docker container - on your Docker Engine Linux machine to some accessible writable root folder - that does not have any symbolic links under it.
 
The folder structure of TDM_HOME - outside of the docker container - should not include any symbolic links.