Open whoabuddy opened 4 years ago
After submitting logs I found out the default data directory is in /tmp (unless one is set specifically with a flag).
The script currently deletes and downloads the stacks-blockchain repo, but does that affect this data directory? Is a new one created?
Should the script do something with the old one? Extract/compress? Delete?
Does deleting the directory eliminates useful information for troubleshooting?
How much disk space would multiple copies occupy?
Possible fix could be:
/tmp/stacks-blockchain*
tar -zcvf YYYYMMDD-stacks-testnet-data.tar.gz /tmp/stacks-testnet-randomchar
Also consider creating a logs or debug-data folder in home directory for multiple runs.
logs
debug-data
Reboot clears the /tmp directory, too.
Should I set a working_dir in $HOME by default?
After submitting logs I found out the default data directory is in /tmp (unless one is set specifically with a flag).
The script currently deletes and downloads the stacks-blockchain repo, but does that affect this data directory? Is a new one created?
Should the script do something with the old one? Extract/compress? Delete?
Does deleting the directory eliminates useful information for troubleshooting?
How much disk space would multiple copies occupy?
Possible fix could be:
/tmp/stacks-blockchain*
folder exists/tmp/stacks-blockchain*
for later retrievaltar -zcvf YYYYMMDD-stacks-testnet-data.tar.gz /tmp/stacks-testnet-randomchar
/tmp/stacks-blockchain*
folderAlso consider creating a
logs
ordebug-data
folder in home directory for multiple runs.