# Ui as root fails after flow modification (Balena)

**URL:** <https://discourse.nodered.org/t/ui-as-root-fails-after-flow-modification-balena/52507>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [21 October 2021 12:25 UTC](https://discourse.nodered.org/t/ui-as-root-fails-after-flow-modification-balena/52507 "2021-10-21T12:25:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Razio](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/razio/32/52407_2.png) [@Razio](https://discourse.nodered.org/u/Razio)\
**Post date:** [21 October 2021 12:25 UTC](https://discourse.nodered.org/t/ui-as-root-fails-after-flow-modification-balena/52507/1 "2021-10-21T12:25:41Z")

</div>

Hi,

A topic that probably passed here several times and I don't seem to be able to find a solution.  
I am running node red as a service container in balenaOS. I would like to set the dachboard-ui as root.  
I manage to accomplish that by setting the following in settings.js:  
httpAdminRoot: '/admin',  
ui: { path: "/" },

The problem ocures when I perform a deploy for whatever change (as small as moving a node a little bit) I do. At that moment the root gives me "Cannot GET /".  
If I push the modified flows to my fleet, everything works fine again. To have to push every change to the fleet, instead of just modifying on the device itself is time consuming to say the least.

Am I missing something important here?

Thanks in advance.

Node red v2.0.6  
Node.js v12.22.6

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mpous/32/50000_2.png) [@mpous](https://discourse.nodered.org/u/mpous)\
**Post date:** [21 October 2021 13:59 UTC](https://discourse.nodered.org/t/ui-as-root-fails-after-flow-modification-balena/52507/2 "2021-10-21T13:59:38Z")

</div>

Hello, i'm using `adminAuth` instead of `httpAdminRoot` but maybe that doesn't work for you.

What nodeRED are you using on balena?

---

<div class="post-metadata">

**Author:** ![Razio](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/razio/32/52407_2.png) [@Razio](https://discourse.nodered.org/u/Razio)\
**Post date:** [21 October 2021 14:04 UTC](https://discourse.nodered.org/t/ui-as-root-fails-after-flow-modification-balena/52507/3 "2021-10-21T14:04:13Z")

</div>

What exactly do mean with "What nodeRED..."? version of node-red or.. ?  
I'll have a closer look at adminAuth.

---

<div class="post-metadata">

**Author:** ![Razio](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/razio/32/52407_2.png) [@Razio](https://discourse.nodered.org/u/Razio)\
**Post date:** [21 October 2021 14:09 UTC](https://discourse.nodered.org/t/ui-as-root-fails-after-flow-modification-balena/52507/4 "2021-10-21T14:09:54Z")

</div>

I am using the adminAuth to provide a user with password to have full access. default user only read access. At first sight, I don't really see anything in the documentation that refers to the ui- or ui-editor path... unless I missed it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 November 2021 14:09 UTC](https://discourse.nodered.org/t/ui-as-root-fails-after-flow-modification-balena/52507/5 "2021-11-20T14:09:56Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
