Hello, please help me with my permission errors. After a power outage, I restarted the node and noticed that the database didn’t have the correct permissions, causing the node to be unable to start. I found and ran the command below, which allowed the node to start. However, I only ran this command for the database files and didn’t run it on all the chunks inside the blob folder.
Do I need to run the above command in the whole /storage/ folder as well now?
I stopped the node because I noticed a lot of these errors and would like to fix permissions before starting it again.
I forgot to mention that in the past, I always started the node by running commands through the terminal, such as the setup node command and the run node command. However, after a few power outages, I created a bash script as shown below. Now, I remove, set up, and start the node with a single command in the terminal (node restart): sudo bash startnode.sh
Is it possible that my new bash file created these permission errors?
I started using this method for node restart on the same day the power outage occurred, and now I’m not sure what caused these errors.
You definitely don’t want to run the SETUP command again. That should only be run once.
As far as permissions are concerned, I’m not sure but if the user is changing and you are setting permissions by user, it will inevitably need changed. Perhaps apply rights at a group level would be better than at the user level.