MDS Startup Exception

Publication Date:  2015-06-29 Views:  223 Downloads:  0
Issue Description
Log in to the CTI Server as the icd user and run the mdscmd command.
 If the mdscmd process is occupied, the following information is displayed:
mdscmd bind to ip 10.10.10.21
eSpace CTI V300R005C50SPC002
TcpInit Failed. Return=111

 If the ICDComm IP address is incorrect, the following information is displayed:
--------Get All Process Status From MDS--------
Send message to mds Failed. Return=222.
Press ENTER to return main menu
The IP 255.255.255.255 in $ICDCOMMDIR/config/icdcomm.cfg or /etc/hosts is not in $ICDDIR/config/icdpub.ini
Receive GET PROCS INFO ACK message from MDS failed. Return=-1 ErrorStack=[114 114 114]
Press ENTER to return main menu

 If the MDS is not started, the following information is displayed:
Send message to mds Failed. Return=223.
Press ENTER to return main menu
Handling Process
 Check whether the mdscmd process is occupied.
1. Query the mdscmd process.
ps -eaf | grep mdscmd
The following information is displayed, in which 15831 indicates the ID of the mdscmd process.
icd      15831 15756  0 11:02 pts/0    00:00:00 mdscmd
icd      17167 15865  0 11:08 pts/1    00:00:00 grep mdscmd

2. Stop the mdscmd process.
kill -9 15831
3. Run the mdscmd command again.
The mdscmd process is started successfully.
 Check whether the ICDTCPMYIP parameter in the ICDComm configuration file is correctly set.
1. Log in to the CTI Server as the icd user.
2. Go to the ICDComm installation directory /home/icd/icdcomm/config, open the icdcomm.cfg file, and check whether the value of ICDTCPMYIP is the CTI service IP address.
If yes, go to the next step. If not, change the value of ICDTCPMYIP to the CTI service IP address. After the change, restart the ICDComm process.
</home/icd/icdcomm/config>vi icdcomm.cfg
[common]
; Key word of the icdcomm shared memory.
IPCKEY=12345678

; Bind ip address . Default:First ip of this machine.
ICDTCPMYIP=10.71.106.234

 Check whether the IP address and host name used for CTI service interaction in the /etc/hosts file are placed in the first line.
1. Log in to the CTI Server as the root user and query the host name.
hostname
linux-ICBC-3
2. In the hosts file, view the host name and its CTI service IP address and check whether they lie in the first line.
If yes, skip this step. If not, place them in the first line and restart all CTI services.
vi /etc/hosts
10.71.106.234 linux-ICBC-3
Root Cause
 The mdscmd process is occupied.
 The ICDTCPMYIP parameter in the ICDComm configuration file is incorrectly set.
 The IP address and host name used for CTI service interaction in the /etc/hosts file do not lie in the first line.
 The MDS is not started.

END