# Ziti Offline Install Error Initializing Controller

**URL:** <https://openziti.discourse.group/t/ziti-offline-install-error-initializing-controller/2467>\
**Category:** Support\
**Created:** [April 25, 2024, 12:53pm UTC](https://openziti.discourse.group/t/ziti-offline-install-error-initializing-controller/2467 "2024-04-25T12:53:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmbryner](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@cmbryner](https://openziti.discourse.group/u/cmbryner)\
**Post date:** [April 25, 2024, 12:53pm UTC](https://openziti.discourse.group/t/ziti-offline-install-error-initializing-controller/2467/1 "2024-04-25T12:53:37Z")

</div>

Started a new offline install of Ziti 1.0

OS Configuration:

- RHEL 8.9
- DISA STIGed Complaint server no GUI

Ziti Files

- ziti-linux-amd64-1.0.0.tar.gz

Steps Followed:

1. Pre-Req:  
Install the following RPMs.  
• Jq & onigurama.
2. Retrieve the IP address of the Machine you are installing Ziti onto
3. Move the Local Install files to the VM
4. Create a Ziti\_quick\_start directory  
Command: mkdir ziti\_quick\_start
5. Copy the following files into the directory you just created  
Files  
• ziti-cli-functions.sh  
• ziti-linux-amd64-1.0.0.tar.gz  
Command : cp ziti-cli-functions.sh /Path/ ziti\_quick\_start  
Command: cp ziti-linux-amd64-1.0.0.tar.gz /Path/ ziti\_quick\_start
6. Navigate to the Ziti Directory you created  
Command: cd /path/ziti\_quick\_start
7. Run the source and unset commands  
Command: source ziti-cli-functions.sh && unsetZitiEnv  
Command: unset EXTERNAL\_DNS  
8.Run the Following to Setup your Environment Variables Pre Install  
Command: export EXTERNAL\_IP="_ip of the machine_"

# Remainder of assignments.

export ZITI\_EDGE\_CONTROLLER\_IP\_OVERRIDE="${EXTERNAL\_IP}"  
export ZITI\_ROUTER\_IP\_OVERRIDE="${EXTERNAL\_IP}"  
export ZITI\_CTRL\_EDGE\_ADVERTISED\_ADDRESS="${EXTERNAL\_DNS}"  
export ZITI\_ROUTER\_ADVERTISED\_ADDRESS="${EXTERNAL\_DNS}"  
export ZITI\_CTRL\_ADVERTISED\_PORT=8440  
export ZITI\_CTRL\_EDGE\_ADVERTISED\_PORT=8441  
export ZITI\_ROUTER\_PORT=8442  
export ZITI\_HOME=/opt/ziti\_v1.0

# Customization to ziti-cli-functions. declare -A PRIVATE\_OVERRIDE

PRIVATE\_OVERRIDE[SET]="TRUE"  
PRIVATE\_OVERRIDE[ZITI\_BINARIES\_FILE]="ziti-linux-amd64-1.0.0.tar.gz"  
PRIVATE\_OVERRIDE[ZITI\_BINARIES\_VERSION]="v1.0.0"

1. Source the ziti-cli script and run the express install

Command: source ziti-cli-functions.sh && expressInstall

Error Received:  
bash /opt/ziti-bin/ziti-/ziti no file or directory

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [April 25, 2024, 1:23pm UTC](https://openziti.discourse.group/t/ziti-offline-install-error-initializing-controller/2467/2 "2024-04-25T13:23:24Z")

</div>

> [@cmbryner](#):
>
> bash /opt/ziti-bin/ziti-/ziti no file or directory

Looks to me that the ziti binary isn't in the expected location. The easiest thing to do is to find it using "find". Something like this will eventually find it, assuming it's on the disk somewhere:

```auto
sudo find / -name ziti

```

You might be able to just look in `/opt` (instead of `/`) since I see `ZITI_HOME=/opt/ziti_v1.0`

if you look at the [ziti-cli-functions.sh](https://get.openziti.io/quick/ziti-cli-functions.sh) source, you'll see things like `_set_ziti_bin_dir` and whereever `ziti` is used, it SHOULD be used like this: `"${ZITI_BIN_DIR-}/ziti"`...

If you simply make sure `$ZITI_BIN_DIR` contains the `ziti` executable, it should work, but it's hard to say with certainty exactly what's wrong where as you're doing this entirely offline... 🙂

EDIT:  
as an example, here's what my aws quickstart returns (after i source the resultant .env):

```auto
echo "${ZITI_BIN_DIR-}/ziti"
/home/ubuntu/.ziti/quickstart/ip-172-31-47-200/ziti-bin/ziti-v1.0.0/ziti

```

that file _must_ exist

---

<div class="post-metadata">

**Author:** ![cmbryner](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@cmbryner](https://openziti.discourse.group/u/cmbryner)\
**Post date:** [April 25, 2024, 1:32pm UTC](https://openziti.discourse.group/t/ziti-offline-install-error-initializing-controller/2467/3 "2024-04-25T13:32:27Z")

</div>

I looked at the file path and it seems odd instead of

/root/.ziti/quickstart/ip/ziti-bin/ziti-v1.0.0

it terminates to /root/.ziti/quickstart/ip/ziti-bin/ziti-

the ziti binary is not found if I search for it

---

<div class="post-metadata">

**Author:** ![cmbryner](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@cmbryner](https://openziti.discourse.group/u/cmbryner)\
**Post date:** [April 25, 2024, 1:48pm UTC](https://openziti.discourse.group/t/ziti-offline-install-error-initializing-controller/2467/4 "2024-04-25T13:48:49Z")

</div>

Think I fixed it looks to be something with our STIGed image not allow execution from the path, created links in /var and looks to have started service file fails but one thing at a time
