How to fix error "License Manager Error -5"
34 次查看(过去 30 天)
显示 更早的评论
Hi, I'm using MatLab WebApp Server R2022b.
My server was running smoothly until yesterday.
Today, I installed MatLab WebApp Server R2023a to upgrade my server.
However, now I'm encountering an error message that says "License Manager Error -5: Cannot find a license for MATLAB_Web_App_Server."
I have checked my license, and it appears to be normal.
Could you please guide me on how to resolve this issue?
Here is my log.
00000002 2023-05-18 01:15:21 0x00000fcc cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\spf\servicedependencies
00000003 2023-05-18 01:15:21 0x00000fcc agent::agentcore V Core framework services started.
00000004 2023-05-18 01:15:21 0x00000fcc agent::agentcore V Registering agentmdwas_9_13 using lockroot C:\ProgramData\MathWorks\webapps\R2022b\USR\locks
00000005 2023-05-18 01:15:21 0x00000fcc agent::agentcore V Registration complete.
00000006 2023-05-18 01:15:21 0x00000fcc cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\spf\externalprocessdiscovery
00000007 2023-05-18 01:15:21 0x00001ef8 cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\matlabconnector\serviceprocess
00000008 2023-05-18 01:15:21 0x00001ef8 cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\storage\providerenvironment\storage\providerenvironment\matlab_connector
00000009 2023-05-18 01:15:21 0x00000fcc cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\spf\clients
00000010 2023-05-18 01:15:21 0x00000cb4 cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\agent_plugins\http_authenticators
00000011 2023-05-18 01:15:21 0x00002728 agent::staticcontent W Attempted re-registration of stem /default(folder: /html/, service instance: 1691cb97-0a0e-45c1-b8ed-5c203c4d3203)
00000012 2023-05-18 01:15:21 0x00000cb4 cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\agent_plugins\http_authenticators
00000013 2023-05-18 01:15:22 0x00000cb4 agent::mdwas V Config path: C:\ProgramData\MathWorks\webapps\R2022b\config\webapps.config
00000014 2023-05-18 01:15:22 0x00000cb4 agent::mdwas E LicenseMgrHandler::initLicenseManager: License checkout failed.
License Manager Error -5
Cannot find a license for MATLAB_Web_App_Server.
Troubleshoot this issue by visiting:
<a href="https://www.mathworks.com/support/lme/R2022b/5">https://www.mathworks.com/support/lme/R2022b/5</a>
Diagnostic Information:
Feature: MATLAB_Web_App_Server
License path: C:\Users\MwWebAppServerR2022b.DESKTOP-4N9SQB6.000\AppData\Roaming\MathWorks\MATLAB\R2022b_licenses;C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\licenses\license.dat;C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\licenses\network.lic
Licensing error: -5,414.
00000015 2023-05-18 01:15:22 0x00000cb4 agent::mdwas V Shutting down MDWAS service
00000016 2023-05-18 01:15:22 0x00000cb4 agent::mdwas W Failed to deregister web socket proxy
00000017 2023-05-18 01:15:22 0x00000cb4 agent::core::service E mdwas: setup threw an exception
00000018 2023-05-18 01:15:22 0x00000cb4 agent::core::service V Exception caught: Dynamic exception type: class std::runtime_error
std::exception::what: Unable to initialize license manager
00000019 2023-05-18 01:15:22 0x00000cb4 agent::spf::legacyservicepublisher W Unable to create Service instance for PID: AgentServicesContainer with uniqueID: AgentServicesContainer+mdwas+0 on exchange endpoint: inprocess
00000020 2023-05-18 01:15:22 0x00000cb4 agent::spf::legacyservicepublisher V Exception caught: Dynamic exception type: class std::runtime_error
std::exception::what: Unable to initialize license manager
00000021 2023-05-18 01:15:22 0x00000cb4 agent::spf::framework E Failed to publish ServiceInterface: mdwas to ServicePublisher:legacyservicepublisher (79ebec27-3c1c-4d5f-a971-d5c1d1401287)
00000022 2023-05-18 01:15:22 0x00000cb4 agent::spf::framework V Exception caught: Dynamic exception type: class std::runtime_error
std::exception::what: Unable to publish service
00000023 2023-05-18 01:15:22 0x00000fa8 agent::core::serviceutils W Failed to deregister callback: Service is not accepting work 4652b325-0070-4599-8424-3aaebc4787bb:256:1691cb97-0a0e-45c1-b8ed-5c203c4d3203:6
00000024 2023-05-18 01:15:22 0x00000c24 agent::httpserver V HTTP server shutdown
00000025 2023-05-18 01:15:22 0x00000c24 agent::httpserver V HTTP server shutdown
00000026 2023-05-18 01:15:22 0x00000fa8 agent::shutdownservice V ShutdownService shutting down.
00000027 2023-05-18 01:15:22 0x00000fcc agent::coreservices E Failed to start all non-core services
00000028 2023-05-18 01:15:22 0x00000fcc agent::agentcore E Services not started. Exiting.
1 个评论
Walter Roberson
2023-5-17
Are you thinking that you are using a local license or a network license to a remote server?
The diagnostics imply that it is trying to start up a local license manager but failing to do so.
Given those diagnostic messages, one of the first experiments I would do would be to reboot.
回答(1 个)
Jestzer
2023-5-17
Fixing this issue would require looking at your license file and license manager log file, neither of which you want to post publicly. I'd recommend reaching out to MathWorks official support since they can handle that sensitive info.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Standalone Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!