收起左侧

docker安装N8N之后,部分连接获取不到,报错DNS解析问题。

0
回复
27
查看
[ 复制链接 ]

1

主题

1

回帖

0

牛值

江湖小虾

2025-11-21 15:00:40 显示全部楼层 阅读模式

设备环境:物理机

BUG现象:docker安装N8N后,无法配置deepseek的凭据,后台日志显示。

出现频率:必现

联系方式:飞牛私有云421群,小D

日志文件:

http://localhost:5678

The DNS server returned an error, perhaps the server is offline

The DNS server returned an error, perhaps the server is offline

ValidationError: The 'X-Forwarded-For' header is set but the Express 'trust proxy' setting is false (default). This could indicate a misconfiguration which would prevent express-rate-limit from accurately identifying users. See https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/ for more information.

at Object.xForwardedForHeader (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/express-rate-limit@7.5.0_express@5.1.0/node_modules/express-rate-limit/dist/index.cjs:187:13)

at Object.wrappedValidations.<com**d> [as xForwardedForHeader] (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/express-rate-limit@7.5.0_express@5.1.0/node_modules/express-rate-limit/dist/index.cjs:398:22)

at Object.keyGenerator (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/express-rate-limit@7.5.0_express@5.1.0/node_modules/express-rate-limit/dist/index.cjs:671:20)

at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/express-rate-limit@7.5.0_express@5.1.0/node_modules/express-rate-limit/dist/index.cjs:724:32

at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/express-rate-limit@7.5.0_express@5.1.0/node_modules/express-rate-limit/dist/index.cjs:704:5 {

code: 'ERR_ERL_UNEXPECTED_X_FORWARDED_FOR',

help: 'https://express-rate-limit.github.io/ERR_ERL_UNEXPECTED_X_FORWARDED_FOR/'

}

附件过大无法上传可以通过飞牛外链分享或者百度网盘提供日志文件

下图是我NAS系统的DNS展示,192.168.1.1是我光猫的IP。

image.png

不知道是我哪一块没有处理好,还是DNS网络配置的问题。

收藏
送赞
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则