# Ziti-router connection issue with controller

**URL:** <https://openziti.discourse.group/t/ziti-router-connection-issue-with-controller/2452>\
**Category:** Uncategorized\
**Created:** [April 20, 2024, 11:24pm UTC](https://openziti.discourse.group/t/ziti-router-connection-issue-with-controller/2452 "2024-04-20T23:24:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ss\_vinoth22](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@ss\_vinoth22](https://openziti.discourse.group/u/ss_vinoth22)\
**Post date:** [April 20, 2024, 11:24pm UTC](https://openziti.discourse.group/t/ziti-router-connection-issue-with-controller/2452/1 "2024-04-20T23:24:20Z")

</div>

I'm currently setting up OpenZiti on Google Kubernetes Engine (GKE) and have successfully installed the Controller and Router. I've also configured ingress for both, allowing access through port 443. I can create identities and the tunneler is functioning perfectly when installed alone on any instance.

However, I'm encountering an issue when setting up a router with a tunneler on a GCP Compute instance using the following commands:

```auto
sudo ./ziti_router_auto_enroll --controller controller.test.ai --controllerMgmtPort 443 --controllerFabricPort 443 --autoTunnelListener --adminUser admin --adminPassword password --routerName pub-er-test-3

```

After executing the commands, I receive errors in the `journalctl` and `systemctl` logs. Here's the relevant output showing the process and the error:

```auto
> Service ziti-router.service stop successful.
> Removing previous binaries
> Writing jwt file: pub-er-test-4_enrollment.jwt
> Version not specified, going to check with controller
> Found version 0.34.1
> Downloading file: https://github.com/openziti/ziti/releases/download/v0.34.1/ziti-linux-amd64-0.34.1.tar.gz
> Downloading: 100%
> Successfully downloaded file
> Starting binary install
> Installing service unit file
> Service ziti-router daemon-reload successful.
> Creating config file
> Starting Router Enrollment
> Successfully enrolled Ziti
> Starting Debian DNS setup
> Service systemd-networkd restart successful.
> Service systemd-resolved restart successful.
> Service ziti-router.service start successful.
> Service ziti-router.service enable successful

```

The error message in the logs reads:

```auto
Apr 20 23:20:41 test-dns-openziti.asia-northeast1-a.c.aly-development.internal ziti-router[77989]: {"endpoint":"tls:controller.test.ai:443","error":"error connecting ctrl (remote error: tls: internal error)",">

```

Ports 443 and 54 are confirmed open via telnet:

```auto
> telnet controller.test.ai 443
> Trying 35.243.77.2...
> Connected to controller.test.ai.
> Escape character is '^]'.

```

Could someone help me resolve this issue?

---

<div class="post-metadata">

**Author:** ![emoscardini](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/emoscardini/32/753_2.png) [@emoscardini](https://openziti.discourse.group/u/emoscardini)\
**Post date:** [April 22, 2024, 3:09pm UTC](https://openziti.discourse.group/t/ziti-router-connection-issue-with-controller/2452/2 "2024-04-22T15:09:05Z")

</div>

Hi @ss_vinoth22,

It looks like the registration was successful so it's strange that it's not able to connect.

Instead of telnet, can you please do a curl of the controller like this:

```auto
curl -vk https://controller.test.ai/version

```

The command should return a json body from the controller with all the apiVersions available.

---

<div class="post-metadata">

**Author:** ![ss\_vinoth22](https://avatars.discourse-cdn.com/v4/letter/s/ecccb3/32.png) [@ss\_vinoth22](https://openziti.discourse.group/u/ss_vinoth22)\
**Post date:** [April 23, 2024, 2:08am UTC](https://openziti.discourse.group/t/ziti-router-connection-issue-with-controller/2452/3 "2024-04-23T02:08:10Z")

</div>

Thanks for your reply, I have fixed it; my bad, I didn't have the ingress for the controller to reach from outside. After creating ingress and DNS entries for controller and router, issue has fixed.
