# Cannot open node-red-dashboard after migration from pi3 to pi4: 404 not found

**URL:** <https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316>\
**Category:** Dashboard\
**Tags:** node-red-dashboard, home-assistant\
**Created:** [14 September 2023 15:21 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316 "2023-09-14T15:21:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![guenter-ms](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/guenter-ms/32/38372_2.png) [@guenter-ms](https://discourse.nodered.org/u/guenter-ms)\
**Post date:** [14 September 2023 15:21 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/1 "2023-09-14T15:21:11Z")

</div>

Hi,  
after migration from pi3 to pi4 everything works fine but the dashboard button in the editor opens a new tab in the chrome or safari browser and shows [http://192.168.178.111:8123/endpoint/ui](http://192.168.178.111:8123/endpoint/ui) with response 404: not found. So no dashboard is shown.

For a test, I deleted flows.json to get an empty editor, then created a ui button, but same result: 404

Any idea?

![Bildschirmfoto 2023-09-14 um 17.10.49](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/3/03bd2438c48efa316302ad3854021fa818af89f6.jpeg)

 ![Bildschirmfoto 2023-09-14 um 17.12.47](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/5/15cd38e1ebfbab04c6ba527ad07eb96779ef5ba4.jpeg)

 ![Bildschirmfoto 2023-09-14 um 17.16.43](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/977b8fd66a15760beca866217a934606bb4f98d5.jpeg)

 ![Bildschirmfoto 2023-09-14 um 17.17.09](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/0/007e1acc9447f246b73647ed7bda91df446bb037.jpeg)

 ![Bildschirmfoto 2023-09-14 um 17.17.31](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/e/de282fa013333c7bfec512e3a7c43b0a77541632.jpeg)

 ![Bildschirmfoto 2023-09-14 um 17.17.59](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/5/d5c3e54df643ef71a8d3ba18c97b1b9fd4bb854c.jpeg)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [14 September 2023 16:30 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/2 "2023-09-14T16:30:26Z")

</div>

Well, for starters, you seem to be running Home Assistant so not sure if that is having an impact. You've not shared the Node-RED startup log so we can't see all your settings. But the URL you shared has an extra level in it, `/endpoint/` Not clear if that comes from Node-RED's settings or HA.

---

<div class="post-metadata">

**Author:** ![guenter-ms](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/guenter-ms/32/38372_2.png) [@guenter-ms](https://discourse.nodered.org/u/guenter-ms)\
**Post date:** [14 September 2023 18:01 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/3 "2023-09-14T18:01:09Z")

</div>

Thank you, and I have further informations:

The logentry shows an appended message: _ignored due to local copy_

 ![Bildschirmfoto 2023-09-14 um 17.17.31](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/e/de282fa013333c7bfec512e3a7c43b0a77541632.jpeg)

On another production system this message is not in the log. Maybe that's there is the problem with a local copy of somewhat?

On that (identical) production system clicking the dashboard icon opens a tab with this URL: [http://192.168.178.96:1880/endpoint/ui/#!/0?socketid=cFazA-wUDLv9ROIJAAAB](http://192.168.178.96:1880/endpoint/ui/#!/0?socketid=cFazA-wUDLv9ROIJAAAB) and showing the dashboard.

The 404 not found message obviously occurs when NR tries to build the rest of the URL following /endpoint/ui/.....

Thanks for help!

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [14 September 2023 19:24 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/4 "2023-09-14T19:24:07Z")

</div>

> [@guenter-ms](#):
>
> The 404 not found message obviously occurs when NR tries to build the rest of the URL following /endpoint/ui/.....

No, I don't think that's right. Everything after the `/ui` is not real. You can see that on a working system by looking at the network tab of your browser's dev tools.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/5/e52dcdad95eea1054f6610b1174d63a5af82ef9e.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/9/6951b50de38da9ddac1edbfb86b8aa18fd525156.png)

The `/#!/0` is generated in the browser internally by AngularJS's front-end router.

So check the network tab and see whether `ui/` is loading - I don't believe it is.

---

<div class="post-metadata">

**Author:** ![guenter-ms](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/guenter-ms/32/38372_2.png) [@guenter-ms](https://discourse.nodered.org/u/guenter-ms)\
**Post date:** [15 September 2023 08:54 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/5 "2023-09-15T08:54:42Z")

</div>

I activated the developer tools in chrome browser and saw this:

 ![Bildschirmfoto 2023-09-15 um 10.47.18](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/b/eb705ff56d1d5f80d4cbba49ea100b5f528b9f4d.jpeg)

Maybe I have to look at another place (can you give me a hint?)

Now I tried to append the /#!/0 manually to the url in the browser [http://192.168.178.111:1880/endpoint/ui/#!/0](http://192.168.178.111:1880/endpoint/ui/#!/0)  
and then it works!! So I guess that the dashboard button in the NR editor should send the complete URL!?

 ![Bildschirmfoto 2023-09-15 um 10.51.19](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/9/391127cde36507de7f0af94f0ece435d4a04f2ca.jpeg)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 September 2023 09:19 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/6 "2023-09-15T09:19:07Z")

</div>

There you are using port 1880, the one that failed showed a different port.

---

<div class="post-metadata">

**Author:** ![guenter-ms](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/guenter-ms/32/38372_2.png) [@guenter-ms](https://discourse.nodered.org/u/guenter-ms)\
**Post date:** [15 September 2023 16:14 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/7 "2023-09-15T16:14:49Z")

</div>

That is interesting!! It runs with port 1880 and [http://192.168.178.111:1880/endpoint/ui](http://192.168.178.111:1880/endpoint/ui)

So what's the reason for calling port 8123 which is Homeassistant? And how can I change that?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [15 September 2023 16:37 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/8 "2023-09-15T16:37:41Z")

</div>

What port do you use for access to the editor?

---

<div class="post-metadata">

**Author:** ![guenter-ms](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/guenter-ms/32/38372_2.png) [@guenter-ms](https://discourse.nodered.org/u/guenter-ms)\
**Post date:** [15 September 2023 17:36 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/9 "2023-09-15T17:36:59Z")

</div>

I use [http://192.168.178.111:8123/a0d7b954\_nodered/ingress](http://192.168.178.111:8123/a0d7b954_nodered/ingress). NR is embedded in Homeassistant frame.

Same on my working reference system (different IP)

 ![Bildschirmfoto 2023-09-15 um 19.33.56](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/1/f170f646bc8e1297b7aa480cdbe9e6ad909507b4.jpeg)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [15 September 2023 18:28 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/10 "2023-09-15T18:28:58Z")

</div>

> [@guenter-ms](#):
>
> So what's the reason for calling port 8123 which is Homeassistant? And how can I change that?

I'm afraid that is a Home Assistant question.

The Node-RED question is whether or not the Editor shows port 8123 in a previous version and if not, what has changed? Can you check that?

---

<div class="post-metadata">

**Author:** ![guenter-ms](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/guenter-ms/32/38372_2.png) [@guenter-ms](https://discourse.nodered.org/u/guenter-ms)\
**Post date:** [16 September 2023 12:46 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/11 "2023-09-16T12:46:55Z")

</div>

![Bildschirmfoto 2023-09-16 um 14.44.28](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/2/920f6fafaffc25a869ea96809a5d3b002160445c.jpeg)

I tried to find out, but the only thing I found is the lolentry concerning this ignored message:

 ![Bildschirmfoto 2023-09-14 um 17.17.31](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/e/de282fa013333c7bfec512e3a7c43b0a77541632.jpeg)

Any idea what that means?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 September 2023 15:54 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/12 "2023-09-16T15:54:02Z")

</div>

> [@guenter-ms](#):
>
> I tried to find out, but the only thing I found is the lolentry concerning this ignored message:

Well, you said the link worked with previous versions - do you have a previous version to try?

> [@guenter-ms](#):
>
> Any idea what that means?

Afraid not but I'm not a Dashboard expert.

---

<div class="post-metadata">

**Author:** ![bobcroft](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobcroft/32/52443_2.png) [@bobcroft](https://discourse.nodered.org/u/bobcroft)\
**Post date:** [18 September 2023 08:58 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/13 "2023-09-18T08:58:10Z")

</div>

I have exactly the same problem. I am using node-red v3.1 on Home Assistant HASSOS. Everything is the latest version. When I try to access the node-red dashboard, running under Home Assistant the URL is [http://192.168.1.98:8123/endpoint/ui](http://192.168.1.98:8123/endpoint/ui). Whereas if I type in [http://192.168.1.98:1880/endpoint/ui/](http://192.168.1.98:1880/endpoint/ui/) the dashboard is accessed correctly. This behavior has been the same for a few HA and NR upgrades. I suspect it is a HA issue rather than node-red since Home Assistant is targeting the wrong IP address, the /endpoint/ui is correct. In Home Assistant port 8123 is the base address for Home Assistant. Unfortunately I do not know how to change the dashboard address in HA, assuming it is a HA issue

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [18 September 2023 09:09 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/14 "2023-09-18T09:09:25Z")

</div>

> [@guenter-ms](#):
>
> ![Bildschirmfoto 2023-09-14 um 17.10.49](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/3/03bd2438c48efa316302ad3854021fa818af89f6.jpeg)

@dceejay do you have any memory a code change around how the dashboard link is generated? (perhaps within the last few months?)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [18 September 2023 10:11 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/15 "2023-09-18T10:11:52Z")

</div>

Does anyone know where in the Node-RED code that link is generated? Seems to be a bit of a sticking point in the new Dashboard too.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [18 September 2023 10:33 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/16 "2023-09-18T10:33:14Z")

</div>

Fairly certain it will be computed in the dashboard sidebar code Julian. Dont have a link (but should not be too hard to locate)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [18 September 2023 12:51 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/17 "2023-09-18T12:51:21Z")

</div>

it's in ui\_base.html - line 1211 - last touched in 2017...

> <https://github.com/node-red/node-red-dashboard/blob/49350a821bf338d02702e1e7dc027348364701f6/nodes/ui_base.html#L1211>

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [18 September 2023 13:26 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/18 "2023-09-18T13:26:03Z")

</div>

> [@dceejay](#):
>
> last touched in 2017...

Hmmm, curious and curiouser

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [18 September 2023 17:00 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/19 "2023-09-18T17:00:29Z")

</div>

> [@dceejay](#):
>
> `document.location.protocol`

Suggests that something may have changed in HA rather than Node-RED. Since it is clearly picking up an HA port not the node-red port.

Now I need to find the equivalent in Dash 2 so it can be fixed. 🙂

---

<div class="post-metadata">

**Author:** ![guenter-ms](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/guenter-ms/32/38372_2.png) [@guenter-ms](https://discourse.nodered.org/u/guenter-ms)\
**Post date:** [19 September 2023 07:34 UTC](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316/20 "2023-09-19T07:34:33Z")

</div>

Below you will find my nodered configuration in home assistant. port 1880 is redirected to 80. This works for the editor, but not for the dashboard button.

 ![Bildschirmfoto 2023-09-19 um 09.32.01](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/3/63563f56a7aeeae77a2d6ae753f34ed20b65fcfc.jpeg)

[Next page](https://discourse.nodered.org/t/cannot-open-node-red-dashboard-after-migration-from-pi3-to-pi4-404-not-found/81316.md?page=2)
