Hey, I have these exact problems when using the expressInstall script and it doesn't matter if I'm using my domain "ziti.redacted.com" or my ip adress "1.2.3.4"
I'm setting this up on aws lightsail, where there is a public (the "1.2.3.4") and a private ip ("172.26.4.246"), maybe it has something to do with this.
"curl -s eth0.me" gives me the public ip though, so i thought i should be fine.
"ip-172-26-4-246" is the name of my virtual machine.
EXTERNAL_DNS:ziti.redacted.com
EXTERNAL_IP:1.2.3.4
ZITI_CTRL_EDGE_IP_OVERRIDE:1.2.3.4
ZITI_ROUTER_IP_OVERRIDE:1.2.3.4
ZITI_CTRL_EDGE_ADVERTISED_ADDRES: ZITI_ROUTER_ADVERTISED_ADDRESS:ziti.redacted.com
ZITI_CTRL_ADVERTISED_PORT:8440
ZITI_CTRL_EDGE_ADVERTISED_PORT:8441
ZITI_ROUTER_PORT:8442
******** Setting Up Edge Router ********
RESTY 2024/02/07 08:19:11 ERROR Get "https://ziti.redacted.com:8441/edge/client/v1/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 1
RESTY 2024/02/07 08:19:11 ERROR Get "https://ziti.redacted.com:8441/edge/client/v1/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 2
RESTY 2024/02/07 08:19:11 ERROR Get "https://ziti.redacted.com:8441/edge/client/v1/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 3
RESTY 2024/02/07 08:19:12 ERROR Get "https://ziti.redacted.com:8441/edge/client/v1/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 4
RESTY 2024/02/07 08:19:12 ERROR Get "https://ziti.redacted.com:8441/edge/client/v1/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 5
RESTY 2024/02/07 08:19:13 ERROR Get "https://ziti.redacted.com:8441/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 1
RESTY 2024/02/07 08:19:13 ERROR Get "https://ziti.redacted.com:8441/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 2
RESTY 2024/02/07 08:19:14 ERROR Get "https://ziti.redacted.com:8441/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 3
RESTY 2024/02/07 08:19:14 ERROR Get "https://ziti.redacted.com:8441/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 4
RESTY 2024/02/07 08:19:15 ERROR Get "https://ziti.redacted.com:8441/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 5
RESTY 2024/02/07 08:19:16 ERROR Post "https://ziti.redacted.com:8441/authenticate?method=password": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 1
RESTY 2024/02/07 08:19:16 ERROR Post "https://ziti.redacted.com:8441/authenticate?method=password": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 2
RESTY 2024/02/07 08:19:16 ERROR Post "https://ziti.redacted.com:8441/authenticate?method=password": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 3
RESTY 2024/02/07 08:19:16 ERROR Post "https://ziti.redacted.com:8441/authenticate?method=password": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 4
RESTY 2024/02/07 08:19:17 ERROR Post "https://ziti.redacted.com:8441/authenticate?method=password": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 5
error: unable to authenticate to https://ziti.redacted.com:8441. Error: Post "https://ziti.redacted.com:8441/authenticate?method=password": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com
[1]+ Exit 2 "${ZITI_BIN_DIR-}/ziti" controller run "${ZITI_HOME}/${ZITI_CTRL_NAME}.yaml" &> "${log_file}" 2>&1
---------- Creating an edge router policy allowing all identities to connect to routers with a #public attribute
RESTY 2024/02/07 08:19:18 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies?filter=id+%3D+%22allEdgeRouters%22+or+name%3D%22allEdgeRouters%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 1
RESTY 2024/02/07 08:19:18 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies?filter=id+%3D+%22allEdgeRouters%22+or+name%3D%22allEdgeRouters%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 2
RESTY 2024/02/07 08:19:18 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies?filter=id+%3D+%22allEdgeRouters%22+or+name%3D%22allEdgeRouters%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 3
RESTY 2024/02/07 08:19:18 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies?filter=id+%3D+%22allEdgeRouters%22+or+name%3D%22allEdgeRouters%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 4
RESTY 2024/02/07 08:19:19 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies?filter=id+%3D+%22allEdgeRouters%22+or+name%3D%22allEdgeRouters%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 5
error: unable to list entities at https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies?filter=id+%3D+%22allEdgeRouters%22+or+name%3D%22allEdgeRouters%22 in Ziti Controller at https://ip-172-26-4-246:1280/edge/management/v1. Error: Get "https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies?filter=id+%3D+%22allEdgeRouters%22+or+name%3D%22allEdgeRouters%22": dial tcp 172.26.4.246:1280: connect: connection refused
RESTY 2024/02/07 08:19:20 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 1
RESTY 2024/02/07 08:19:20 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 2
RESTY 2024/02/07 08:19:20 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 3
RESTY 2024/02/07 08:19:20 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 4
RESTY 2024/02/07 08:19:21 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 5
error: unable to create edge-router-policies instance in Ziti Edge Controller at https://ip-172-26-4-246:1280/edge/management/v1. Error: Post "https://ip-172-26-4-246:1280/edge/management/v1/edge-router-policies": dial tcp 172.26.4.246:1280: connect: connection refused
---------- Creating a service edge router policy allowing all services to use #public edge routers
RESTY 2024/02/07 08:19:22 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies?filter=id+%3D+%22allSvcAllRouters%22+or+name%3D%22allSvcAllRouters%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 1
RESTY 2024/02/07 08:19:22 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies?filter=id+%3D+%22allSvcAllRouters%22+or+name%3D%22allSvcAllRouters%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 2
RESTY 2024/02/07 08:19:22 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies?filter=id+%3D+%22allSvcAllRouters%22+or+name%3D%22allSvcAllRouters%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 3
RESTY 2024/02/07 08:19:22 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies?filter=id+%3D+%22allSvcAllRouters%22+or+name%3D%22allSvcAllRouters%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 4
RESTY 2024/02/07 08:19:23 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies?filter=id+%3D+%22allSvcAllRouters%22+or+name%3D%22allSvcAllRouters%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 5
error: unable to list entities at https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies?filter=id+%3D+%22allSvcAllRouters%22+or+name%3D%22allSvcAllRouters%22 in Ziti Controller at https://ip-172-26-4-246:1280/edge/management/v1. Error: Get "https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies?filter=id+%3D+%22allSvcAllRouters%22+or+name%3D%22allSvcAllRouters%22": dial tcp 172.26.4.246:1280: connect: connection refused
RESTY 2024/02/07 08:19:24 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 1
RESTY 2024/02/07 08:19:24 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 2
RESTY 2024/02/07 08:19:24 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 3
RESTY 2024/02/07 08:19:24 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 4
RESTY 2024/02/07 08:19:25 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 5
error: unable to create service-edge-router-policies instance in Ziti Edge Controller at https://ip-172-26-4-246:1280/edge/management/v1. Error: Post "https://ip-172-26-4-246:1280/edge/management/v1/service-edge-router-policies": dial tcp 172.26.4.246:1280: connect: connection refused
USING ZITI_ROUTER_NAME: ip-172-26-4-246-edge-router
RESTY 2024/02/07 08:19:26 ERROR Get "https://ziti.redacted.com:8441/edge/client/v1/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 1
RESTY 2024/02/07 08:19:26 ERROR Get "https://ziti.redacted.com:8441/edge/client/v1/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 2
RESTY 2024/02/07 08:19:26 ERROR Get "https://ziti.redacted.com:8441/edge/client/v1/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 3
RESTY 2024/02/07 08:19:27 ERROR Get "https://ziti.redacted.com:8441/edge/client/v1/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 4
RESTY 2024/02/07 08:19:27 ERROR Get "https://ziti.redacted.com:8441/edge/client/v1/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 5
RESTY 2024/02/07 08:19:29 ERROR Get "https://ziti.redacted.com:8441/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 1
RESTY 2024/02/07 08:19:29 ERROR Get "https://ziti.redacted.com:8441/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 2
RESTY 2024/02/07 08:19:29 ERROR Get "https://ziti.redacted.com:8441/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 3
RESTY 2024/02/07 08:19:29 ERROR Get "https://ziti.redacted.com:8441/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 4
RESTY 2024/02/07 08:19:30 ERROR Get "https://ziti.redacted.com:8441/version": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 5
RESTY 2024/02/07 08:19:31 ERROR Post "https://ziti.redacted.com:8441/authenticate?method=password": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 1
RESTY 2024/02/07 08:19:31 ERROR Post "https://ziti.redacted.com:8441/authenticate?method=password": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 2
RESTY 2024/02/07 08:19:31 ERROR Post "https://ziti.redacted.com:8441/authenticate?method=password": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 3
RESTY 2024/02/07 08:19:32 ERROR Post "https://ziti.redacted.com:8441/authenticate?method=password": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 4
RESTY 2024/02/07 08:19:32 ERROR Post "https://ziti.redacted.com:8441/authenticate?method=password": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com, Attempt 5
error: unable to authenticate to https://ziti.redacted.com:8441. Error: Post "https://ziti.redacted.com:8441/authenticate?method=password": tls: failed to verify certificate: x509: certificate is valid for ip-172-26-4-246, localhost, not ziti.redacted.com
RESTY 2024/02/07 08:19:34 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/edge-routers?filter=id+%3D+%22ip-172-26-4-246-edge-router%22+or+name%3D%22ip-172-26-4-246-edge-router%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 1
RESTY 2024/02/07 08:19:34 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/edge-routers?filter=id+%3D+%22ip-172-26-4-246-edge-router%22+or+name%3D%22ip-172-26-4-246-edge-router%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 2
RESTY 2024/02/07 08:19:34 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/edge-routers?filter=id+%3D+%22ip-172-26-4-246-edge-router%22+or+name%3D%22ip-172-26-4-246-edge-router%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 3
RESTY 2024/02/07 08:19:34 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/edge-routers?filter=id+%3D+%22ip-172-26-4-246-edge-router%22+or+name%3D%22ip-172-26-4-246-edge-router%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 4
RESTY 2024/02/07 08:19:35 ERROR Get "https://ip-172-26-4-246:1280/edge/management/v1/edge-routers?filter=id+%3D+%22ip-172-26-4-246-edge-router%22+or+name%3D%22ip-172-26-4-246-edge-router%22": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 5
error: unable to list entities at https://ip-172-26-4-246:1280/edge/management/v1/edge-routers?filter=id+%3D+%22ip-172-26-4-246-edge-router%22+or+name%3D%22ip-172-26-4-246-edge-router%22 in Ziti Controller at https://ip-172-26-4-246:1280/edge/management/v1. Error: Get "https://ip-172-26-4-246:1280/edge/management/v1/edge-routers?filter=id+%3D+%22ip-172-26-4-246-edge-router%22+or+name%3D%22ip-172-26-4-246-edge-router%22": dial tcp 172.26.4.246:1280: connect: connection refused
RESTY 2024/02/07 08:19:36 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/edge-routers": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 1
RESTY 2024/02/07 08:19:36 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/edge-routers": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 2
RESTY 2024/02/07 08:19:36 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/edge-routers": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 3
RESTY 2024/02/07 08:19:37 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/edge-routers": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 4
RESTY 2024/02/07 08:19:37 ERROR Post "https://ip-172-26-4-246:1280/edge/management/v1/edge-routers": dial tcp 172.26.4.246:1280: connect: connection refused, Attempt 5
error: unable to create edge-routers instance in Ziti Edge Controller at https://ip-172-26-4-246:1280/edge/management/v1. Error: Post "https://ip-172-26-4-246:1280/edge/management/v1/edge-routers": dial tcp 172.26.4.246:1280: connect: connection refused
public router configuration file written to: /home/ubuntu/.ziti/quickstart/ip-172-26-4-246/ip-172-26-4-246-edge-router.yaml
--- There was an error during router enrollment, check the logs at /home/ubuntu/.ziti/quickstart/ip-172-26-4-246/ip-172-26-4-246-edge-router.enrollment.log ---