I'm trying to set up Node-RED with Kubernetes + Helm charts (Ubuntu 22). I have flows.json file in data folder on the pod and on Persistent Volume to secure data after a reboot:
Can you check what has locked the file? Is it Node-RED or something else? You probably need to check both the temp file and the actual as it isn't clear which is locked.
I checked with lsof and fuser and it seems like nothing is blocking them. And also both of this files can be changed with text editors (nano for example).
Do you mean that it does allow you to use node-red from the web, but when you Deploy you see the error? If so them my guess is that node-red first writes the new file with the $$$ extension and will then rename it. The error suggests it has written the new one but then is unable to rename it.
What is the ownership and permissions on the flows file, and other files in the folder?