I recommend reaching out to our Installation and Licensing Support team, who can be reached by email at email support@mathworks.com. If you'd prefer to call our US-based support, they are available at +1-508-647-7000. Dial option 3, then 1 at the menu. Support in other locations can be found at this Contact Us page.
With that being said, there's a few things we can try. First, we want to verify that things are working on the server itself. If you cd into the folder containing the License Manager utilities, you can run:
./lmutil lmstat -c license.dat -a
This will tell you the current status of the License Server as well as all of the products that are being served. If you successfully see MATLAB Parallel Server (MATLAB_Distrib_Comp_Engine), we can move to testing the worker nodes. Based on your output above I expect this to work successfully.
On the worker nodes themselves, you'll need to make sure that you have pointed MATLAB to the License Server. This is most commonly done with a network.lic, though you can also use an environment variable. Based on the information you posted, check /usr/local/MATLAB/R2021b/licenses for any license files, and echo out the LM_LICENSE_FILE and MLM_LICENSE_FILE environment variables to see if they are set.
If you do find a network.lic or the environment variable is set, we can specifically test just the Parallel Server checkout. Navigate to /usr/local/MATLAB/bin, and try the following. This will attempt to launch MATLAB as a parallel worker, print out the license number, and then exit.
./matlab -dmlworker -r 'license,exit'
This will either give you the same error as above or give you more clues as to what might be wrong.
If you do not have a network.lic or environment variable set on the worker nodes, then you will need to create one. To do this:
- Open the license.dat you started the License Manager with
- Find the SERVER line and copy it in its entirety
- Create a new file called network.lic and paste the SERVER line up top
- On the next line underneath it, add USE_SERVER
- Place the network.lic into /usr/local/MATLAB/R2021b/licenses and try the license check again
If done correctly, the network.lic should look something like:
SERVER <hostname> <host_id> <port_number>
USE_SERVER
Once that file is in the correct location, you should be able to succesffully check out Parallel Server licenses.