Reinstalling the Quickstart program

To get back to a clear base, I need to reinstall the Quickstart program.

I attempted this by renaming the .ziti folder to .ziti_old

When I reran the Quickstart program it created a new .ziti folder but then I started to get some errors.

I could list them.. but they dont really make much sense.. and probably are the result of something else..

error: unable to authentiate to........ 0. Error: Post "......./authenticate?method=password": x509: certificate signed by unknown authority

Maybe these errors are happening because I have not opened up the ports yet.. I wanted to do it like this to see what happens.. and then open them at the last step. This is because I have two locations I need to make these changes.. #1 in the server firewall and #2 in a virtual cloud network.

Any tips on how to debug.. or to do a clean reset?

I found this in one of the log files.

panic: listen tcp 0.0.0.0:6262: bind: address already in use

Ahh… does this mean I need to do more than just rename the .ziti folder

I think a reboot fixed it

For what it’s worth, USUALLY doing this is a recipe for troubles :slight_smile: When you do this your edge router(s), your tunnellers, sdk clients etc… They all lose their trust because you remove the full PKI.

That’s perfectly fine - but I’ve seen it cause chatter. A better/easier way I’ve adopted after watching what one of our engineers does is to simply issue ziti deletes like:

ziti edge delete service-policies where true
ziti edge delete services where true
ziti edge delete configs where true

Or whatever the entities are you’re trying to clean up. This right here will remove all your services but not identities which is almost always what I want to do.

If you’re getting that panic - it means you didn’t stop the ziti controller. you can either source the ziti-cli-functions and run stopAllEdgeRouters && stopZitiController or if you setup systemd you need to run systemctl stop ziti-controller && systemctl stop ziti-router or just killall ziti-controller ziti-router

looks like you have ziti running still

1 Like

Ahh… makes sense… awesome…

I find the best way to learn is to break everything… I then restart back to a clean base and work up to the next step.

This is very helpful as it saves me from rebuilding the entire server :slight_smile:

but think of how good you'll be at rebuilding the server if you keep doing that? :smiley:

1 Like

Something I just found out.. if you rerun the quickstart program.. it cleans up everything for you ..

--- It looks like you've run an express install in this shell already. ---
Would you like to clear existing Ziti variables and continue (y/N)? y

Nice work :slight_smile:

1 Like

Now I have 4 min to enrol the controller and router