Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neither installation method is working (docker nor pip) #675

Closed
ErikBjare opened this issue Nov 5, 2017 · 2 comments
Closed

Neither installation method is working (docker nor pip) #675

ErikBjare opened this issue Nov 5, 2017 · 2 comments

Comments

@ErikBjare
Copy link

ErikBjare commented Nov 5, 2017

OS: Arch Linux

I'm an experienced Python developer, somewhat comfortable with docker.

With docker

Error log, click to expand
$ ./Blockstack-for-Linux-v0.20.1.sh pull
... (this woked fine)
$ ./Blockstack-for-Linux-v0.20.1.sh start
Enter your Blockstack Core password:
220b981dfc82b8991cfa067219cedd68d8c619457be3fbc096f8d61850d220d4
Set BLOCKSTACK_DEBUG to 1
Re-exec as `"/usr/bin/python", "/usr/local/bin/blockstack", "api", "start", "--secrets", "3"`
[2017-11-05 09:50:52,980] [DEBUG] [spv:103] (11.140634949904128) Using mainnet
[2017-11-05 09:50:53,028] [DEBUG] [cli:419] (11.140634949904128) Load secrets from 3
[2017-11-05 09:50:53,051] [DEBUG] [client:95] (11.140634949904128) Connect to https://node.blockstack.org:6263
[2017-11-05 09:50:53,053] [WARNING] [storage:632] (11.140634949904128) Storage implementation is missing a "get_immutable_handler" method
[2017-11-05 09:50:53,054] [WARNING] [storage:632] (11.140634949904128) Storage implementation is missing a "put_immutable_handler" method
[2017-11-05 09:50:53,054] [WARNING] [storage:632] (11.140634949904128) Storage implementation is missing a "delete_immutable_handler" method
[2017-11-05 09:50:53,055] [WARNING] [storage:632] (11.140634949904128) Storage implementation is missing a "delete_mutable_handler" method
[2017-11-05 09:50:53,141] [WARNING] [dropbox:188] (11) Config file '/root/.blockstack/client.ini': section 'dropbox' is missing 'token'.  Write access will be disabled
[2017-11-05 09:50:53,141] [DEBUG] [client:110] (11.140634949904128) Loaded storage drivers ['disk', 'gaia_hub', 'dropbox', 's3', 'blockstack_resolver', 'http', 'dht']
[2017-11-05 09:51:43,256] [ERROR] [rpc:5078] (11.140634949904128) Failed to start API endpoint: exit code 1
[2017-11-05 09:51:43,258] [ERROR] [rpc:5079] (11.140634949904128) Error log:
  [2017-11-05 09:50:53,301] [DEBUG] [spv:103] (33.140215402075904) Using mainnet
  [2017-11-05 09:50:53,557] [INFO] [rpc:5294] (33.140215402075904) API server version 0.17.0 starting...
  [2017-11-05 09:50:53,557] [INFO] [rpc:5295] (33.140215402075904) Machine:   x86_64
  [2017-11-05 09:50:53,557] [INFO] [rpc:5296] (33.140215402075904) Version:   #1 SMP PREEMPT Thu Sep 21 20:33:16 CEST 2017
  [2017-11-05 09:50:53,557] [INFO] [rpc:5297] (33.140215402075904) Platform:  Linux-4.13.3-1-ARCH-x86_64-with-Ubuntu-16.04-xenial
  [2017-11-05 09:50:53,557] [INFO] [rpc:5298] (33.140215402075904) uname:     Linux 220b981dfc82 4.13.3-1-ARCH #1 SMP PREEMPT Thu Sep 21 20:33:16 CEST 2017 x86_64 x86_64
  [2017-11-05 09:50:53,557] [INFO] [rpc:5299] (33.140215402075904) System:    Linux
  [2017-11-05 09:50:53,557] [INFO] [rpc:5300] (33.140215402075904) Processor: x86_64
  [2017-11-05 09:50:53,557] [INFO] [rpc:5301] (33.140215402075904) pip:
  asn1crypto==0.23.0
  base58==0.2.5
  basicrpc==0.0.2
  bitmerchant==0.1.8
  blockstack==0.17.0.11
  blockstack-profiles==0.14.1
  blockstack-zones==0.14.3
  boto==2.48.0
  cachetools==2.0.1
  certifi==2017.7.27.1
  cffi==1.11.2
  chardet==3.0.4
  cryptography==2.1.3
  defusedxml==0.5.0
  dropbox==8.4.1
  ecdsa==0.13
  enum34==1.1.6
  functools32==3.2.3.post2
  google-api-python-client==1.6.4
  httplib2==0.10.3
  idna==2.6
  ipaddress==1.0.18
  jsonpatch==1.16
  jsonpointer==1.14
  jsonschema==2.6.0
  jsontokens==0.0.4
  keychain==0.14.2.0
  keylib==0.1.1
  oauth2client==4.1.2
  onedrivesdk==1.1.8
  protocoin==0.2
  pyasn1==0.3.7
  pyasn1-modules==0.1.5
  pycparser==2.18
  PyDrive==1.3.1
  pyparsing==2.2.0
  PyYAML==3.12
  requests==2.18.4
  rsa==3.4.2
  scrypt==0.8.0
  simplejson==3.11.1
  six==1.11.0
  uritemplate==3.0.0
  urllib3==1.22
  utilitybelt==0.2.6
  virtualchain==0.17.0.4
  warlock==1.3.0
  [2017-11-05 09:50:58,096] [DEBUG] [rpc:5355] (33.140215402075904) Running in the background
  [2017-11-05 09:51:43,238] [ERROR] [utils:171] (33.140215402075904) Child exit status 256
  [2017-11-05 09:51:43,238] [ERROR] [rpc:5362] (33.140215402075904) API server failed to start
{
    "error": "Failed to start API endpoint (exit code 1)"
}
Failed to start Blockstack daemon -- is your password correct?
stopping the running blockstack-api container
220b981dfc82
220b981dfc82

