So, with that in mind, I edited these three lines to point to /home/tkb
tkb@gerty:~/Downloads$ sudo grep -r root ~/.blockstack/ | grep -v "\.log"
[sudo] password for tkb:
/home/tkb/.blockstack/client.ini:queue_path = /root/.blockstack/queues.db
/home/tkb/.blockstack/client.ini:subdomains_db = /root/.blockstack/subdomains.db
/home/tkb/.blockstack/client.ini:spv_path = /root/.virtualchain-spv-headers.dat
Then tried starting again. Now get this error.
tkb@gerty:~/Downloads$ sudo bash ./Blockstack-for-Linux-v0.21.0.sh start
Enter your Blockstack Core password:
9c3bb268229e3832ccda4ab2f594072a7f16a40a6880c9110d3138d7fc443823
Set BLOCKSTACK_DEBUG to 1
Re-exec as `"/usr/bin/python", "/usr/local/bin/blockstack", "api", "start", "--secrets", "3"`
[2017-11-10 17:14:32,878] [DEBUG] [spv:103] (11.140523049375488) Using mainnet
[2017-11-10 17:14:32,972] [DEBUG] [cli:419] (11.140523049375488) Load secrets from 3
[2017-11-10 17:14:33,017] [DEBUG] [client:95] (11.140523049375488) Connect to https://node.blockstack.org:6263
[2017-11-10 17:14:33,021] [WARNING] [storage:632] (11.140523049375488) Storage implementation is missing a "get_immutable_handler" method
[2017-11-10 17:14:33,022] [WARNING] [storage:632] (11.140523049375488) Storage implementation is missing a "put_immutable_handler" method
[2017-11-10 17:14:33,024] [WARNING] [storage:632] (11.140523049375488) Storage implementation is missing a "delete_immutable_handler" method
[2017-11-10 17:14:33,025] [WARNING] [storage:632] (11.140523049375488) Storage implementation is missing a "delete_mutable_handler" method
[2017-11-10 17:14:33,163] [WARNING] [dropbox:188] (11) Config file '/root/.blockstack/client.ini': section 'dropbox' is missing 'token'. Write access will be disabled
[2017-11-10 17:14:33,164] [DEBUG] [client:110] (11.140523049375488) Loaded storage drivers ['disk', 'gaia_hub', 'dropbox', 's3', 'blockstack_resolver', 'http', 'dht']
[2017-11-10 17:14:33,166] [ERROR] [blockstack:66] (11.140523049375488) [Errno 2] No such file or directory: '/home/tkb/.virtualchain-spv-headers.dat'
Traceback (most recent call last):
File "/usr/local/bin/blockstack", line 52, in <module>
result = run_cli()
File "/usr/local/lib/python2.7/dist-packages/blockstack_client/cli.py", line 515, in run_cli
server_port=blockstack_port, set_global=True
File "/usr/local/lib/python2.7/dist-packages/blockstack_client/client.py", line 112, in session
SPVClient.init(spv_headers_path)
File "/usr/local/lib/python2.7/dist-packages/virtualchain/lib/blockchain/bitcoin_blockchain/spv.py", line 444, in init
with open(path, "wb") as f:
IOError: [Errno 2] No such file or directory: '/home/tkb/.virtualchain-spv-headers.dat'
{
"error": "Unexpected error:
Traceback (most recent call last):
File \"/usr/local/bin/blockstack\", line 52, in <module>
result = run_cli()
File \"/usr/local/lib/python2.7/dist-packages/blockstack_client/cli.py\", line 515, in run_cli
server_port=blockstack_port, set_global=True
File \"/usr/local/lib/python2.7/dist-packages/blockstack_client/client.py\", line 112, in session
SPVClient.init(spv_headers_path)
File \"/usr/local/lib/python2.7/dist-packages/virtualchain/lib/blockchain/bitcoin_blockchain/spv.py\", line 444, in init
with open(path, \"wb\") as f:
IOError: [Errno 2] No such file or directory: '/home/tkb/.virtualchain-spv-headers.dat'
",
"help": "Try getting latest version of CLI with \"sudo pip install blockstack --upgrade\""
}
Failed to start Blockstack daemon -- is your password correct?
stopping the running blockstack-api container
9c3bb268229e
9c3bb268229e
tkb@gerty:~/Downloads$
NOTE: this is the error I got when I created the directory /home/tkb/.blockstack per your original suggestion.
I then tried the sudo pip install blockstack --upgrade, as suggested in the error message. This did not help. Still get the above error.