Hilscher Community Forum
Node red web UI issue - Printable Version

+- Hilscher Community Forum (https://forum.hilscher.com)
+-- Forum: netPI 3 - Docker featuring Industrial Raspberry Pi 3 platform (https://forum.hilscher.com/forum-1.html)
+--- Forum: Software (https://forum.hilscher.com/forum-5.html)
+--- Thread: Node red web UI issue (/thread-749.html)



Node red web UI issue - DSongra - July-22nd-2021

Dear Armin,

I am using NetPI RTE gateway installed node-red using docker container.

I am facing two major issues most of the time.

1) Node-red web UI run for 1 hour only then it is asking to put login ID & Password if we are doing any changes in between and we do not deploy node-red flow then it got lost the node configuration settings.

2) Node-red web UI not opening giving error as "This site can't be reached". even after restarting docker node-red container and NetPi Gateway also, but still facing this same issue. (attachment 1). 

Is there anyone who has this type of same issue facing while testing?


Br,
Devendra


RE: Node red web UI issue - Armin@netPI - July-22nd-2021

Well

first question is which containerized Node-RED version do you use?

1.) The official Node-RED documentation under https://nodered.org/docs/user-guide/runtime/securing-node-red#token-expiration says the Node-RED editor web session is monitored by a token that times out by default after 7 days if you do not make any changes in the Node-RED settings.js file. I checked the hilschernetpi/netpi-nodered version on docker hub on my netPI device online and it establishes a web session token of value "expires_in: 604800" which is 604800 seconds = 7 days. So the token time is correct.

2.) Usually any container prints out some log data which can be reviewed in the netPI portainer.io web UI. Looking to the container logs will indicate maybe why it is not starting.

Thx


RE: Node red web UI issue - DSongra - July-22nd-2021

Hello Armin,

Thanks for your reply. please find below details

Node-red Version - 1.3.3 (the reason I used this version for Bluetooth testing last time we checked for the different node-red containers but with this version I am able to communicate with my Ipad over Bluetooth).

1) How can I check the token web session token value in my netPi?

2) Please find attached a screenshot for node red docker log.


Br,
Devendra


RE: Node red web UI issue - Armin@netPI - July-22nd-2021

Well,

1. Any Web Browser I know has a special debug mode you can activate that lets you recording web sessions it is executing. In google chrome you have to choose "More Tools -> Web Developer Tools" to start this special mode. If activated and you visit the Node-RED landing page and login you see google chrome recording the web request and reponses. Important are the token messages and especially the response message from netPI which includes the expiration time ... here is a screen shot of mine

   

2. I am sorry to say that I am not able to find out the source of this error. I think it must be somehow relelated to your Node-RED flow or a specific node you are using. Version 1.3.3 it too old to support. I don't know if you have used the function "Volumes" already ... and if you have a faulty flow stored in this volume causing this error, you will not succeed to get Node-RED started without deleting the flow manually in the container using the netPI embedded container console and deleting the filw /root/.node-red/flows.json an then restart the container.

Thx
Armin