# Reinstalling the Quickstart program

**URL:** <https://openziti.discourse.group/t/reinstalling-the-quickstart-program/350>\
**Category:** Building/Development\
**Created:** [March 31, 2022, 10:14am UTC](https://openziti.discourse.group/t/reinstalling-the-quickstart-program/350 "2022-03-31T10:14:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [March 31, 2022, 10:14am UTC](https://openziti.discourse.group/t/reinstalling-the-quickstart-program/350/1 "2022-03-31T10:14:25Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [March 31, 2022, 10:20am UTC](https://openziti.discourse.group/t/reinstalling-the-quickstart-program/350/2 "2022-03-31T10:20:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [March 31, 2022, 10:31am UTC](https://openziti.discourse.group/t/reinstalling-the-quickstart-program/350/3 "2022-03-31T10:31:56Z")

</div>

I think a reboot fixed it

---

<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:** [March 31, 2022, 10:36am UTC](https://openziti.discourse.group/t/reinstalling-the-quickstart-program/350/4 "2022-03-31T10:36:02Z")

</div>

For what it’s worth, USUALLY doing this is a recipe for troubles 🙂 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:

```auto
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

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [March 31, 2022, 10:39am UTC](https://openziti.discourse.group/t/reinstalling-the-quickstart-program/350/5 "2022-03-31T10:39:53Z")

</div>

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 🙂

---

<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:** [March 31, 2022, 10:46am UTC](https://openziti.discourse.group/t/reinstalling-the-quickstart-program/350/6 "2022-03-31T10:46:56Z")

</div>

> [@markamind](#):
>
> This is very helpful as it saves me from rebuilding the entire server 🙂

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

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [March 31, 2022, 10:48am UTC](https://openziti.discourse.group/t/reinstalling-the-quickstart-program/350/7 "2022-03-31T10:48:33Z")

</div>

> [@TheLumberjack](#):
>
> stopAllEdgeRouters && stopZitiController

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 🙂

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [March 31, 2022, 10:48am UTC](https://openziti.discourse.group/t/reinstalling-the-quickstart-program/350/8 "2022-03-31T10:48:59Z")

</div>

Now I have 4 min to enrol the controller and router
