MATLAB: Do I get an “Exiting due to Signal 39” error when trying to start the Network License Manager

In my log file I am seeing the following errors. What can I do to fix this problem?
10:51:06 (MLM) Server unable to setup IPC channel
10:51:06 (MLM) EXITING DUE TO SIGNAL 39 Exit reason 7
10:51:06 (lmgrd) MLM exited with status 39 (Couldn't find a master)
10:51:06 (lmgrd) Restarted MLM (internet tcp_port 52449 pid 5099)
10:51:06 (lmgrd) MLM exited with status 0 signal = 17
10:51:06 (lmgrd) Please correct problem and restart daemons

Best Answer

Generally "Exiting due to Signal XX Exit reason X" indicates a problem with the network connection. This error will occur when you try to start the Network License Manager software. lmgrd will start normally, but MLM will not start successfully.
You may also get a License Manager Error -15 when checking the status of the server (using the "lmstat" command in Unix or LMtools.exe in Windows).
As part of the startup process for MLM, the Network License Manager will need to connect to localhost. If it isn't able to connect or doesn't know where to find the localhost, this error will occur. To resolve this, you will need to edit your Hosts file. On Linux, the default location for the Hosts file is:
/etc/hosts
At the top of the Hosts file, add the following line if it is missing:
(DISCLAIMER: Editing your hosts file can cause adverse effects to your system. If you are unfamiliar with hosts files, make a copy of your hosts file before proceeding or contact your system administrator for assistance. MathWorks takes no responsibility for damage caused to your operating system by a malformed hosts file.)
127.0.0.1 localhost
With the new line added, try restarting the License Manager. If the error persists, the problem may be with your network and not the server itself. In that case, consult your network administrator.
For additional troubleshooting suggestions for network errors, see the following article:
Why do I receive "License Manager Error -15"? http://www.mathworks.com/matlabcentral/answers/98092