iHost - NodeRed instalation failure

Hi
Since 1700 UTC/GMT +2 yesterday the instance of Node-Red no longer runs in the Edge browser and the add-on shows error. Have tried re-running add-on and iHost rebooting without any result. All virtual switches show offline.


Have sent logs by DM.

Your version still v4.0.2?
Can you send us your node-red log via feedback?

Hi

It is the latest version - just says “latest” on info screen, but it is v4.
Here is the node-red log
Thanks
6ebbf4ff-9f79-4ebe-8789-a54f262da1a3.txt (3.5 MB)

I can’t see any error regarding our library.
Control device node seems working fine.
Might be some of your other libraries causes the problem.
I can see some error from time to time, can you identify what causes it?
“[error] [file:1ae03d6f.567a83] TypeError: Cannot read properties of undefined (reading ‘csv’)”

Yes, I can identify the flow and node here without any doubt. Would that have triggered the collapse, doesn’t seem more than a simple code error? I shall eliminate that flow from the backup, because I suppose reinstalation is the only way forward here?

What type of libraries are you thinking of?

What node or library did you use to write a csv file?

Seems like a read and write file error to me. Might be some libraray didn’t write or read file properly.

The standard csv node in the native palette.

With an instance of node-red on my PC I can use this csv node to write a file using the path
.node-red\context\mysample.csv

This can be read and I can visualise the file in the node-red folder on my PC.

I have now re-run the ihost add-on and it is again visible (only on the Edge browser) but trying these same nodes on iHost the file is created because it can be retrieved, but is not visible in Filebrowser.
Also an error ocours if a second line is added.
"Unexpected non-whitespace character after JSON at position xx " This position is the end of line i.e. return
Does that mean that this standard node is incompatible with Node-red on iHost?

I don’t think so.
Looks like the data you write to csv are wrong.

Can you see the data itself?
The error message clearly means in position xx you have a unsupported character for JSON format.
Maybe you should check that.

I can use the Read File node to retrieve the infomation and I can see that it doesn’t accept the line feed character. Well I’ll try alternative formats here…

What I don`t understand is if I use the file path

.node-red\context\mysample.csv

on my PC, I can see the file created in the context folder of the node-red directory as is expected. The node instructions indicate clearly that “The filename should be an absolute path, otherwise it will be relative to the working directory of the Node-RED process.”
Why when I do the same in iHost I can’t see the file in Filebrowser - its being created but not there
What is the correct file path to use here on the iHost?

EDIT
Solved, in docker the path must be
/data/context/mysample.csv

EDIT 2
With Cube node update the problem of the web UI not opening in Chrome has been solved. :+1:

Thanks