情景
|
解决方案
|
---|---|
验证 ThingWorx Flow 的连通性
|
|
如果 ThingWorx Flow 服务器 URL 不可访问或返回错误代码 502 或 504
|
完成重新配置 ThingWorx Flow 设置参数中的步骤。
|
如果无法从 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 Foundation 和 ThingWorx Flow 主机能否使用 DNS 名称或主机名相互访问。
|
如果引擎中的工作流执行突然停止
|
在进行任何更改之前,请先检查您的软件:
• 为操作系统上的服务设置介于 5000 和 65535 之间的临时端口。
有关临时端口及其范围的信息,请参阅 The Ephemeral Port Range。
• 将套接字上的 TIME_WAIT 降低为 30 秒。
有关详细信息,请参阅 Windows: Time Wait setting 或 Linux: Time Wait setting。
|
如果已更新 ThingWorx Flow 数据库管理员的密码
|
您也必须在 ThingWorx Flow 中更新此密码。要执行此操作,请完成更新 ThingWorx Flow 数据库管理员密码中的步骤。
|
如果要更新 RabbitMQ 密码
|
完成更新 RabbitMQ 加密密码中的步骤。
|
如果运行 ThingWorx Flow 安装程序的用户的密码已更改
|
必须重新启动 ThingWorx Flow。为此,请完成以下步骤。
Windows
1. 停止 ThingWorx-Flow 服务。
2. 右键单击 ThingWorxFlow 安装文件夹,并向 NETWORK SERVICE 组提供所有权限。
3. 在 Windows“服务”中,右键单击 ThingWorx-Flow 服务,然后选择“属性”。选择 Log On 选项卡,对于 Network Service 帐户,请更新密码。
4. 启动 ThingWorx-Flow 服务。
5. 如果 ThingWorx-Foundation 服务使用相同用户,则重复相同的步骤。
Linux
1. 重新启动 ThingWorx-Flow 服务。
2. 如果 ThingWorx-Foundation 服务使用相同用户,则重新启动 ThingWorx-Foundation 服务。
|
如果在 ThingWorx Flow 之前安装 ThingWorx Analytics,则无法运行 ThingWorx Flow
|
这可能是因为 ThingWorx Analytics 和 ThingWorx Flow 的 RabbitMQ 服务正在侦听同一默认端口。如果是这种情况,则必须重新配置 ThingWorx Flow 的 RabbitMQ 端口,以侦听其他端口,而非默认端口。
|
安装后,如果 ThingWorx Flow 未加载并显示错误代码 502
|
• 在安装期间,如果使用 HTTP_PROXY 或 HTTPS_PROXY 连接到 Internet,则 dump.pm2 将拾取此设置并将其添加到环境变量中。
在这种情况下,请删除 dump.pm2 文件和环境变量中的 HTTP_PROXY 和 HTTPS_PROXY 设置。
有关详细信息,请参阅成功安装 ThingWorx Flow 后,尝试访问登录页面失败并出现“504 Gateway timeout”或“502 Bad Gateway nginx”错误 以及 ThingWorx Flow 的新安装挂起在 ThingWorx 徽标上,F12/开发者工具显示 currentUser 调用返回“502:错误网关”或“504:网关超时”。
• 验证用于 Foundation 与 Flow 之间通信的端口未在服务器或防火墙级别被阻止。所使用的端口可在 platform-settings.json、vhost-flow.conf、nginx.conf 和 deployment.config 文件中找到。
如果 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.conf 和 deployment.config 文件中提及的 URL 和端口是否正确。(请在更改前备份文件)
• 如果您使用的是商业证书,或者您在证书中进行了任何更改,请按照文章为 ThingWorx Flow 配置 SSL 中的步骤进行操作。
有关详细信息,请参阅从 Flow 访问时 ThingWorx Composer 没有响应
|
如果在配置 CA 签名证书后登录 ThingWorx Flow 成功,但 ThingWorx 无法连接到 ThingWorx Flow
|
Java keystore (cacerts) 可能缺少 CA 根证书和中间证书。有关详细信息,请参阅为 ThingWorx Flow 配置 SSL中的“注解”部分。
|
如果 ThingWorx Flow 因 Invalid column name "id" 错误未能为 MSSQL 数据库创建行。
|
ThingWorx Flow 假定 MSSQL 表格默认将 id 列作为主键。如果 id 列不是主键:
• 则将 id 用作主键。
或
• 请勿将 id 用作列名称。
|
错误代码
|
错误消息
|
---|---|
[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.
|