stacks-archive / blockstack-browser

The Blockstack Browser
Mozilla Public License 2.0
1.12k stars 199 forks source link

v0.21.0 Linux script fails to start with error: error computing derived key #1062

Closed hkjn closed 5 years ago

hkjn commented 6 years ago

Hi blockstack folks,

I'm failing to start blockstack using the instructions at https://blockstack.org/install, with an error computing derived key message after entering a password. See more info below, and let me know if I can provide any more information.

$ curl -o blockstack -L https://github.com/blockstack/blockstack-browser/releases/download/v0.21.0/Blockstack-for-Linux-v0.21.0.sh
$ bash blockstack pull
[...]
473e405dfae7: Pull complete 
Digest: sha256:5cb631cc0a06b8565d0976073b1778f948b74f85216dd1d375c96e8e5a64cffd
Status: Downloaded newer image for quay.io/blockstack/blockstack-browser:v0.21.0
$ bash blockstack start
Please enter a password to protect your Blockstack core node.                                                                                    [102/226]
IMPORTANT: This will be used to encrypt information stored within the containers
           which may include private keys for your Blockstack wallet.
           It is important that you remember this password.
           This will be the password you use to "pair" your Blockstack Browser
           with your Blockstack core node.

           Legal characters:
               letters (upper and lowercase), numbers, '_', and '-'

Password: 
Repeat: 
Wallet does not exist yet. Setting up wallet
Saving configuration to /root/.blockstack/client.ini
{
    "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 557, in run_cli
    result = method(args, config_path=config_path)
  File \"/usr/local/lib/python2.7/dist-packages/blockstack_client/actions.py\", line 370, in cli_setup
    res = cli_setup_wallet(wallet_args, interactive=interactive, config_path=config_path, password=password)
  File \"/usr/local/lib/python2.7/dist-packages/blockstack_client/actions.py\", line 2264, in cli_setup_wallet
    res = wallet_setup(config_path=config_path, interactive=interactive, password=password)
  File \"/usr/local/lib/python2.7/dist-packages/blockstack_client/wallet.py\", line 1225, in wallet_setup
    res = initialize_wallet(wallet_path=wallet_path, password=password, interactive=interactive)
  File \"/usr/local/lib/python2.7/dist-packages/blockstack_client/wallet.py\", line 758, in initialize_wallet
    wallet = make_wallet(password)
  File \"/usr/local/lib/python2.7/dist-packages/blockstack_client/wallet.py\", line 244, in make_wallet
encrypted_wallet = encrypt_wallet(decrypted_wallet, password, test_legacy=test_legacy)
  File \"/usr/local/lib/python2.7/dist-packages/blockstack_client/wallet.py\", line 152, in encrypt_wallet
    encrypted_secret_str = aes_encrypt(wallet_secret_str, password_hex)
  File \"/usr/local/lib/python2.7/dist-packages/blockstack_client/backend/crypto/utils.py\", line 37, in aes_encrypt
    return base64.b64encode(scrypt.encrypt(payload, unhexlify(secret)))
  File \"/usr/local/lib/python2.7/dist-packages/scrypt.py\", line 128, in encrypt
    raise error(result)
error: error computing derived key
",
    "help": "Try getting latest version of CLI with \"sudo pip install blockstack --upgrade\""
}
c93a284dfe6d203f3f43ea3f9c7c01105da283ac6c4b584290a9211d5cfcc124
Set BLOCKSTACK_DEBUG to 1
Re-exec as `"/usr/bin/python", "/usr/local/bin/blockstack", "api", "start", "--secrets", "3"`
[2017-11-11 12:53:08,116] [DEBUG] [spv:103] (13.140145000777472) Using mainnet
[2017-11-11 12:53:08,204] [DEBUG] [cli:419] (13.140145000777472) Load secrets from 3
[2017-11-11 12:53:08,238] [DEBUG] [client:95] (13.140145000777472) Connect to https://node.blockstack.org:6263
[2017-11-11 12:53:08,244] [WARNING] [storage:632] (13.140145000777472) Storage implementation is missing a "get_immutable_handler" method
[2017-11-11 12:53:08,246] [WARNING] [storage:632] (13.140145000777472) Storage implementation is missing a "put_immutable_handler" method
[2017-11-11 12:53:08,247] [WARNING] [storage:632] (13.140145000777472) Storage implementation is missing a "delete_immutable_handler" method
[2017-11-11 12:53:08,248] [WARNING] [storage:632] (13.140145000777472) Storage implementation is missing a "delete_mutable_handler" method
[2017-11-11 12:53:08,452] [WARNING] [dropbox:188] (13) Config file '/root/.blockstack/client.ini': section 'dropbox' is missing 'token'.  Write access will be disabled
[2017-11-11 12:53:08,454] [DEBUG] [client:110] (13.140145000777472) Loaded storage drivers ['disk', 'gaia_hub', 'dropbox', 's3', 'blockstack_resolver', 'http', 'dht']  
{  
    "error": "Wallet does not exist.  Please create one with `blockstack setup`"
}
Failed to start Blockstack daemon -- is your password correct?  
stopping the running blockstack-api container  
c93a284dfe6d  
c93a284dfe6d
$

After this, no blockstack containers are running.

guilhermeprokisch commented 6 years ago

I'm facing the same problem

larrysalibra commented 6 years ago

Tagging @jackzampolin @jcnelson and @kantai on this since they are our linux experts!

larrysalibra commented 6 years ago

Thanks for reporting @hkjn and @guilhermeprokisch - we'll get to the bottom of this!