I’ve set up OpenZiti like so: How to for self hosting behind NAT? - #20 by ZerotrustExplorer
After working for a bit in the ZAC to figure out how to add services, I setup a service for a vm running nginx in default mode, then jellyfin, both working perfectly.
Some time later I lost connection to the ZAC, unreachable from the client running the ziti tunneler on windows.
nginx and jellyfin are accessible.
windows client, service log is showing:
[2025-10-30T15:02:48.537Z] ERROR ziti-sdk:connect.c:1068 connect_reply_cb() conn[2.350/6so7MLlF/Connecting](secure-apis) failed to connect, reason=invalid session
[2025-10-30T15:02:48.537Z] ERROR tunnel-cbs:ziti_tunnel_cbs.c:103 on_ziti_connect() ziti dial failed: connection is closed
bit of fast scrolling edge router container:
[ 535.814] INFO ziti/router/xgress_edge.(*hostedServiceRegistry).Remove: {reason=[invalid session] terminatorId=[5ImZ7TnJciGyHGfu9BktOM]} terminator removed from router set
[ 538.246] INFO ziti/router/xgress_edge.(*edgeClientConn).processBindV2 [ch{edge}->u{classic}->i{ziti-sdk-c[0]@zititest/PB36}]: {terminatorId=[3RMILZLKwgO4sLjg2YkMkx] connId=[1] type=[EdgeBindType] apiSessionToken=[map[apiSessionId:cmhciom3y000r0b9g1kbwhewb certFingerprints:[e286670ecb8496d2e1dde2d61598e384e70c9941] identityId:eBQaOXuEDm tokenId:gR2u8Q465CKiUwlScrWi1Jno1FA type:legacyProtobuf]] listenerId=[2G=��ˤN�2�����q����������c���] routerId=[.B7V21VKp8] edgeSeq=[0] serviceSessionToken=[map[apiSessionId:cmhciom3y000r0b9g1kbwhewb identityId:eBQaOXuEDm serviceId:43goV7ylfrfVLQAsiuGvko tokenId:cmhdkex2n00kd0b9g0def68j1 type:JWT]] chSeq=[228] bindConnId=[1]} establishing terminator
[ 538.246] INFO ziti/router/xgress_edge.(*hostedServiceRegistry).evaluateEstablishQueue: {serviceSessionTokenId=[cmhdkex2n00kd0b9g0def68j1] terminatorId=[3RMILZLKwgO4sLjg2YkMkx] state=[establishing]} queuing terminator to send create
[ 538.246] INFO ziti/router/xgress_edge.(*hostedServiceRegistry).establishTerminator: {apiSessionToken=[map[apiSessionId:cmhciom3y000r0b9g1kbwhewb certFingerprints:[e286670ecb8496d2e1dde2d61598e384e70c9941] identityId:eBQaOXuEDm tokenId:gR2u8Q465CKiUwlScrWi1Jno1FA type:legacyProtobuf]] terminatorId=[3RMILZLKwgO4sLjg2YkMkx] serviceSessionToken=[map[apiSessionId:cmhciom3y000r0b9g1kbwhewb identityId:eBQaOXuEDm serviceId:43goV7ylfrfVLQAsiuGvko tokenId:cmhdkex2n00kd0b9g0def68j1 type:JWT]] routerId=[.B7V21VKp8]} sending create terminator v2 request
[ 538.248] INFO ziti/router/xgress_edge.(*hostedServiceRegistry).Remove: {terminatorId=[3RMILZLKwgO4sLjg2YkMkx] reason=[invalid session]} terminator removed from router set
controller:
[ 563.060] ERROR ziti/controller/handler_edge_ctrl.(*baseSessionRequestContext).loadFromBolt: {operation=[create.terminator] error=[invalid session]} invalid session
[ 563.061] ERROR ziti/controller/handler_edge_ctrl.(*createTerminatorV2Handler).returnError [ch{.B7V21VKp8}->u{classic}->i{.B7V21VKp8/bm5b}]: {terminatorId=[798gHpwQQNLN99En4q9PnR] error=[invalid session] routerId=[.B7V21VKp8]} responded with error
[ 563.150] ERROR ziti/controller/handler_edge_ctrl.(*baseSessionRequestContext).loadFromBolt: {operation=[create.terminator] error=[invalid session]} invalid session
[ 563.150] ERROR ziti/controller/handler_edge_ctrl.(*createTerminatorV2Handler).returnError [ch{.B7V21VKp8}->u{classic}->i{.B7V21VKp8/bm5b}]: {terminatorId=[3ee47m7pxOeNDdd0JN0JpL] error=[invalid session] routerId=[.B7V21VKp8]} responded with error
Things tried:
- restarting the ziti tunneler on windows client
- restarting the OpenZiti containers and VM running the OpenZiti edge router and controller containers
Appears resolved after:
- disable my identity in Windows OpenZiti client
- stop service by ‘Tap to disconnect’ in OpenZiti Client
- press ‘Tap to Connect’, then enabling the identity.