matlab web app server默认注册时卷标语法错误

img

在启动matlab web app server 使用默认注册时出现了卷标语法错误 ,路径和文件名感觉都没有错,环境变量也配置好了,
runtime是在官网下的R2022a版本
matlab版本是R2022a的

webapps.config


<?xml version="1.0" encoding="utf-8"?>
<settings>
    <!-- please keep alphabetized -->
    <!-- Allow HTML content generated by this server to be embedded as an IFRAME on the following sites. See frame-ancestors HTTP header for more info. 
         Should look like "*.acme.com:* dev.local:*" . Empty string means default value, which allows current host only.  -->
    <AllowedFrameAncestors></AllowedFrameAncestors>
    <!-- autodeploy folder location, default is <UserStorageRoot>/apps -->
    <AppsPath></AppsPath>
    <!-- Settings for running code in containers (Linux only) -->
    <!-- Containers.DockerPath - location of docker executable --> 
    <!-- Containers.UseForWorkers - whether to run workers in containers or regular process --> 
    <!-- Containers.WorkerImage - name of docker image that will be used to run workers. Runtime will be mapped to it --> 
    <!-- Containers.WorkerExtraParams - additional command line to pass to docker for running worker. May contain things like CPU limits, network bindings, etc --> 
    <Containers DockerPath="" UseForWorkers="0" WorkerImage="" WorkerExtraParams="" />
    <!-- Number of ms to wait for orderly shutdown function to run -->
    <FevalTimeoutMs>5000</FevalTimeoutMs>
    <!-- Where factory configuration for this product is stored. Default is <WebAppsExePath>/resources/spfres -->
    <FactoryStorageRoot></FactoryStorageRoot>
    <!-- Logs.Path - Location for logs, default is <UserStorageRoot>/logs -->
    <!-- Logs.MaxLogSizeMB - Maximum size of individual log, before it will roll over into another file -->
    <!-- Logs.MaxTotalSizeMB - Maximum size of all logs in a directory. Logs over this size will get lost -->
    <!-- Logs.Level - one of verbose, normal, minimal -->
    <Logs Path="" MaxLogSizeMB="10" MaxTotalSizeMB="50" Level="normal" />
    <!-- Allows having multiple instances with the same version number running on different ports -->
    <InstanceName></InstanceName>
    <!-- If empty or "auto", 1 per GB of RAM -->
    <MaxWorkers></MaxWorkers>
    <!-- Time to wait before new session start failure will be issued -->
    <NewSessionTimeoutSec>60</NewSessionTimeoutSec>
    <!-- only one runtime allowed in basic version -->
    <!-- If Runtime.Path is not set, assume runtime is where webapps executable resides <WebAppsExePath> -->
    <!-- If Runtime.MaxPrewarmedWorkers is not set, assume 1/3 of MaxWorkers -->
    <Runtimes>
        <Runtime Path="" MaxPrewarmedWorkers="" />
    </Runtimes>
    <!-- HTTPS: Contains the path to the private key file used for encryption. Can be empty if no private key 
         file is used. -->
    <SecPrivateKeyFile></SecPrivateKeyFile>
    <!-- HTTPS: Contains the path to the certificate file (in PEM format). If the private key and the 
         certificate are stored in the same file, this can be empty if privateKeyFile is given. -->
    <SecCertFile></SecCertFile>
    <!-- The port for the HTTP/HTTPS traffic used by server -->
    <ServerSitePort>9988</ServerSitePort>
    <!-- Session timeout, in min. If session stops communicating to server after this period it will get terminated -->
    <SessionTimeoutMin>5</SessionTimeoutMin>
    <!-- Installation-related settings -->
    <Setup ServerAccount="" 
        ServerAccountCreated="" 
        WorkerAccount="" 
        WorkerAccountGroup="" 
        WorkerAccountCreated="" 
        AuthorsGroup=""/>
    <!-- Start in SSL mode. Default is OFF. Set to 1 to turn ON -->
    <UseSSL></UseSSL>
    <!-- Sessions to communicate over web sockets protocol (faster). Default is ON.  OFF means more compatibility. Set to 1 to turn ON -->
    <UseWebSockets></UseWebSockets>
    <!-- UserStorageRoot == where user configuration info is stored (platform-specific location of local application data that is writeable to current user) 
    On Windows, it is %LOCALAPPDATA%\MathWorks\webapps\<serverVersion> -->
    <UserStorageRoot></UserStorageRoot>
</settings>

webapps_launcher.config

<?xml version="1.0" encoding="utf-8"?>
<settings>
    <!-- Allows having multiple instances with the same version number running on different ports -->
    <InstanceName></InstanceName>
    <!-- Logs.Path - Location for logs, default is <UserStorageRoot>/logs -->
    <!-- Logs.MaxLogSizeMB - Maximum size of individual log, before it will roll over into another file -->
    <!-- Logs.MaxTotalSizeMB - Maximum size of all logs in a directory. Logs over this size will get lost -->
    <!-- Logs.Level - one of verbose, normal, minimal -->
    <Logs Path="" MaxLogSizeMB="10" MaxTotalSizeMB="50" Level="normal" />
    <!-- UserStorageRoot == where user configuration info is stored (platform-specific location of local application data that is writeable to current user) 
    On Windows, it is %LOCALAPPDATA%\MathWorks\webapps\<serverVersion> -->
    <UserStorageRoot></UserStorageRoot>
</settings>

求解决方案

看这个图片上的报错信息,可能是:
1、你先检查下webapps_launcher.config这个文件是否在D:\Program Files\MatlabRuntimelv912\binlwin64目录下。
2、可能是权限问题,重启一下,你右键点击matlab,以管理员身份运行一下。


如果以上回答对您有所帮助,点击一下采纳该答案~谢谢

Matlab App Designer 【02】APP打包和安装
可以参考下


MatlabWebApp配置时的一些问题_matlab web app_xiaoshe_1989的博客-CSDN博客 MatlabWebApp Excel COM 权限 账号 服务_matlab web app https://blog.csdn.net/u011195557/article/details/127212520

这可能是由于配置文件中的语法错误引起的,可以再次检查下,或者对比下修改之前的格式。其次,错误提示复制了两个文件,看下文件的路径格式的问题,而且错误中还提示到了无法加载用户的问题,看下用户、权限等方面的问题。

img