# After restart Can not command the Controller

**URL:** <https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041>\
**Category:** Uncategorized\
**Created:** [February 2, 2023, 4:26pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041 "2023-02-02T16:26:19Z")\
**Posts on this page:** 20\
**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:** [February 2, 2023, 4:26pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/1 "2023-02-02T16:26:19Z")

</div>

My VM restarted and after that I can not run the startController/startRouter command

I have sourced the environment file

---

<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:** [February 2, 2023, 4:34pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/2 "2023-02-02T16:34:14Z")

</div>

Yeah. That makes sense… Right now those functions are sourced from the `ziti-cli-functions.sh` script you used to run expressInstall.

You can do a few things here.

1. just source the latest script whenever you like (without running `expressInstall`):

2. download that script ‘as is’, place it into some known location (like next to the env file) and add the source-ing of that helper script to the existing .env file you sourced

3. you can look at what that function does and setup an alias of your own somehow, it’s not substantial. 🙂

4. Use systemd (assuming it’s available?) and setup the unit files and enable them and then on restart it’ll ‘just start up’ for you

That make sense? if not, let us know. Cheers!

---

<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:** [February 2, 2023, 4:35pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/3 "2023-02-02T16:35:48Z")

</div>

Makes perfect sense I was able to get them started as a service

---

<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:** [February 2, 2023, 4:44pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/4 "2023-02-02T16:44:36Z")

</div>

This may sound strange but the admin console comes up with no way input user and password or anything it says welcome please login to continue

This is after being moved to our lab

---

<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:** [February 2, 2023, 4:45pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/5 "2023-02-02T16:45:46Z")

</div>

@jeremy.tellier can you comment here? @cmbryner would you supply a small screen cap?

---

<div class="post-metadata">

**Author:** ![jeremy.tellier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/jeremy.tellier/32/17_2.png) [@jeremy.tellier](https://openziti.discourse.group/u/jeremy.tellier)\
**Post date:** [February 2, 2023, 4:48pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/6 "2023-02-02T16:48:45Z")

</div>

I would have to see the screen and possible open dev tools in the browser to see if anything shows in console. @cmbryner

---

<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:** [February 2, 2023, 4:49pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/7 "2023-02-02T16:49:12Z")

</div>

![Bad Screen.PNG](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/1X/8ea9c5a13e967c79a9f9811b472e18ea778ae902.jpeg)

---

<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:** [February 2, 2023, 4:50pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/8 "2023-02-02T16:50:38Z")

</div>

Wow that is strange! I’ve never seen this before. If you refresh it just keeps coming up like this? What about a private window? I’d also wonder if any errors are logged in the ziti-console window (or from journalctl -u ziti-contsole if you enabed with systemd)

---

<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:** [February 2, 2023, 4:55pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/9 "2023-02-02T16:55:08Z")

</div>

I started the console manually in debug mode as I don’t have a service file yet I will make that and give it a shot

---

<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:** [February 2, 2023, 4:55pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/10 "2023-02-02T16:55:39Z")

</div>

oh well just look at the standard out then, i’m just wondering if ZAC logged any kind of error

---

<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:** [February 2, 2023, 5:00pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/11 "2023-02-02T17:00:47Z")

</div>

I don’t see any obvious errors

---

<div class="post-metadata">

**Author:** ![jeremy.tellier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/jeremy.tellier/32/17_2.png) [@jeremy.tellier](https://openziti.discourse.group/u/jeremy.tellier)\
**Post date:** [February 2, 2023, 5:09pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/12 "2023-02-02T17:09:39Z")

</div>

Have you opened dev tools in the browser? It looks like something errors because the font does not even load.

---

<div class="post-metadata">

**Author:** ![jeremy.tellier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/jeremy.tellier/32/17_2.png) [@jeremy.tellier](https://openziti.discourse.group/u/jeremy.tellier)\
**Post date:** [February 2, 2023, 5:10pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/13 "2023-02-02T17:10:23Z")

</div>

The version is not even showing in the side bar, its as if the locale load fails somewhere.

---

<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:** [February 2, 2023, 5:14pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/14 "2023-02-02T17:14:01Z")

</div>

![Debug](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/1X/a5e4ada7e723f6478a7fb96dcea34ece87f796ab.png)

---

<div class="post-metadata">

**Author:** ![jeremy.tellier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/jeremy.tellier/32/17_2.png) [@jeremy.tellier](https://openziti.discourse.group/u/jeremy.tellier)\
**Post date:** [February 2, 2023, 5:21pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/15 "2023-02-02T17:21:31Z")

</div>

Looks like your system is not allowing outside includes or cannot reach google for jquery and fonts. Is it being blocked or is it offline?

---

<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:** [February 2, 2023, 5:21pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/16 "2023-02-02T17:21:59Z")

</div>

this is an offline lab

---

<div class="post-metadata">

**Author:** ![jeremy.tellier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/jeremy.tellier/32/17_2.png) [@jeremy.tellier](https://openziti.discourse.group/u/jeremy.tellier)\
**Post date:** [February 2, 2023, 5:24pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/17 "2023-02-02T17:24:09Z")

</div>

That would do it, let me see if I can make a release using all offline files there is a few scripts from Google and CloudFlare that ZAC relies on.

---

<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:** [February 2, 2023, 5:25pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/18 "2023-02-02T17:25:41Z")

</div>

Perfect Thank you for your help

---

<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:** [February 2, 2023, 5:27pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/19 "2023-02-02T17:27:33Z")

</div>

The controller and router seem to work perfectly offline the console was just giving some problems

---

<div class="post-metadata">

**Author:** ![jeremy.tellier](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/jeremy.tellier/32/17_2.png) [@jeremy.tellier](https://openziti.discourse.group/u/jeremy.tellier)\
**Post date:** [February 2, 2023, 5:33pm UTC](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041/20 "2023-02-02T17:33:16Z")

</div>

Yes, I include some external scripts for load speed, etc. But it makes sense that they should all be local. I will get it pushed ASAP and I will comment here when I do. Thanks!

[Next page](https://openziti.discourse.group/t/after-restart-can-not-command-the-controller/1041.md?page=2)
