Why do I receive an error that the MATLAB Parallel Server service launched but failed to start?
조회 수: 2 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2014년 7월 22일
편집: MathWorks Support Team
2019년 3월 26일
When starting mjs on my Windows machine I receive the following error:
wrapper | Starting the MATLAB Parallel Server service...
wrapper | The MATLAB Parallel Server service was launched, but failed to start.
When checking the mjs-service.log I see the following error:
STATUS | wrapper | 2014/07/22 09:47:17 | Starting the MATLAB Parallel Server service...
STATUS | wrapper | 2014/07/22 09:47:17 | --> Wrapper Started as Service
STATUS | wrapper | 2014/07/22 09:47:17 | Launching a JVM...
INFO | jvm 1 | 2014/07/22 09:47:17 |
INFO | jvm 1 | 2014/07/22 09:47:17 |
INFO | jvm 1 | 2014/07/22 09:47:17 | WrapperSimpleApp: Encountered an error running main: java.lang.NoClassDefFoundError: com/mathworks/resource_core/BaseMsgID
INFO | jvm 1 | 2014/07/22 09:47:17 | java.lang.NoClassDefFoundError: com/mathworks/resource_core/BaseMsgID
INFO | jvm 1 | 2014/07/22 09:47:17 | at com.mathworks.toolbox.distcomp.control.Starter.run(Starter.java:241)
INFO | jvm 1 | 2014/07/22 09:47:17 | at com.mathworks.toolbox.distcomp.control.Starter.main(Starter.java:723)
INFO | jvm 1 | 2014/07/22 09:47:17 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO | jvm 1 | 2014/07/22 09:47:17 | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2014/07/22 09:47:17 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO | jvm 1 | 2014/07/22 09:47:17 | at java.lang.reflect.Method.invoke(Unknown Source)
INFO | jvm 1 | 2014/07/22 09:47:17 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:136)
INFO | jvm 1 | 2014/07/22 09:47:17 | at java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2014/07/22 09:47:17 | Caused by: java.lang.ClassNotFoundException: com.mathworks.resource_core.BaseMsgID
INFO | jvm 1 | 2014/07/22 09:47:17 | at java.net.URLClassLoader$1.run(Unknown Source)
INFO | jvm 1 | 2014/07/22 09:47:17 | at java.net.URLClassLoader$1.run(Unknown Source)
INFO | jvm 1 | 2014/07/22 09:47:17 | at java.security.AccessController.doPrivileged(Native Method)
INFO | jvm 1 | 2014/07/22 09:47:17 | at java.net.URLClassLoader.findClass(Unknown Source)
INFO | jvm 1 | 2014/07/22 09:47:17 | at java.lang.ClassLoader.loadClass(Unknown Source)
INFO | jvm 1 | 2014/07/22 09:47:17 | at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
INFO | jvm 1 | 2014/07/22 09:47:17 | at java.lang.ClassLoader.loadClass(Unknown Source)
INFO | jvm 1 | 2014/07/22 09:47:17 | ... 8 more
STATUS | wrapper | 2014/07/22 09:47:19 | <-- Wrapper Stopped
ERROR | wrapper | 2014/07/22 09:47:21 | The MATLAB Parallel Server service was launched, but failed to start.
채택된 답변
MathWorks Support Team
2019년 3월 26일
편집: MathWorks Support Team
2019년 3월 26일
We are currently looking into what is causing this issue. The problem appears to be with the LOGBASE and the CHECKPOINTBASE storage location.
NOTE: The log file is store in C:\Windows\Temp\mjs\Log by default in Windows.
To resolve the issue, you need to stop mjs:
mjs stop
And to start it back up with a -clean flag:
mjs start -clean
Doing this will clear out the LOGBASE and CHECKPOINTBASE storage location and default mjs to the original state. If the above does not fix the issue, you will also want to uninstall the service:
mjs uninstall
After which, you will want install it again:
mjs install
After doing so, repeat the above mjs start command and the issue should be resolved.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!