技术文章 - CS271012

由于应用程序密钥不正确,无法在 ThingWorx 中创建 ThingWorx Analytics 事物

已修改: 07-Feb-2024   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • ThingWorx Analytics 8.1 to 9.5

说明

  • 安装后不会创建预期的微服务事物,例如 <prefix>-AnalyticsServer-DataThing
  • 无法访问 ThingWorx Analytics 服务器
  • 无法重新启动 ThingWorx Analytics 服务器
  • 无法通过 ThingWorx Analytics Builder 上传数据
    • TWA_Upload401.png
  • 根据场景和版本的不同,可能会出现不同的错误,如下:
  • ThingWorx Analytics Builder 中出现以下错误
    An Analytics Server is not configured. Navigate to the Settings page and configure a ThingWorx Analytics Server adapter
  • twas-twx-adapter.log文件报告
    • com.thingworx.analytics.css.platform.http.BadResponseException: HTTP [401] :
          at com.thingworx.analytics.css.platform.http.RestService.httpSubmitAsJson(RestService.java:133)
          at com.thingworx.analytics.css.platform.http.RestService.httpGetAsJson(RestService.java:36)
          at com.thingworx.analytics.css.platform.services.ThingService.getThing(ThingService.java:100)
          at com.thingworx.analytics.edge.application.AnalyticsGateway.safeGetThing(AnalyticsGateway.java:153)
          at com.thingworx.analytics.edge.application.AnalyticsGateway.safeCreateThing(AnalyticsGateway.java:135)
          at com.thingworx.analytics.edge.application.AnalyticsGateway.registerToFoundation(AnalyticsGateway.java:111)
          at com.thingworx.analytics.edge.application.AnalyticsEdgeVerticle.start(AnalyticsEdgeVerticle.java:96)

  • twas-twx-adapter.log中可能存在其他错误
    • Error registering and binding to the platform HTTP [404] : Thing Template [PredictionMicroserver] does not exist

    • ERROR c.t.c.c.e.ClientCommunicationEndpoint - Refilling connections on [endpoint 0, uri: ws://XXXX/Thingworx/WS] failed : Connection authentication/registration FAILED [code: STATUS_UNAUTHORIZED, reason: Error [context: authenticating connection][cause: Application key 'TW.AnalysisServices.ApplicationUserKey' expired!]]

  • Tomcat访问日志报告
"GET /Thingworx/Things/<AnalyticsServer Thing Name> HTTP/1.1" 401 –

  • 可能的相关错误:
com.thingworx.analytics.ccc.platform.http.BadResponseException: HTTP [401] Unauthorized: Not authorized for Read



 com.thingworx.analytics.ccc.platform.http.BadResponseException: HTTP [401] Unauthorized: Not authorized for Create



 c.t.a.e.a.AnalyticsEdgeVerticle - Failed during startup
com.thingworx.analytics.ccc.platform.http.BadResponseException: HTTP [404] : Entity Not Found : [EntityServices]
    at com.thingworx.analytics.ccc.platform.http.RestService.httpSubmitAsJson(RestService.java:133)
    at com.thingworx.analytics.ccc.platform.http.RestService.httpPostAsJson(RestService.java:50)
    at com.thingworx.analytics.ccc.platform.services.ThingService.createThing(ThingService.java:63)
    at com.thingworx.analytics.edge.application.AnalyticsGateway.safeCreateThing(AnalyticsGateway.java:117)
    at com.thingworx.analytics.edge.application.AnalyticsGateway.registerToFoundation(AnalyticsGateway.java:83)
    at com.thingworx.analytics.edge.application.AnalyticsEdgeVerticle.start(AnalyticsEdgeVerticle.java:87)
    at io.vertx.core.impl.DeploymentManager.lambda$doDeploy$10(DeploymentManager.java:481)
    at io.vertx.core.impl.ContextImpl.lambda$wrapTask$2(ContextImpl.java:344)
  • 上传数据集期间收到错误
Creating copy of Data File...
Creating copy of Configuration File...
Submitting Create Dataset request...
Dataset Create Job with jobId: 1f622740-562b-4ad7-9b55-54733c9c31c6 in progress...
Dataset Create Job with jobId: 1f622740-562b-4ad7-9b55-54733c9c31c6 failed with error:
java.io.IOException: Unable to initialize FileRepository [AnalyticsUploadStorage] Unable to initialize FileRepository [AnalyticsUploadStorage] HTTP [401] : For issues, contact Technical Support and provide the following log tag: b596067f-8ea3-47a9-a975-dac08cb523b4

这是文章 271012 的 PDF 版本,可能已过期。最新版本 CS271012