Getting error - Unable to launch MVM server: License Error: Licensing shutdown
270 次查看(过去 30 天)
显示 更早的评论
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
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
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
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.
0 个评论
另请参阅
类别
在 Help Center 和 File 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!