Guys, I keep getting these errors:
Apr 16 18:59:14 ip-12-0-3-156 ziti[4914]: {"_context":"tls:0.0.0.0:1280","file":"github.com/openziti/channel/v3@v3.0.39/classic_listener.go:219","func":"github.com/openziti/channel/v3.(*classicListener).acceptConnection.func1","level":"error","msg":"connection handler error for [tls:11.0.1.197:38400] (unknown/unenrolled router, routerId: rgiKRdK.i)","time":"2025-04-16T18:59:14.341Z"}
Apr 16 18:59:14 ip-12-0-3-156 ziti[4914]: {"_context":"tls:0.0.0.0:1280","file":"github.com/openziti/channel/v3@v3.0.39/classic_listener.go:199","func":"github.com/openziti/channel/v3.(*classicListener).acceptConnection.func1.1","level":"error","msg":"could not clear connection deadline for [tls:11.0.1.197:38400] (set tcp 12.0.3.156:1280: use of closed network connection)","time":"2025-04-16T18:59:14.341Z"}
Apr 16 18:59:16 ip-12-0-3-156 ziti[4914]: {"file":"github.com/openziti/ziti/controller/handler_ctrl/connect.go:116","func":"github.com/openziti/ziti/controller/handler_ctrl.(*ConnectHandler).HandleConnection","level":"error","msg":"unknown/unenrolled router","routerId":"rgiKRdK.i","time":"2025-04-16T18:59:16.899Z"}
Apr 16 18:59:16 ip-12-0-3-156 ziti[4914]: {"_context":"tls:0.0.0.0:1280","file":"github.com/openziti/channel/v3@v3.0.39/classic_listener.go:219","func":"github.com/openziti/channel/v3.(*classicListener).acceptConnection.func1","level":"error","msg":"connection handler error for [tls:11.0.1.197:38402] (unknown/unenrolled router, routerId: rgiKRdK.i)","time":"2025-04-16T18:59:16.899Z"}
Apr 16 18:59:16 ip-12-0-3-156 ziti[4914]: {"_context":"tls:0.0.0.0:1280","file":"github.com/openziti/channel/v3@v3.0.39/classic_listener.go:199","func":"github.com/openziti/channel/v3.(*classicListener).acceptConnection.func1.1","level":"error","msg":"could not clear connection deadline for [tls:11.0.1.197:38402] (set tcp 12.0.3.156:1280: use of closed network connection)","time":"2025-04-16T18:59:16.899Z"}
Apr 16 18:59:25 ip-12-0-3-156 ziti[4914]: {"file":"github.com/openziti/ziti/controller/handler_ctrl/connect.go:116","func":"github.com/openziti/ziti/controller/handler_ctrl.(*ConnectHandler).HandleConnection","level":"error","msg":"unknown/unenrolled router","routerId":"rgiKRdK.i","time":"2025-04-16T18:59:25.932Z"}
Apr 16 18:59:25 ip-12-0-3-156 ziti[4914]: {"_context":"tls:0.0.0.0:1280","file":"github.com/openziti/channel/v3@v3.0.39/classic_listener.go:219","func":"github.com/openziti/channel/v3.(*classicListener).acceptConnection.func1","level":"error","msg":"connection handler error for [tls:11.0.1.197:48882] (unknown/unenrolled router, routerId: rgiKRdK.i)","time":"2025-04-16T18:59:25.932Z"}
Apr 16 18:59:25 ip-12-0-3-156 ziti[4914]: {"_context":"tls:0.0.0.0:1280","file":"github.com/openziti/channel/v3@v3.0.39/classic_listener.go:199","func":"github.com/openziti/channel/v3.(*classicListener).acceptConnection.func1.1","level":"error","msg":"could not clear connection deadline for [tls:11.0.1.197:48882] (set tcp 12.0.3.156:1280: use of closed network connection)","time":"2025-04-16T18:59:25.932Z"}
Apr 16 18:59:35 ip-12-0-3-156 ziti[4914]: {"file":"github.com/openziti/ziti/controller/handler_ctrl/connect.go:116","func":"github.com/openziti/ziti/controller/handler_ctrl.(*ConnectHandler).HandleConnection","level":"error","msg":"unknown/unenrolled router","routerId":"rgiKRdK.i","time":"2025-04-16T18:59:35.874Z"}
Apr 16 18:59:35 ip-12-0-3-156 ziti[4914]: {"_context":"tls:0.0.0.0:1280","file":"github.com/openziti/channel/v3@v3.0.39/classic_listener.go:219","func":"github.com/openziti/channel/v3.(*classicListener).acceptConnection.func1","level":"error","msg":"connection handler error for [tls:11.0.1.197:38384] (unknown/unenrolled router, routerId: rgiKRdK.i)","time":"2025-04-16T18:59:35.874Z"}
Apr 16 18:59:35 ip-12-0-3-156 ziti[4914]: {"_context":"tls:0.0.0.0:1280","file":"github.com/openziti/channel/v3@v3.0.39/classic_listener.go:199","func":"github.com/openziti/channel/v3.(*classicListener).acceptConnection.func1.1","level":"error","msg":"could not clear connection deadline for [tls:11.0.1.197:38384] (set tcp 12.0.3.156:1280: use of closed network connection)","time":"2025-04-16T18:59:35.875Z"}
Right now I have two controllers and two routers. Had to run ziti agent cluster init admin
in both controllers because I got that error that the cluster wasn't initialized in the second controller.
Do I need to enroll all routers to all controllers manually? And also, do I really need to init the admin in both controllers?
The controllers can see each other:
If it helps, this is the config.yml for one of them:
cluster:
dataDir: ./data/ctrl
db: ./ziti.db
identity:
cert: ./certs/server.chain.pem
key: ./keys/server.key
ca: ./certs/stagingctrl.chain.pem
ctrl:
listener: tls:0.0.0.0:1280
options:
advertiseAddress: tls:ec2-52-73-128-149.compute-1.amazonaws.com:1280
edge:
api:
address: "ec2-52-73-128-149.compute-1.amazonaws.com:1280"
enrollment:
signingCert:
cert: ./certs/stagingctrl.cert
key: ./keys/stagingctrl.key
edgeIdentity:
duration: 5m
edgeRouter:
duration: 5m
web:
- name: all-apis-localhost
bindPoints:
- interface: 0.0.0.0:1280
address: "ec2-52-73-128-149.compute-1.amazonaws.com:1280"
options:
minTLSVersion: TLS1.2
maxTLSVersion: TLS1.3
apis:
- binding: health-checks
- binding: fabric
- binding: edge-management
- binding: edge-client
- binding: edge-oidc
- binding: zac
options:
location: /opt/openziti/share/console
indexFile: index.html