I am trying to install OpenZiti on Ubuntu 20.04 on my free Oracle Compute Cloud instance. The expressInstalle seems to have some difficulty at this point:
******** Setting Up Environment ********
using default ZITI_HOME: /home/ubuntu/.ziti/quickstart/alpine
ZITI HOME SET TO: /home/ubuntu/.ziti/quickstart/alpine
jq: error (at :0): Cannot iterate over null (null)
ZITI_BINARIES_VERSION: null
Downloading https://github.com/openziti/ziti/releases/download/null/ to /home/ubuntu/.ziti/quickstart/alpine/ziti-bin/
UNZIPPING /home/ubuntu/.ziti/quickstart/alpine/ziti-bin/ into: /home/ubuntu/.ziti/quickstart/alpine/ziti-bin/ziti-null
tar: /home/ubuntu/.ziti/quickstart/alpine/ziti-bin/: Cannot read: Is a directory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
mv: cannot stat ā/home/ubuntu/.ziti/quickstart/alpine/ziti-bin/zitiā: No such file or directory
Marking executables at /home/ubuntu/.ziti/quickstart/alpine/ziti-bin/ziti-null executable
chmod: cannot access ā/home/ubuntu/.ziti/quickstart/alpine/ziti-bin/ziti-null/*ā: No such file or directory
Generating new network with name: alpine
ZITI_NETWORK set to: alpine
I am open to some suggestions as I really want to get this going! Thanks much.
On Oracle cloud you made a new ubuntu 20.04, and ran the quickstart and it failed? The ācannot iterate over nullā makes me think the github check has failed.
Iāll make a new oracle cloud ubu 20.04 and give it a shot right now and see if i can replicate.
Unfortunately, it worked just fine for me. You do need to make sure the oracle web acl allows ports 8440-8443 and when I started the Ubuntu instance iptables was setup to block the ports as well. That meant I had to use iptables to open them up:
After that - things worked fine. Based on your jq error though, I expect you have hit a github rate limit from your exit IP. The quickstart will use the github api to determine the latest version of ziti to install, it does this by making a curl request and then using jq to parse that output. Seeing the ācannot iterate over nullā means something āstrangeā happened.
Since I know it worked fine for me, letās try to narrow down your particular problem. Letās run this command:
Attach your output here. This is what you should see:
ZITI_BINARIES_VERSION: v0.27.4
Using ZITI_BIN_DIR: /home/ubuntu/.ziti/quickstart/ubu-20-04/ziti-bin/ziti-v0.27.4
Downloading https://github.com/openziti/ziti/releases/download/v0.27.4/ziti-linux-amd64-0.27.4.tar.gz to /home/ubuntu/.ziti/quickstart/ubu-20-04/ziti-bin/ziti-bin/ziti-linux-amd64-0.27.4.tar.gz
UNZIPPING /home/ubuntu/.ziti/quickstart/ubu-20-04/ziti-bin/ziti-bin/ziti-linux-amd64-0.27.4.tar.gz into: /home/ubuntu/.ziti/quickstart/ubu-20-04/ziti-bin/ziti-v0.27.4
mv: cannot overwrite non-directory '/home/ubuntu/.ziti/quickstart/ubu-20-04/ziti-bin/ziti-v0.27.4/ziti' with directory '/home/ubuntu/.ziti/quickstart/ubu-20-04/ziti-bin/ziti-bin/ziti'
Marking executables at /home/ubuntu/.ziti/quickstart/ubu-20-04/ziti-bin/ziti-v0.27.4 executable
Adding /home/ubuntu/.ziti/quickstart/ubu-20-04/ziti-bin/ziti-v0.27.4 to the path if necessary:
adding /home/ubuntu/.ziti/quickstart/ubu-20-04/ziti-bin/ziti-v0.27.4 to the path
Okay, that seemed to work:
using default ZITI_HOME: /home/ubuntu/.ziti/quickstart/
ZITI_BINARIES_VERSION: v0.27.4
Downloading https://github.com/openziti/ziti/releases/download/v0.27.4/ziti-linux-amd64-0.27.4.tar.gz to /home/ubuntu/.ziti/quickstart//ziti-bin/ziti-linux-amd64-0.27.4.tar.gz
UNZIPPING /home/ubuntu/.ziti/quickstart//ziti-bin/ziti-linux-amd64-0.27.4.tar.gz into: /home/ubuntu/.ziti/quickstart//ziti-bin/ziti-v0.27.4
Marking executables at /home/ubuntu/.ziti/quickstart//ziti-bin/ziti-v0.27.4 executable
Adding /home/ubuntu/.ziti/quickstart//ziti-bin/ziti-v0.27.4 to the path if necessary:
adding /home/ubuntu/.ziti/quickstart//ziti-bin/ziti-v0.27.4 to the path
Ok. At this point, itāll be best if you exit the shell from Oracle, (log out/exit) and then ssh back there. Do that just to clear any variables set in your shell and start the quickstart fresh⦠Before running the quickstart, letās clean up everything using: rm -rf $HOME/.ziti and then start at the quickstart begginning. I also set my EXTERNAL_DNS to the external IP address (oracle doesnāt give you a DNS entry).
Itās all good - he is a very kind gentleman! Sounds like you got through that first bit, awesome. The rest should be a breeze. Iāll be around if you need more help.
BUT - it was writen before we changed from port 6262 to 8440 for control plane access. Iāll update the blog post and keep DMāin with @ablackcatstail and get them up and running