I’m trying out OpenZiti as a replacement for ZeroTier. I was able to successfully install the tunneler on my Ubuntu desktop. On the pi, I got the tunneler installed and enrolled. It won’t maintain a connection to the edge router however. I get the following messages:
pi@raspberrypi:~ $ sudo ./ziti-edge-tunnel run --identity-dir /opt/openziti/etc/identities --verbose 4
(18519)[ 0.000] INFO ziti-sdk:utils.c:173 ziti_log_set_level() set log level: root=4/DEBUG
(18519)[ 0.000] INFO ziti-edge-tunnel:instance-config.c:86 load_tunnel_status_from_file() Loading config file from /var/lib/ziti/config.json
(18519)[ 0.000] INFO ziti-sdk:utils.c:173 ziti_log_set_level() set log level: root=3/INFO
(18519)[ 0.000] INFO tunnel-sdk:ziti_tunnel.c:60 create_tunneler_ctx() Ziti Tunneler SDK (v0.20.22)
(18519)[ 0.000] INFO tunnel-cbs:ziti_dns.c:171 seed_dns() DNS configured with range 100.64.0.0 - 100.127.255.255 (4194302 ips)
(18519)[ 0.000] INFO ziti-edge-tunnel:ziti-edge-tunnel.c:1599 run_tunneler_loop() Loading identity files from /opt/openziti/etc/identities
(18519)[ 0.000] INFO ziti-edge-tunnel:ziti-edge-tunnel.c:1093 load_identities() loading identity file: raspi1.json
(18519)[ 0.060] INFO ziti-edge-tunnel:resolvers.c:67 init_libsystemd() Initializing libsystemd
(18519)[ 0.060] INFO tunnel-cbs:ziti_tunnel_ctrl.c:864 load_ziti_async() attempting to load ziti instance from file[/opt/openziti/etc/identities/raspi1.json]
(18519)[ 0.060] INFO tunnel-cbs:ziti_tunnel_ctrl.c:871 load_ziti_async() loading ziti instance from /opt/openziti/etc/identities/raspi1.json
(18519)[ 0.060] INFO ziti-sdk:utils.c:173 ziti_log_set_level() set log level: root=3/INFO
(18519)[ 0.060] INFO ziti-edge-tunnel:ziti-edge-tunnel.c:1108 load_id_cb() identity[/opt/openziti/etc/identities/raspi1.json] loaded
(18519)[ 0.071] INFO ziti-sdk:ziti.c:426 ziti_init_async() ztx[0] Ziti C SDK version 0.31.2 @c74ab09(HEAD) starting at (2023-03-16T05:21:13.024)
(18519)[ 0.071] INFO ziti-sdk:ziti.c:428 ziti_init_async() ztx[0] using tlsuv[<unknown>], tls[mbed TLS 3.2.1]
(18519)[ 0.071] WARN ziti-edge-tunnel:resolvers.c:351 try_libsystemd_resolver() libsystemd resolver unsuccessful. Falling back to legacy resolvers
(18519)[ 0.071] INFO ziti-sdk:ziti.c:429 ziti_init_async() ztx[0] Loading ziti context with controller[https://1cbcdfd4-c7ac-4be9-8f2e-1075845c774c.production.netfoundry.io:443]
(18519)[ 0.071] INFO ziti-sdk:ziti_ctrl.c:409 ziti_ctrl_init() ctrl[1cbcdfd4-c7ac-4be9-8f2e-1075845c774c.production.netfoundry.io] ziti controller client initialized
(18519)[ 0.071] INFO ziti-sdk:ziti.c:866 ziti_re_auth_with_cb() ztx[0] starting to re-auth with ctlr[https://1cbcdfd4-c7ac-4be9-8f2e-1075845c774c.production.netfoundry.io:443] api_session_status[0] api_session_expired[TRUE]
(18519)[ 2.166] INFO ziti-sdk:ziti.c:1532 version_cb() ztx[0] connected to controller https://1cbcdfd4-c7ac-4be9-8f2e-1075845c774c.production.netfoundry.io:443 version v0.27.5(3d9801e73809 2023-02-13T21:49:17Z)
(18519)[ 2.834] INFO ziti-sdk:ziti.c:1422 ziti_set_api_session() ztx[0] api session set, setting api_session_timer to 1740s
(18519)[ 2.834] INFO tunnel-cbs:ziti_tunnel_ctrl.c:726 on_ziti_event() ziti_ctx[raspi1] connected to controller
(18519)[ 2.834] INFO ziti-edge-tunnel:ziti-edge-tunnel.c:1138 on_event() ztx[/opt/openziti/etc/identities/raspi1.json] context event : status is OK
(18519)[ 7.920] INFO ziti-sdk:posture.c:204 ziti_send_posture_data() ztx[0] first run or potential controller restart detected
(18519)[ 10.766] INFO ziti-sdk:channel.c:234 new_ziti_channel() ch[0] (OCI us-ashburn-1 Edge Router 1@tls://91c54d8a-0e63-43aa-9273-140312049c5f.production.netfoundry.io:443) new channel for ztx[0] identity[raspi1]
(18519)[ 10.766] INFO tunnel-cbs:ziti_tunnel_ctrl.c:797 on_ziti_event() ztx[raspi1] added edge router OCI us-ashburn-1 Edge Router 1@tls://91c54d8a-0e63-43aa-9273-140312049c5f.production.netfoundry.io:443@91c54d8a-0e63-43aa-9273-140312049c5f.production.netfoundry.io
(18519)[ 10.766] INFO ziti-sdk:channel.c:733 reconnect_channel() ch[0] reconnecting NOW
(18519)[ 18.789] INFO ziti-sdk:channel.c:822 on_channel_data() ch[0] channel was closed [-4095/end of file]
(18519)[ 18.789] ERROR ziti-sdk:channel.c:623 hello_reply_cb() ch[0] failed to receive Hello response due to -20(Connection to edge router terminated)
(18519)[ 18.789] INFO tunnel-cbs:ziti_tunnel_ctrl.c:810 on_ziti_event() ztx[raspi1] router OCI us-ashburn-1 Edge Router 1@tls://91c54d8a-0e63-43aa-9273-140312049c5f.production.netfoundry.io:443 is unavailable
(18519)[ 18.789] INFO ziti-sdk:channel.c:730 reconnect_channel() ch[0] reconnecting in 58478344 ms (attempt = 2359)
(18519)[ 18.789] INFO ziti-sdk:channel.c:730 reconnect_channel() ch[0] reconnecting in 5841396 ms (attempt = 734)
(18519)[ 19.052] INFO tunnel-cbs:ziti_tunnel_cbs.c:418 new_ziti_intercept() creating intercept for service[Sample_Service] with ziti-tunneler-client.v1 = {"hostname":"sample.tools.netfoundry.io","port":443}
(18519)[ 19.052] INFO tunnel-cbs:ziti_dns.c:296 new_ipv4_entry() registered DNS entry sample.tools.netfoundry.io -> 100.64.0.3
(18519)[ 19.052] INFO tunnel-cbs:ziti_tunnel_ctrl.c:686 on_service() starting intercepting for service[Sample_Service]
(18519)[ 19.052] INFO ziti-edge-tunnel:ziti-edge-tunnel.c:1263 on_event() =============== service event (added) - Sample_Service:4jX8C7IMKzoUzdMKFuMGYx ===============
(18519)[ 19.052] INFO ziti-edge-tunnel:tun.c:174 tun_commit_routes() starting 2 route updates
(18519)[ 19.062] INFO ziti-edge-tunnel:tun.c:118 route_updates_done() route updates[2]: 0/OK
(18519)[ 19.794] INFO ziti-sdk:ziti.c:1422 ziti_set_api_session() ztx[0] api session set, setting api_session_timer to 1740
I’ve no idea how to troubleshoot this, so any help would be appreciated.