技术文章 - CS339610
安装后,ThingWorx Flow 登录页面无法加载,并显示“502 Bad Gateway”或“504 Gateway Timeout”错误。
已修改: 09-Feb-2026
适用于
- 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 '<user_name>'."} {"module":"flow-trigger","timestamp":"YYYY-MM-DDThh:mm:ss.965Z","level":"error","message":"Error: Login failed for user '<user_name>'. at Login7TokenHandler.onErrorMessage (D:\\ThingWorxFlow\\modules\\trigger\\node_modules\\tedious\\lib\\token\\handler.js:239:19) at Readable.<anonymous> (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 (<anonymous>) 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 '<user_name>'."} {"module":"flow-trigger","timestamp":"YYYY-MM-DDThh:mm:ss.966Z","level":"error","message":"Error: Login failed for user '<user_name>'. at Login7TokenHandler.onErrorMessage (D:\\ThingWorxFlow\\modules\\trigger\\node_modules\\tedious\\lib\\token\\handler.js:239:19) at Readable.<anonymous> (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 (<anonymous>) 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