Getting error - Unable to launch MVM server: License Error: Licensing shutdown

389 views (last 30 days)
I am trying to setup matlab within docker image which will be used in AWS components. I am invoking matlab.engine.start_engine in my code which is throwing the error: Unable to launch MVM server: License Error: Licensing shutdown. I have setup the MLM_LICENSE_FILE in my DockerFile as an environment variable as well. Can anybody guide what could be the reason or resolution here?
  3 Comments
Walter Roberson
Walter Roberson on 25 Sep 2023
It sounds like either there is no lmgrd license server running at all, or else that the vendor license daemon MLM is absent or else is crashing.
Shlomi
Shlomi on 12 Oct 2023
Were you able to solve this issue?
I am using R2023b. Matlab is launching alright when running from the docker's shell, but fails when starting it from Python's MatlabEngine using start_engine() command.
I use mathworks/matlab:r2023b and MLM_LICENSE_FILE is exported into the docker.
Python's exception shows this relevant callstack:
self.matlab_engine: MatlabEngine = matlab.engine.start_matlab(option)
File "/usr/local/lib/python3.10/dist-packages/matlab/engine/__init__.py", line 128, in start_matlab
eng = future.result()
File "/usr/local/lib/python3.10/dist-packages/matlab/engine/futureresult.py", line 67, in result
return self.__future.result(timeout)
File "/usr/local/lib/python3.10/dist-packages/matlab/engine/matlabfuture.py", line 87, in result
handle = pythonengine.getMATLAB(self._future)
matlab.engine.EngineError: Unable to launch MVM server: License Error: Licensing shutdown

Sign in to comment.

Answers (1)

Pratyush Swain
Pratyush Swain on 25 Sep 2023
Hey Shweta,
I understand you are facing shutdown due to license error. Since the error number has not been mentioned,I will suggest to check out the following page for license errors and focus on those errors involving 'MLM': license problems "cheat sheet" - MATLAB Answers - MATLAB Central (mathworks.com)
Hope this helps.

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!