Ziti Offline Install Error Initializing Controller

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

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:

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 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... :slight_smile:

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

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

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

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