I try to run a mainnet node via docker. Nothing else running on the VM. Node starts fine using concordium-node, and I can also stop it using concordium-node-stop.
But when i try to restart i get an error: “Could not open config file for writing, settings won’t persist
FAILURE Failed to clean out existing database due to Os { code: 13, kind: PermissionDenied, message: “Permission denied” }”
Any suggestions for what might be wrong?
Here is the full progression when restarting after entering ‘concordium-node’ or ’ concordium-node --no-block-state-import’:
-Welcome to the Concordium node (mainnet). Let’s get you started!
-This software requires you to have Docker installed, running and configured for access from this user
-Checking whether docker is accessible on your PATH
OK
-Checking whether Docker is running
OK
-Checking whether we can access docker
OK
-What would you like your node name to be: cphvertigo
OK
-Latest version of the concordium client is 4.1.1-0
-Downloading image from our CDN
Image ./concordium-software/./image.d6JeFK4RgYuI/client-4.1.1-0.tar.gz
OK
-Loading image into Docker
OK
Could not open config file for writing, settings won’t persist
FAILURE Failed to clean out existing database due to Os { code: 13, kind: PermissionDenied, message: “Permission denied” }
Press enter to continue.
I also note that it doesn’t move to step 3 in the guide on the website: Run a node with Docker — Concordium documentation
Running/upgrading a node
To start running a client that will join Mainnet or Testnet follow these steps:
1: Open the concordium-node executable from the unzipped archive.
When restarting a node consider using the --no-block-state-import option. This will download just the updates to the Concordium blockchain that occurred while the node was inactive and might speed up the boot process.
2: Enter a name for your node. This name will be displayed in the public dashboard.
3: If the tool has been started before you will be asked if you want to delete the local node database before starting. Pressing y will delete and subsequently recreate the information on the state of the Concordium blockchain that was saved on your computer. Note that deleting the local node database means it will take longer for your node to catch-up with the Concordium network.