Running DFTS in Enforcing Mode on CentOS 6.10
These instructions are available in the DFTS Version 3.0.0.1+ User Guides
Issue
When attempting to start DFTS on a RHEL or CentOS Version 6 system, you may see the following error:
ERROR: Failed to create message queue: /Owldata/dfts/keys/smi_on_dfts_blue1
/owl/dfts/send-blue/owlDFTSSend: line 417: exit: OwlScriptRetunCode_FailedCreateMessageQueue: numeric argument required
This error occurs when SELinux runs in enforcing mode on RHEL/CentOS 6. DFTS does not support this, but there is a workaround.
Workaround
This workaround involves editing script and configuration files from the command line. Follow these steps on the DFTS Send server:
- Log into the server as a user with sudo permissions.
- Issue the following command to elevate your permissions:
sudo -i - Enter your password.
- Issue the following command to change to the DFTS executable directory:
cd /Owl/dfts/send-blue/ - Issue the following commands to make backup copies of the files to be changed:
cp startDftsSend startDftsSend.old
cp owlDftsSend owlDftsSend.old
cp onotify.conf onotify.conf.old - Open startDftsSend to line 42:
vim +42 startDftsSend - In vim, press i to switch to insert mode.
- Edit line 42 to change the MQ_KEYS_DIR parameter to /tmp/keys, as shown below:
SUBDIR="/Owl/dfts"
BINDIR="$SUBDIR/send-blue"
SUBDIR_DATA="/Owldata/dfts"
SUBDIR_UTILS="/Owl/utils"
MQ_KEYS_DIR="/tmp/keys" - Press Esc and issue the following command:
:wq! - On the Linux command line, issue the following command to open owlDftsSend to line 148:
vim +148 owlDftsSend - Press i to switch to insert mode.
- Edit line 148 to change the BASE_MQ_KEYS_DIR parameter to /tmp/keys, as shown below:
BASE_DATADIR="$SUBDIR_DATA/senddata"
BASE_PROBLEMDIR="$SUBDIR_DATA/problem"
BASE_MQ_KEYS_DIR="/tmp/keys"
BASE_LOGDIR="$SUBDIR_LOGS/logs" - Press Esc and issue the following command:
:wq! - On the Linux command line, issue the following command to open onotify.conf:
vim onotify.conf - Press i to switch to insert mode.
- Edit the first line to change the ON_OUTPUT_QUEUE parameter to /tmp/keys as shown below:
ON_OUTPUT_QUEUE /tmp/keys/smi_on_dfts_blue - Press Esc and issue the following command:
:wq! - If you are running DFTS as a service, issue the following command to restart the service:
systemctl daemon-reload - Attempt to start DFTS Send:
startOwlDfts start