Core Issue
These DD nohup file error messages are displayed:
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException:
/opt/dynamicsoft/DriftDetector_2_0_0_5/log/log.txt
(No such file or directory)
at java.io.FileOutputStream.openAppend(Native Method)
The destination of the log.txt file is mis-configured under all or one of these files:
- Under the DD Install_dir/bin, view the DD startup script.
For example:
dsuser$ more start_dd.sh
JAVA_HOME=/usr/j2sdk1.4.2_04
INSTALL_DIR=/opt/dynamicsoft/dsProducts/DD/2.0.0.5
SYNC_OBJ=APPSYS
#options:SUB|APPSYS
CFG_FILE=${INSTALL_DIR}/cfg/driftconfig.xml
LOG_FILE1=${INSTALL_DIR}/log/log.txt
LOG_FILE2=${INSTALL_DIR}/log/replay-log.txt
LOG_FILE3=${INSTALL_DIR}/log/sync-these.txt
DUMP_FILE=${INSTALL_DIR}/bin/subscriber.dump
- Under the DD Install_dir/cfg, view the DD log4j.properties file.
For example:
log4j.appender.debugError.File=
/opt/dynamicsoft/DriftDetector_2_0_0_5/log/log.txt
Resolution
Complete these steps to modify the files to the proper destination:
- Login to both DataGateway (DGW) machines.
- Navigate to DD Install_dir/bin.
- Edit the DD startup script with the proper configuration.
- Do the same under the DD Install_dir/cfg for log4j.properties file.
Since DD runs once a day and is executed by the UNIX cron shell script, there is no need to restart the server after the change. The changes take affect the next time the DD runs automatically.