安裝與組態 > ThingWorx 組態資源 > 授權疑難排解
授權疑難排解
從 FNO 擷取授權
您可以啟用偵錯記錄,來疑難排解從授權伺服器擷取授權檔案發生的問題。如果要對 Active Directory 驗證問題進行疑難排解,僅建議啟用記錄偵錯。這些訊息會記錄到應用程式記錄檔中,啟用之後,可能會導致記錄檔湧入大量訊息。
欲啟用偵錯記錄,請使用 ThingworxPlatform 目錄中的標準 logback.xml 檔案。如果 logback.xml 檔案存在於此位置,您可以將授權記錄器新增至現有的該組記錄器。
<configuration>
<logger name="com.thingworx.system.subsystems.licensing.LicenseFetcher" level="DEBUG"/>
</configuration>
* 
logback.xml 功能是 Java 標準。如需有關配置這些檔案的指示,請參閱 Java 文件集。
下列記錄器封裝相關資訊可協助調查 ThingWorx Platform 與授權伺服器之間連線的相關問題。
封裝
com.thingworx.system.subsystems.licensing.LicenseFetcher
項目
<logger name="com.thingworx.system.subsystems.licensing" level="DEBUG"/>
Description
啟用偵錯後,將顯示在應用程式記錄檔中的範例記錄如下:
1) 無效的授權伺服器 URL:
[L: ERROR] [O: c.t.s.s.l.LicensingStateMachine] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Unable to retrieve license from FNO server because invalid.ptc.com: Name or service not known
2) 無效授權認證:
[L: DEBUG] [O: c.t.s.s.l.LicenseFetcher] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Failed authenticating to license server
[L: INFO] [O: c.t.s.s.l.LicenseFetcher] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Unable to retrieve License capabilities from license server
3) 有效授權認證:
[L: DEBUG] [O: c.t.s.s.l.LicenseFetcher] [I: ] [U: SuperUser] [S: ] [T: localhost-startStop-1] Successfully authenticated to license Server