Additionally, `sensible-browser` is not available on Arch so I made a symlink to chromium and put it in my PATH. You might want to use another method to start a browser than `sensible-browser`.
Error log, click to expand
Enter your Blockstack Core password:
89a5913dd9c5bf54aca86d419835fe7d318f6b03b455ae3dc51218f2d2b2620d
Set BLOCKSTACK_DEBUG to 1
Re-exec as `"/usr/bin/python", "/usr/local/bin/blockstack", "api", "start", "--secrets", "3"`
[2017-11-05 10:03:34,471] [DEBUG] [spv:103] (11.140359732942592) Using mainnet
[2017-11-05 10:03:34,521] [DEBUG] [cli:419] (11.140359732942592) Load secrets from 3
[2017-11-05 10:03:34,543] [DEBUG] [client:95] (11.140359732942592) Connect to https://node.blockstack.org:6263
[2017-11-05 10:03:34,546] [WARNING] [storage:632] (11.140359732942592) Storage implementation is missing a "get_immutable_handler" method
[2017-11-05 10:03:34,546] [WARNING] [storage:632] (11.140359732942592) Storage implementation is missing a "put_immutable_handler" method
[2017-11-05 10:03:34,547] [WARNING] [storage:632] (11.140359732942592) Storage implementation is missing a "delete_immutable_handler" method
[2017-11-05 10:03:34,548] [WARNING] [storage:632] (11.140359732942592) Storage implementation is missing a "delete_mutable_handler" method
[2017-11-05 10:03:34,632] [WARNING] [dropbox:188] (11) Config file '/root/.blockstack/client.ini': section 'dropbox' is missing 'token'.  Write access will be disabled
[2017-11-05 10:03:34,632] [DEBUG] [client:110] (11.140359732942592) Loaded storage drivers ['disk', 'gaia_hub', 'dropbox', 's3', 'blockstack_resolver', 'http', 'dht']
{
    "status": true
}
23cff424adc3c3eb7af1a2ea65e6771278be301fb0838d0f427efa50d6b1887f
fd6eb4a1fd96918bb473d46745c2ffdf20d93438ba0ecbff3acf13de3f8c8aee
./Blockstack-for-Linux-v0.20.1.sh: line 140: sensible-browser: command not found

With pip

Off-topic: Why Python 2? In ~2 years it will no longer be maintained.

Error log, click to expand
$ sudo pip2 install blockstack
... (this worked fine)
$ blockstack
{
    "error": "Unexpected error:
Traceback (most recent call last):
  File \"/usr/bin/blockstack\", line 52, in 
    result = run_cli()
  File \"/usr/lib/python2.7/site-packages/blockstack_client/cli.py\", line 440, in run_cli
    res = config.setup_config(config_path=config_path, interactive=(os.environ.get(\"BLOCKSTACK_CLIENT_INTERACTIVE_YES\") != '1'))
  File \"/usr/lib/python2.7/site-packages/blockstack_client/config.py\", line 1026, in setup_config
    conf = configure(config_file=config_path, interactive=interactive, set_migrate=True)
  File \"/usr/lib/python2.7/site-packages/blockstack_client/config.py\", line 297, in configure
    all_opts = read_config_file(config_path=config_file, set_migrate=set_migrate)
  File \"/usr/lib/python2.7/site-packages/blockstack_client/config.py\", line 852, in read_config_file
    if ret['blockstack-client']['server'] == 'node.blockstack.org':
KeyError: 'blockstack-client'
",
    "help": "Try getting latest version of CLI with \"sudo pip install blockstack --upgrade\""
}

I got the same error with blockstack setup. Somehow it seems like the config is missing? Shouldn't it be created when first run?

@ErikBjare ErikBjare changed the title Neither installation method is working Neither installation method is working (docker nor pip) Nov 5, 2017
@ErikBjare
Copy link
Author

ErikBjare commented Nov 5, 2017

I skimmed the script and found that you're just opening localhost:8888 when done with the other stuff, so I tried navigating there manually and it worked. 🤷‍♂️

Hopefully my logs are still of use to you.

@kantai
Copy link
Member

kantai commented Nov 20, 2017

Thanks for raising this issue, and I'm glad you worked out opening the localhost:8888 endpoint manually. We're currently exploring better Linux install paths, over here (stacks-archive/blockstack-browser#1080), and would always appreciate user input.

Anyways, closing this issue for now, because it seems like you worked it out.

@kantai kantai closed this as completed Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants