MOSEK Licensing Guide: Release 9.3.20
MOSEK Licensing Guide: Release 9.3.20
Release 9.3.20
MOSEK ApS
27 April 2022
Contents
1 Introduction 1
2 Contact Information 2
3 License Agreement 3
4 Quickstart 7
4.1 I don’t have a license file yet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.2 I have a license file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.3 Local . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4.4 Floating . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
8 Client setup 21
8.1 With a local license file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
8.2 Without a local license file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
8.3 Testing and debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
10 Licensing FAQ 24
10.1 General questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
10.2 Floating license issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
10.3 Local file issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
10.4 Need more help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Index 29
i
Chapter 1
Introduction
The MOSEK Optimization Suite is a commercial product that requires a valid license. This guide
explains how the licensing system works and how to install a license.
Are you only interested in quick, simplified instructions? Jump directly to Sec. 4.
1
Chapter 2
Contact Information
You can get in touch with MOSEK using popular social media as well:
Blogger https://blog.mosek.com/
Google Group https://groups.google.com/forum/#!forum/mosek
Twitter https://twitter.com/mosektw
Linkedin https://www.linkedin.com/company/mosek-aps
Youtube https://www.youtube.com/channel/UCvIyectEVLP31NXeD5mIbEw
2
Chapter 3
License Agreement
Before using the MOSEK software, please read the license agreement available in the distribution
at <MSKHOME>/mosek/9.3/mosek-eula.pdf or on the MOSEK website https://mosek.com/products/
license-agreement.
MOSEK uses some third-party open-source libraries. Their license details follows.
zlib
MOSEK includes the zlib library obtained from the zlib website. The license agreement for zlib is shown
in Listing 3.1.
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
3
fplib
MOSEK includes the floating point formatting library developed by David M. Gay obtained from the
netlib website. The license agreement for fplib is shown in Listing 3.2.
Zstandard
MOSEK includes the Zstandard library developed by Facebook obtained from github/zstd. The license
agreement for Zstandard is shown in Listing 3.3.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Neither the name Facebook nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(continues on next page)
4
(continued from previous page)
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mimalloc
MOSEK includes the mimalloc memory allocator library from github/mimalloc. The license agreement
for mimalloc is shown in Listing 3.4.
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
blis
MOSEK includes the blis implementation of BLAS library from github/blis. The license agreement for
blis is shown in Listing 3.5.
5
(continued from previous page)
from this software without specific prior written permission.
OpenBLAS
MOSEK includes the OpenBLAS implementation of BLAS library from github/OpenBLAS. The license
agreement for OpenBLAS is shown in Listing 3.6.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6
Chapter 4
Quickstart
These are quickstart instructions for users who just want the most basic, working, easy and quick license
setup and do not care about the more advanced configuration features.
Commercial licenses
Assuming you purchased a product (https://www.mosek.com/sales/order/) you will obtain a license file
from us. For a floating license or server (node-locked) license you will first have to follow Sec. 6 to
determine the hostname and hostid of the designated machine. Contact us at [email protected].
4.3 Local
Put your license file in:
$HOME/mosek/mosek.lic (Linux/OSX)
%USERPROFILE%\mosek\mosek.lic (Windows)
In most cases that is:
/home/myusername/mosek/mosek.lic (Linux)
/Users/myusername/mosek/mosek.lic (OSX)
C:\Users\myusername\mosek\mosek.lic (Windows)
7
If that folder does not exist (which it most likely does not if you are using MOSEK for the first
time), then create it.
Restart any software using MOSEK (for example MATLAB, R, etc.) if you updated an existing
license.
Need more options or are there issues? See Sec. 8.
4.4 Floating
• Start (or restart) the token server using the instructions in Sec. 7.
• On each user machine where you will run MOSEK do exactly the same as in Sec. 4.3.
8
Chapter 5
The MOSEK Optimization Suite is licensed software which means a valid license is required. A license
is provided by a license file that specifies:
• which features in MOSEK have been licensed (an example of a feature is the nonlinear extension
PTON),
• floating: license tied to a particular computer that acts as a token server. MOSEK can be used
on any computer connected to the token server through the local area network (LAN). In particular
MOSEK can be used on the token server itself. Setting up a floating license is described in Sec.
7.
• server (also known as node-locked): license tied to a particular computer that allows unlimited
use of the licensed features on that particular machine. Setting up a server license is described in
Sec. 8.
9
5.2 The License File
A license file is a plain text file that can be opened for inspection using any plain text editor (such as
vim or emacs on Linux, or notepad on Windows). It is sometimes useful to inspect the file to check the
expiration date, the activated features and computer information.
[ ... ]
[ ... ]
Listing 5.1 shows an extract of a license file for a floating license. We can see that:
• the token server is hulk with hostid f4ed3061a731,
• the PTS feature for MOSEK version 9 expires on 12-dec-2018 and the number of PTS tokens is 3,
• the PTON feature for MOSEK version 9 expires on 26-feb-2017 and the number of PTON tokens is
2.
Perhaps somewhat confusingly server (node-locked) licenses do not contain the SERVER line, but the
hostid is part of the feature description. A server (node-locked) license does not work and CANNOT be
used with a token server.
10
Chapter 6
The hostname and hostid are the two basic computer identifiers used in MOSEK license files. The
hostname is just the standard host name and hostid is usually identical to the MAC address of a network
card.
Command line
The easiest way to obtain hostname and hostid is to open the shell, go to the directory with MOSEK
binaries (<MSKHOME>/mosek/9.3/tools/platform/<PLATFORM>/bin/) and run the command
mosek -f
It will produce output similar to
FlexLM
Version : 11.14
Hostname : myoptserver
Host ID : "b083fa34ad2c"
License path : /home/mosekuser/mosek/mosek.lic
Python
If you only installed MOSEK in Python (via Conda, Pip or otherwise) then you can get the same output
by running the following code. Note, however, that for floating licenses you will still have to download
the full MOSEK distribution package to obtain the license server binaries.
env = mosek.Env()
env.set_Stream(mosek.streamtype.log, lambda x: sys.stdout.write(x))
env.echointro(1)
11
Other ways
If you cannot run MOSEK at this point, other methods to obtain the hostname and hostid are outlined
below.
hostname
Important: Please follow the instructions below, and NOT use the shell command hostid.
%UserProfile%\hostid.txt
12
Troubleshooting
If you get an error similar to:
13
Chapter 7
A floating license is tied to a particular computer acting as a token server. A token server is a
service on Windows and a daemon on UNIX that serves license tokens to MOSEK client programs over
the LAN.
You may think of the token server as a computer with a bag of license tokens. Whenever a client
computer starts using MOSEK, a license token is requested from the token server, and when MOSEK
completes it sends back the license token to the token server. The following diagram Fig. 7.1 conveys
the overall idea.
Fig. 7.1: General floating license scheme: any MOSEK instances that can connect to the token server
can get a valid license.
This implies that you cannot use more license tokens than is available at any given point in time.
Moreover, MOSEK can be used on any computer connected to the token server through the local area
network. In particular MOSEK can also be used on the computer acting as token server.
A license file that contains at least one floating license always starts with
14
7.1 Windows: Token server setup
Below follows a step-by-step guide for installing a token server on Windows.
• Step 1: Make sure you have administrative privileges.
• Step 2: Download the license file and store it on the local drive of the computer running the token
server.
• Step 3: In the start menu select Mosek Optimization Tools and click on Install MOSEK
token server to start the license installation wizard.
• Step 4: Click Next and then click Browse and select the license file.
lmutil - Copyright (c) 1989-2015 Flexera Software LLC. All Rights Reserved.
Flexible License Manager status on Tue 3/7/2017 17:45
MOSEKLM: UP v11.13.1
Feature usage info:
Users of PTS: (Total of 4 licenses issued; Total of 0 licenses in use)
15
You have now installed the token server. Next client users should follow the instructions in Sec. 8 to
connect to the token server.
7.1.2 Troubleshooting
If the server won’t start, or the client can’t check out the license first check Sec. 10.2. It covers most
typical issues. Always consult the log file lmrgd.log of the server.
If that doesn’t help please contact MOSEK support at [email protected]. Please include the
client error messages and the server log file lmgrd.log. See Sec. 10.4.
7.1.3 lmtools
Alternatively the FLEXlm installation tool lmtools may be used for installing, configuring and diag-
nosing the license server. It is available from the MOSEK folder in the Start menu if MOSEK was
installed using the MSI installer. For information about this tool and the many other options of FLEXlm
please see License Administration Guide.
cat lmgrd.log
15:03:09 (lmgrd) -----------------------------------------------
15:03:09 (lmgrd) Please Note:
15:03:09 (lmgrd)
15:03:09 (lmgrd) This log is intended for debug purposes only.
15:03:09 (lmgrd) In order to capture accurate license
15:03:09 (lmgrd) usage data into an organized repository,
15:03:09 (lmgrd) please enable report logging. Use Macrovision's
15:03:09 (lmgrd) software license administration solution,
15:03:09 (lmgrd) FLEXnet Manager, to readily gain visibility
15:03:09 (lmgrd) into license usage data and to create
15:03:09 (lmgrd) insightful reports on critical information like
15:03:09 (lmgrd) license availability and usage. FLEXnet Manager
15:03:09 (lmgrd) can be fully automated to run these reports on
15:03:09 (lmgrd) schedule and can be used to track license
15:03:09 (lmgrd) servers and usage across a heterogeneous
15:03:09 (lmgrd) network of servers including Windows NT, Linux
15:03:09 (lmgrd) and UNIX. Contact Macrovision at
15:03:09 (lmgrd) www.macrovision.com for more details on how to
15:03:09 (lmgrd) obtain an evaluation copy of FLEXnet Manager
15:03:09 (lmgrd) for your enterprise.
15:03:09 (lmgrd)
15:03:09 (lmgrd) -----------------------------------------------
15:03:09 (lmgrd)
15:03:09 (lmgrd)
(continues on next page)
16
(continued from previous page)
15:03:09 (lmgrd) FLEXnet Licensing (v11.4.0.0 build 31341) started on kolding (linux)␣
˓→(5/14/2007)
15:03:09 (lmgrd) Copyright (c) 1988-2006 Macrovision Europe Ltd. and/or Macrovision␣
˓→Corporation. All Rights Reserved.
lmutil - Copyright (c) 1989-2015 Flexera Software LLC. All Rights Reserved.
Flexible License Manager status on Tue 3/7/2017 17:45
MOSEKLM: UP v11.13.1
Feature usage info:
Users of PTS: (Total of 4 licenses issued; Total of 0 licenses in use)
7.2.2 Troubleshooting
If the server won’t start, or the client can’t check out the license first check Sec. 10.2. It covers most
typical issues. Always consult the log file lmrgd.log of the server.
If that doesn’t help please contact MOSEK support at [email protected]. Please include the
client error messages and the server log file lmgrd.log. See Sec. 10.4.
If you get an error similar to:
17
7.2.3 Starting lmgrd on boot
For security reasons lmgrd should not run as root. To start lmgrd at boot time we recommend that you
add the following command to your startup script:
cat lmgrd.log
15:03:09 (lmgrd) -----------------------------------------------
15:03:09 (lmgrd) Please Note:
15:03:09 (lmgrd)
15:03:09 (lmgrd) This log is intended for debug purposes only.
15:03:09 (lmgrd) In order to capture accurate license
15:03:09 (lmgrd) usage data into an organized repository,
15:03:09 (lmgrd) please enable report logging. Use Macrovision's
15:03:09 (lmgrd) software license administration solution,
15:03:09 (lmgrd) FLEXnet Manager, to readily gain visibility
15:03:09 (lmgrd) into license usage data and to create
15:03:09 (lmgrd) insightful reports on critical information like
15:03:09 (lmgrd) license availability and usage. FLEXnet Manager
15:03:09 (lmgrd) can be fully automated to run these reports on
15:03:09 (lmgrd) schedule and can be used to track license
15:03:09 (lmgrd) servers and usage across a heterogeneous
15:03:09 (lmgrd) network of servers including Windows NT, Linux
15:03:09 (lmgrd) and UNIX. Contact Macrovision at
15:03:09 (lmgrd) www.macrovision.com for more details on how to
15:03:09 (lmgrd) obtain an evaluation copy of FLEXnet Manager
15:03:09 (lmgrd) for your enterprise.
15:03:09 (lmgrd)
15:03:09 (lmgrd) -----------------------------------------------
15:03:09 (lmgrd)
15:03:09 (lmgrd)
15:03:09 (lmgrd) FLEXnet Licensing (v11.4.0.0 build 31341) started on kolding (linux)␣
˓→(5/14/2007)
15:03:09 (lmgrd) Copyright (c) 1988-2006 Macrovision Europe Ltd. and/or Macrovision␣
˓→Corporation. All Rights Reserved.
18
(continued from previous page)
15:03:09 (lmgrd) US Patents 5,390,297 and 5,671,412.
15:03:09 (lmgrd) World Wide Web: http://www.macrovision.com
15:03:09 (lmgrd) License file(s): /home/sandvik/kolding.lic
15:03:09 (lmgrd) lmgrd tcp-port 27007
15:03:09 (lmgrd) Starting vendor daemons ...
15:03:09 (lmgrd) Started MOSEKLM (internet tcp_port 44950 pid 23251)
15:03:09 (MOSEKLM) FLEXnet Licensing version v11.4.0.0 build 31341
15:03:09 (MOSEKLM) Server started on kolding for: PTS
15:03:09 (MOSEKLM) PTOC PTON PTOM
15:03:09 (lmgrd) MOSEKLM using TCP-port 44950
In this case lmgrd is running on port 27007 and MOSEKLM is running on port 44950.
lmutil - Copyright (c) 1989-2015 Flexera Software LLC. All Rights Reserved.
Flexible License Manager status on Tue 3/7/2017 17:45
MOSEKLM: UP v11.13.1
Feature usage info:
Users of PTS: (Total of 4 licenses issued; Total of 0 licenses in use)
7.3.2 Troubleshooting
If the server won’t start, or the client can’t check out the license first check Sec. 10.2. It covers most
typical issues. Always consult the log file lmrgd.log of the server.
If that doesn’t help please contact MOSEK support at [email protected]. Please include the
client error messages and the server log file lmgrd.log. See Sec. 10.4.
19
7.4 Changing default ports and firewall and antivirus issues
The token server consists of two daemons
• lmgrd: The token server daemon. By default it listens on port 27007.
• MOSEKLM: A demon started by lmgrd. Opens its own port; its number can vary between runs unless
explicitly specified (see below).
Both need an open port in the firewall if a MOSEK client should be able to check out a license
license token. To specify explicitly which port number each daemon should use you must change the
license file. The first two lines in a standard MOSEK floating license file look like
20
Chapter 8
Client setup
$HOME/mosek/mosek.lic
%USERPROFILE%\mosek\mosek.lic
on UNIX systems and Windows, respectively. If no other configuration options are set (see below)
this is the default location where MOSEK looks for a license. This works for all types of licenses. If the
license file contains a floating license, the client will use the information in that file to find and contact
a token server.
Environment variable
Alternatively, the path to the license file may be set by the environment variable MOSEKLM_LICENSE_FILE,
for example:
MOSEKLM_LICENSE_FILE=/home/user/licenses/mosek.lic
MOSEKLM_LICENSE_FILE=c:\users\mylogin\licenses\mosek.lic
From an API
In the Optimizer API and Fusion API the path to the license file can be set with the method
putlicensepath of the environment or Model, respectively, before first optimization.
21
8.2 Without a local license file
Another method to check out a license from a floating license token server is to set the environment
variable MOSEKLM_LICENSE_FILE in one of the following formats
MOSEKLM_LICENSE_FILE=@hostname
MOSEKLM_LICENSE_FILE=port@hostname
where hostname is the name of the token server machine and port is the port on which MOSEKLM is
listening. Then the client MOSEK application will contact the server directly and the possible overhead
for opening and reading the license file is eliminated. Observe a potential firewall may block access to
the token server.
The same format can be used in conjunction with the command line -l option and in the
putlicensepath method as mentioned in the previous section.
This is the actual location where this instance of MOSEK was trying to locate the license. If it
does not correspond to your expectations then go through the setup again or check that this location
contains the correct file.
22
Chapter 9
The token server may be deployed in a cloud environment. The main challenge in deploying a token
server in the cloud is to guarantee that the hostid (in this case the MAC address) stays unchanged
when the instance running the token server is stopped.
In the following section we discuss one possible deployment strategy on Amazon EC2.
6. Retrieve the MAC address associated with the ENI, e.g by inspecting the ENI in the AWS Man-
agement Console or by logging into the instance and following the instructions in Sec. 6.
7. Contact [email protected] with the relevant MAC address to obtain a valid license file.
8. Make sure the security group associated with the instance running the token server allows for
incoming traffic to the token server. Allow for inbound TCP traffic on the ports your token server
is listening as shown in Sec. 7.4
9. Install the token server as described in Sec. 7.
23
Chapter 10
Licensing FAQ
MOSEKLM_LICENSE_FILE=/home/user/licenses/mosek.lic:27007@licensehost (Linux/
˓→OSX)
MOSEKLM_LICENSE_FILE=c:\users\mylogin\licenses\mosek.lic;27007@licensehost (Windows)
24
Q: Can I use more than one hostid?
Yes, for a server license. In exceptional situations we can generate a server license file with a list of MAC
addresses as hostid. At least one of them has to be active at any time for MOSEK to work. For a
floating license we can use only a single hostid.
Q: Is it possible to use MOSEK with a floating license on a machine detached from the LAN(WAN)?
Yes. It is possible to use the lmborrow functionality. See the FLEXnet license administration guide.
Q: Do you have a complete licensing guide that covers all of FLEXlm options?
The ultimate guide is at FLEXnet license administration guide.
Q: I know the hostid of the license server, but what about the clients?
The clients, that is machines on which MOSEK optimizations will actually be performed, can be
arbitrary, as long as they can connect to the license server to check out a token. The floating license
restricts only the physical machine for the token server.
user@hostname:~/path_to_mosek$ ./lmutil
./lmutil: No such file or directory
then most likely you are missing the Linux Standard Base (LSB) package. LSB version at least 3 is
required. On Ubuntu the latest version of LSB can be installed with the command apt-get install
lsb.
25
Q: The license server will not start.
Always check the server’s log file lmgrd.log. It will explain the source of the problem. Typical issues
are:
• Wrong hostname:
The hostname in the license file is not the actual hostname of the computer. Either you are running
the license server on the wrong machine, or using a wrong file or something changed on the machine
and you should contact us for a new license file.
• Wrong hostid:
The hostid in the license file does not correspond to actual hardware. Either you are running the
license server on the wrong machine, or using a wrong file or something changed on the machine
(perhaps a network interface was removed) and you should contact us for a new license file.
• Incorrect or unreadable license file, for example:
It is possible that you invalidated the file by editing hostname or hostid or that you down-
loaded/saved it incorrectly. See Sec. 5.2 for how a floating license file should look. You should
revert to the original file (if applicable) or contact us for a new license file, attaching the current
one.
• Could not open port:
18:52:12 (lmgrd) Failed to open the TCP port number in the license.
The token server or vendor daemon could not open a port. Possibly it is already open by another
process, or there are firewall issues. In either case consult Sec. 7.4 for a solution. Terminate any
lmgrd or MOSEKLM processes running.
• Invalid License File, on Unix:
18:54:46 (lmgrd) Server's System Date and Time: Mon Jun 21 2021 18:45:01 CET
18:54:46 (lmgrd) Invalid License File
Can appear if the license file has permissions other than 644. Change the license file’s permissions
to 644.
• Hostname not in network database:
A rare error appearing on MAC where lmgrd exits almost immediately. The solution is to edit the
file /etc/hosts in your system and add a line with the IP address and hostname of your machine.
26
Q: The client cannot connect to the license server or license checkout times out.
The following symptoms can indicate firewall issues:
• The client cannot connect to the license server. The error is MOSEK cannot connect to the
license server or Operation now in progress.
• The client cannot connect to the license server from a remote machine, but everything works when
the client runs on the same machine as the server.
• License checkout times out after about 60 seconds with message Timeout: operation now in
progress.
First make sure that the license server is up an running and that the lmgrd.log file did not indicate
any errors (see previous question). Assuming that, consult Sec. 7.4, fix both ports described in that
section (the token server port and the vendor port) to your preferred values, make sure they are open in
the firewall and/or antivirus software, restart the license server and try again.
This happens typically in networks with tight security settings. Occasionally antivirus software can
trigger this problem.
Q: I cannot check out a token even though there should be more available.
Most likely there are processes/users who checked out a license but never returned it. The lmgrd.log
log file on the license server will contain the history of license ckeckouts and checkins which may be used
to identify the culprit.
This is the actual location where this instance of MOSEK was trying to locate the license. If it
does not correspond to your expectations then go through the setup again or check that this location
contains the correct file.
27
10.4 Need more help
Q: I tried all of the above but it doesn’t help.
Send us an email and attach as much as possible of the following data:
• description of the problem,
28
Index
F
floating license, 9
H
host ID, 12
obtaining on |linux|\ / macos|, 12, 13
obtaining on Windows, 12
hostname, 12
I
installation |linux|
token server, 16
installation |macos|
token server, 18
installation Windows
token server, 15
N
node-locked license, 9
O
obtaining on |linux|\ / macos|
host ID, 12, 13
obtaining on Windows
host ID, 12
S
server license, 9
T
token server, 14
installation |linux|, 16
installation |macos|, 18
installation Windows, 15
29