FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
04-16-2021 06:01 PM
I am using the USB storage on the ctrlX Core to store process recipes and logged process data from our machine via Node-red.
After update of Node-red from 1.4.0 to 1.8.1 (RM21.03) I lost the acces to the mounted USB device.
I tried to format a new USB memory, but failed:
After formating it on an external linux machine and several reboots I got it mounted, but with error:
As user admin I have full access on the storage:
But, Node-red has no permissions at all to acces the storage anymore:
"failed to write to file: Error: EACCES: permission denied, open '/media/mnt/sda1/recipes/recipe3.csv'"
How can I recover that functionallity? Is there something new I missed to set after the update?
Thanks!
Solved! Go to Solution.
04-19-2021 12:46 PM - edited 04-19-2021 12:47 PM
For your first topic the problem with formatting an flash drive to mkfs.ext4 is a known bug in the OS and under investigation. FAT32 should work normal.
Second the rights of mounting a drive was restricted because of security reasons in the version 1.8. This will be reworked in the next release milestone RM21.07 (version 1.10) coming up end of July.Thenit will be possible again also via a web based user interface.
At least please beware, that a standard (productive) ctrlX CORE will have no user with root rights. This access is for development purposes only.
04-19-2021 07:19 PM
Thanks for the information for those two topics.
Actualy, my issue is that Node Red cannot access sda1 anymore neither mounted as ext4 nor as FAT32. It seems it gets only permissions for directory /var/snap/ctrlx-node-red/48
04-20-2021 11:02 AM - edited 04-20-2021 12:06 PM
That's the way in a secure system it should be. So a snap only can manipulate its own storage or needs to have interfaces to other locations. These interfaces and mechanisms are reworked and established in the next release (RM21.07 v1.10) that I mentioned.
EDIT:
As an addition: The configuration can also be used to write data. This data will then be stored remanent in the solution manager and will be switched with the active configuration. E.g.:
e.g.: /var/snap/rexroth-solutions/common/solutions/DefaultSolution/configurations/MyConfiguration/node-RED
active: /var/snap/rexroth-solutions/common/solutions/activeConfiguration/node-RED
04-20-2021 12:11 PM
Thanks for the clarification. I rearanged writing the recorded data after the update in /var/snap/ctrlx-node-red/48/package-run/ctrlx-node-red/. I will change to the path you recommended.
Is there a critical memory usage for each snap or especially for Node red I shouldn't exceed?
Is there any recommendation from your side to monitor one of the following values (or others) in order to prevent any issues with e.g. running out of memory for other processes until the next release?
05-04-2021 04:09 PM
Our internal storage is a 4Gb eMMC chip. At the moment only the size of a snap itself is limited to 250 Mb but not the storage used of it. Please beware of the limited write cycle lifetime of this chip.
You can have a look at the values mentioned by you for CPU and RAM utilisation and also the total storage (https://192.168.1.2/storage/storage). We recommened to keep at least 200Mb of free disc space for normal operation:
11-17-2021 03:31 PM - last edited on 05-24-2022 10:19 AM by HmiGuide
As an update to this topic: access to SD/USB storage is available since July like promised. Devices can be mounted and data is found in the path: (Hint: In version 1.14 the path to the mounted devices is displayed in the ctrlX web visu)
/media/mmcblk1p1/
02-15-2023 01:18 AM