ThingWorx Flow > 安裝與組態 > 安裝 ThingWorx Flow > 對安裝進行疑難排解
對安裝進行疑難排解
可以使用記錄檔對安裝進行疑難排解。記錄檔會儲存到下列位置:
ThingWorx Flow 安裝或升級記錄檔
<ThingWorx_Flow_Install_Location>\installer\logs\
ThingWorx Flow 執行記錄檔
<ThingWorx_Flow_Install_Location>\.pm2\logs\
RabbitMQ 記錄檔
Windows:<ThingWorx_Flow_Install_Location>\modules\RabbitMQ\log
Linux:/var/log/rabbitmq
NGinx 記錄檔
Windows:C:\Program Files\nginx-<版本>\logs
Linux:/var/log/nginx
ThingWorx Foundationlogs
<ThingWorx_Foundation_Install_Location>\ThingworxStorage\logs\
中止或失敗記錄
<system_temp_directory>/ThingWorxFlow_Failed_installs/
範例:/tmp/ThingWorxFlow_Failed_installs/
解除安裝記錄檔
<system_temp_directory>/bitrock_installer_<pid>.log
記錄檔名稱都有 bitrock 前綴。
例如:/tmp/bitrock_installer_3008.log
情境
解決方案
欲驗證 ThingWorx Flow 連線
如果 ThingWorx Flow 伺服器 URL 不可存取或傳回錯誤代碼 502 或 504
如果無法從 ThingWorx Flow 虛擬機器存取 ThingWorx Foundation 主機
1. 導覽至 <ThingWorx_Flow_Install_Location>\modules\RabbitMQ\log 資料夾下的 RabbitMQ 記錄檔。
2. 開啟記錄檔並檢查下面一行內容是否在記錄檔中:
user 'flowuser' authenticated and granted access to vhost 'orchestration'
3. 如果該行不存在,請執行下列操作:
檢查 ThingWorx Foundation 虛擬機器上的防火牆連線。
請確保在兩個主機上均可存取 RabbitMQ 埠。
檢查 ThingWorx FoundationThingWorx Flow 主機是否可以使用 DNS 名稱或主機名稱彼此存取。
如果引擎中的流程執行突然停止
在進行任何變更之前,請先審核軟體:
在您的作業系統上為服務設定 5000 與 65535 之間的暫時埠。
如需有關暫時埠及其範圍的資訊,請參閱暫時埠範圍
將通訊端的 TIME_WAIT 減少到 30 秒。
如需詳細資訊,請參閱 Windows:時間等待設定Linux:時間等待設定
如果您已更新 ThingWorx Flow 資料庫管理員的密碼
您必須在 ThingWorx Flow 中更新相同的密碼。欲執行此操作,請完成更新 ThingWorx Flow 資料庫管理員密碼中的步驟。
如果您要更新 RabbitMQ 密碼
完成更新 RabbitMQ 加密密碼中的步驟。
如果執行 ThingWorx Flow 安裝程式之使用者密碼已變更
您必須重新啟動 ThingWorx Flow。欲執行此操作,請完成下列步驟:
Windows
1. 停止 ThingWorx-Flow 服務。
2. ThingWorxFlow 安裝資料夾上按一下滑鼠右鍵,並並將所有權限提供給 NETWORK SERVICE 群組。
3. 在 Windows「服務」中,於 ThingWorx-Flow 服務上按一下滑鼠右鍵,然後選取「內容」。選取「登入」標籤,然後針對 Network Service 帳戶更新密碼。
4. 啟動 ThingWorx-Flow 服務。
5. 如果 ThingWorx-Foundation 服務使用相同的使用者,請重複相同程序。
Linux
1. 重新啟動 ThingWorx-Flow 服務。
2. 如果 ThingWorx-Foundation 服務使用相同的使用者,請重新啟動 ThingWorx-Foundation 服務。
無法在 ThingWorx Flow 之前安裝 ThingWorx Analytics 的情況下執行 ThingWorx Flow
這可能是由於 ThingWorx AnalyticsThingWorx Flow 的 RabbitMQ 服務均接聽相同的預設埠所導致。如果是這種情況,則必須重新配置 ThingWorx Flow 的RabbitMQ 埠以接聽除預設埠以外的其他埠
安裝之後,如果 ThingWorx Flow 未載入並顯示錯誤代碼 502
安裝期間,如果 HTTP_PROXY 或 HTTPS_PROXY 用來連線至網際網路,則此設定會由 dump.pm2 挑選並新增至環境變數。
在此情況下,請刪除 dump.pm2 檔案與環境變數中的 HTTP_PROXY 與 HTTPS_PROXY 設定。
確認用於 foundation 與 flow 之間通訊的連接埠在伺服器或防火牆層級未遭到封鎖。在 platform-settings.json、vhost-flow.conf、nginx.conf 與部署組態檔案中找到了使用中的連接埠。
如果 nginx 記錄檔中記錄了下列錯誤訊息,則表示與 443 類似的連接埠遭到其他應用程式封鎖。當您嘗試在單一電腦上安裝多個應用程式時,會發生此情況。例如,Foundation、Flow、Windchill 等。
2021/11/30 15:42:15 [emerg] 47544#47116: bind() to 0.0.0.0:443 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
檢查 vhost-flow.confdeployment.config 檔案中所提及的 URL 與連接埠是否正確。(在變更前備份檔案)
如果您使用的是商業憑證,或已在憑證中進行了任何變更,請遵循 Configuring SSL for ThingWorx Flow 文章中的步驟。
如果在配置 CA 簽署的憑證後成功登入 ThingWorx Flow,但 ThingWorx 無法連線至 ThingWorx Flow
Java KeyStore (cacerts) 可能會遺失 CA 的根憑證和中間憑證。如需詳細資訊,請參閱 Configuring SSL for ThingWorx Flow 中的 Notes 部份
如果 ThingWorx Flow 無法為 MSSQL 資料庫建立列,並發生錯誤 Invalid column name "id"
ThingWorx Flow 會假設 MSSQL 表格預設將 id 欄作為主索引鍵。如果 id 欄不是主索引鍵:
使用 id 作為主索引鍵。
OR
請勿使用 id 作為欄名稱。
ThingWorxThingWorx Flow 服務之間存在連線問題時,會顯示下列錯誤代碼與訊息。
錯誤代碼
錯誤訊息
[FLOW-CONFIG-01]
ThingWorx Flow is not enabled.Add the OrchestrationSettings section to the platform-settings.json file to enable ThingWorx Flow.
[FLOW-RABBIT-01]
Failed to connect to RabbitMQ.Check whether the RabbitMQ service is running and is accessible.
[FLOW-API-01]
Failed to connect to ThingWorx Flow.Check ThingWorx logs for more detail.
[FLOW-API-02]
Failed to connect to ThingWorx Flow.Ensure that you are accessing an Nginx-hosted ThingWorx instance.ThingWorx Flow is not supported on a Tomcat-hosted ThingWorx.Ensure that all ThingWorx Flow services are running and are healthy.In case of self-signed certificate, make sure that correct CN is provided.
[FLOW-KEY-01]
OAuth admin key not found in the ThingWorx KeyStore.
[FLOW-KEY-02]
Exchange admin key not found in the ThingWorx KeyStore.
[FLOW-KEY-03]
Failed to get ThingWorx Flow keys from the ThingWorx KeyStore.
[FLOW-KEY-04]
Failed to get ThingWorx Flow keys from the ThingWorx KeyStore.
[FLOW-EXCHANGE-01]
Failed to connect to ThingWorx Flow exchange service.Check ThingWorx logs for more details.
[FLOW-EXCHANGE-02]
Failed to connect to ThingWorx Flow exchange service.Check whether ThingWorx Flow exchange service is up and running.
[FLOW-OAUTH-01]
Failed to connect to ThingWorx Flow OAuth service.Check ThingWorx logs for more details.
[FLOW-OAUTH-02]
Failed to connect to ThingWorx Flow OAuth service.Check whether ThingWorx Flow OAuth service is up and running.
這是否有幫助?