Traefik持续重启报错:无法识别的'field not found, node: [0]'错误
问题排查与解决
核心问题:EntryPoint重定向配置格式错误
报错command traefik error: field not found, node: [0]的直接原因是traefik.yml中entryPoint重定向的配置语法错误,你将单个配置对象写成了数组格式,Traefik无法解析这种结构。
错误配置(traefik.yml中)
entryPoints: http: address: :80 http: redirections: entryPoint: - to: https - scheme: https - permanent: true
修正后的正确配置
将entryPoint下的数组格式改为单个对象:
entryPoints: http: address: :80 http: redirections: entryPoint: to: https scheme: https permanent: true
验证步骤
- 保存修正后的traefik.yml
- 重启Traefik容器:
docker compose restart traefik - 查看日志确认是否正常启动:
docker compose logs traefik
补充说明
Traefik 2.x中,entryPoint类型的重定向配置是单个对象,而非数组。数组格式仅适用于redirectRegex这类支持多规则的重定向场景。你的配置中把三个属性拆分成了数组元素,导致Traefik解析时无法识别字段,从而抛出field not found错误。
内容的提问来源于stack exchange,提问作者Romain
相关产品推荐
相关产品推荐

