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

조회 수: 234 (최근 30일)
Shweta
Shweta 2023년 9월 10일
댓글: Shlomi 2023년 10월 12일
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
Walter Roberson
Walter Roberson 2023년 9월 25일
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 2023년 10월 12일
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

댓글을 달려면 로그인하십시오.

답변 (1개)

Pratyush Swain
Pratyush Swain 2023년 9월 25일
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.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by