Closed peterokwara closed 3 years ago
Hi, after this fix, I got a permission denied error by running ./private-tangle.sh start 16 on Ubuntu 18.04.
Generating an initial IOTA address holding all IOTAs... Creating network "private-tangle" with the default driver Creating hornet-private-net_address-generator_run ... done ./private-tangle.sh: line 237: ./snapshots/private-tangle/snapshot.csv: Permission denied
I have to use root to run it: sudo ./private-tangle.sh start 16
@CaixiangFan you are totally right, please review this patch https://github.com/iotaledger/one-click-tangle/pull/33
Description of change
When hornet reaches a checkpoint, the following error shows up in the hornet logs
A private tangle shouldn't sync up with the mainnet, but it's part of the database.
A path should be added to the local snapshots that hornet is taking (for recovery purpose when database file crashes). Permissions need to be given to the snapshots/private-tangle folder to write out the file. This problem shows up on the node, coo and spammer hence changes need to be made to the config files of this files.
Type of change
Bug fix (a non-breaking change which fixes an issue)
How the change has been tested
The snapshots/private-tangle folder permission were changed to enable hornet to write to the folder.
The config file for the node, spammer and coo, in the snapshots section added the required path. Respectively.
After running the node, coo and spammer till the 100th milestone, the error vanished and instead we have the message
And checking the snapshot folder we see the respective bin files listed
Change checklist