技术文章 - CS339610

安装后,ThingWorx Flow 登录页面无法加载,并显示“502 Bad Gateway”或“504 Gateway Timeout”错误。

已修改: 09-Feb-2026   


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

适用于

  • ThingWorx Platform 9.1 to 9.5
  • Nginx

说明

  • 无法访问 ThingWorx Flow 主页
  • ThingWorx Flow 模块已上线,但登录尝试返回502 Bad Gateway nginx
  • 在浏览器中使用F12 / 开发者工具显示,当前用户API 调用返回以下错误:
 Failed to load resource: the server responded with a status of 504 (Gateway Timeout) - HTTP 504 Gateway Timeout
  • 登录窗口不弹出
  • 使用自签名证书时,ThingWorx Flow 无法访问。
  • 在 Web 浏览器中使用F12 / 开发者工具显示fetchconfig返回状态502
  • 尝试访问登录页面时出现504 Gateway timeout
  • trigger_error-xxxx.log文件包含以下错误:
     {"module":"flow-trigger","timestamp":"YYYY-MM-DDThh:mm:ss.965Z","level":"error","message":"Error deleting from message table"} {"module":"flow-trigger","timestamp":"YYYY-MM-DDThh:mm:ss.965Z","level":"error","message":"Login failed for user &#39;<user_name>&#39;."} {"module":"flow-trigger","timestamp":"YYYY-MM-DDThh:mm:ss.965Z","level":"error","message":"Error: Login failed for user &#39;<user_name>&#39;. at Login7TokenHandler.onErrorMessage (D:\\ThingWorxFlow\\modules\\trigger\\node_modules\\tedious\\lib\\token\\handler.js:239:19) at Readable.&lt;anonymous&gt; (D:\\ThingWorxFlow\\modules\\trigger\\node_modules\\tedious\\lib\\token\\token-stream-parser.js:26:33) at Readable.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:284:9) at Readable.push (internal/streams/readable.js:223:10) at next (internal/streams/from.js:88:29) at runMicrotasks (&lt;anonymous&gt;) at processTicksAndRejections (internal/process/task_queues.js:93:5)"} {"module":"flow-trigger","timestamp":"YYYY-MM-DDThh:mm:ss.966Z","level":"error","message":"Error updating subscriptions"} {"module":"flow-trigger","timestamp":"YYYY-MM-DDThh:mm:ss.966Z","level":"error","message":"Login failed for user &#39;<user_name>&#39;."} {"module":"flow-trigger","timestamp":"YYYY-MM-DDThh:mm:ss.966Z","level":"error","message":"Error: Login failed for user &#39;<user_name>&#39;. at Login7TokenHandler.onErrorMessage (D:\\ThingWorxFlow\\modules\\trigger\\node_modules\\tedious\\lib\\token\\handler.js:239:19) at Readable.&lt;anonymous&gt; (D:\\ThingWorxFlow\\modules\\trigger\\node_modules\\tedious\\lib\\token\\token-stream-parser.js:26:33) at Readable.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:284:9) at Readable.push (internal/streams/readable.js:223:10) at next (internal/streams/from.js:88:29) at runMicrotasks (&lt;anonymous&gt;) at processTicksAndRejections (internal/process/task_queues.js:93:5)"}
  • 可以通过 Flow 的主机名和 URL 访问 ThingWorx Flow,但无法通过 ThingWorx Composer 的 URL(在ThingWorx Composer > Flow > Connector中)访问,并出现以下错误:
404 page not found error
  • “系统”&
这是文章 339610 的 PDF 版本,可能已过期。最新版本 CS339610