404 Page Not Found #555
-
I have installed a Node-RED service within another docker application and have successfully used it communicate with the app and perform additional tasks. I've added uibuilder to node-red and set up a flow according to the instructions but haven't been able to get the URL to display. The app and node-red are installed on a Raspberry Pi 4 and being accessed through the local network. The purpose is to create a simplified control on a touchscreen connected to the pi to execute the node-red code. I'm assuming it is a path issue with my installation. The correct folders were created within the node-red folder when the configured uibuilder was deployed and nothing is obviously wrong in the settings.js file. The node-red installation was customized slightly to make it easy to work with the main application (as per the application developer instructions) and has worked flawlessly. Only uibuilder appears to not work. Nothing shows as well in the debug window when injecting the timestamp into the flow detailed in the getting started tutorial. The node-red folder is within the root folder of the application and the 1880 port is shared with the application. The node-red UI access has been configured to be the pi IP address/node-red. The uibuilder installation created the path as "path": "/data/uibuilder" and the /data folder doesn't exist. Is the fix just replacing /data with /node-red or possibly deleting the /data prefix since the node-red folder is set in the setting.js folder (i.e., httpAdminRoot: "/node-red")? Also would this be done in the uibuilder package.json file only and then deleting the current test flows? Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
BTW: You will often get quicker responses by posting on the Node-RED forum, I am in there most days. 😊 I assume you are using the latest version of uibuilder? Is Docker on Windows or Linux? So you are not using the pre-built Node-RED Docker container but your own custom one? Also, are you using the Node-RED projects feature? This can mess with folder locations.
Can you explain that a bit more please? What we really need to know is where is the When using Docker containers, the userDir needs to be in a writable location and so generally should not be within the container itself. The default Node-RED container uses a location mounted as
This implies that Node-RED believes the userDir folder to be It would be really helpful if you could share the startup part of the node-red log up to the point where it says |
Beta Was this translation helpful? Give feedback.
Yes, that is needed:
That along with the log tells me that the userDir maps to
/data
internally to Docker and externally to./node-red
BUT, that is somewhat suspect because it is a relative filing system reference. Relative to what? I can't tell and could potentially be different on different platforms. It should point to an absolute path such as/home/node-red/
(which might be the case if the host system has a user callednode-red
and that the Docker instance has access to that users home data.Bottom line is that, if you have access to the host…