New Guide For 0.8.2 On Linux?

Discussion in 'Questions' started by gaklinator, Mar 21, 2017.

  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. gaklinator

    gaklinator New Member

    Mar 21, 2017
    7
    1
    Hell
    Could somebody who has successfully installed Decred 0.8.2 on Linux please share the process steps? Looks like there have been some changes since the last Linux guide was posted here. Thanks.
     
  2. Fsig

    Fsig Member
    Developer

    Dec 28, 2015
    71
    77
    Male
    Australia
    Code:
    wget https://github.com/decred/decred-release/releases/download/v0.8.2/dcrinstall-linux-amd64-v0.8.2
    
    chmod +x dcrinstall-linux-amd64-v0.8.2
    
    ./dcrinstall-linux-amd64-v0.8.2
    Files should now be under /home/user/decred/decred-linux-amd64-v0.8.2/.
     
  3. jcv

    jcv Full Member
    Developer

    Not sure what changes you are referring to (but I also don't know what previous guide version you read). Best bet is to follow the instructions on the docs site which are up to date: https://docs.decred.org/getting-started/install-guide/
     
  4. gaklinator

    gaklinator New Member

    Mar 21, 2017
    7
    1
    Hell
    The problem must be specific to my OS because I've been getting the same error on two computers running Ubuntu 16.04LTS. When I try to run wallet inquiries such as ./dcrctl --wallet getbalance for example:

    rpc.cert: no such file or directory

    I have followed the instructions linked by jvc twice on both machines, with the same results.

    The error is mentioned in other forum topics but they don't seem to be relevant in my case.
     
  5. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    That error is typically one of two things:

    1) The RPC server in dcrwallet is not running so it never created the certificates.
    2) The wallet and/or dcrd are not in the default locations because you specified --appdata, so dcrctl can't find the RPC certificates in the default locations where it expects.

    You can see where dcrctl is looking for the RPC certificate by running:

    Code:
    $ dcrctl --help
    and looking at the rpccert option in the parenthesis.

    If you didn't specify --appdata, then it means the certs haven't been generated because the RPC server isn't running. In that case, the most likely culprit is that the rpcuser/rpcpass options aren't specified.
     
  6. gaklinator

    gaklinator New Member

    Mar 21, 2017
    7
    1
    Hell
    Thanks Dave, it was looking for rpccert in .dcrwallet
    I found rpccert in .dcrd and copied it to .dcrwallet
    Now the error has changed. When I enter: ./dcrctl --wallet getbalance
    then the response is: Post https://localhost:9110: dial tcp 127.0.0.1:9110: getsockopt: connection refused

    I've wiped and reinstalled again on both my machines following the guide step-by-step, still the same response. Sync is fine, just can't access wallet.
     
  7. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    Are you running ./dcrwallet --rpcuser=user --rpcpass=pass ? Even better of course is specifying those in the dcrwallet.conf config file, but I typed them out on the CLI for clarity.

    That error indicates the RPC server isn't running and the only reason it wouldn't be running is if those two things aren't specified.
     
  8. gaklinator

    gaklinator New Member

    Mar 21, 2017
    7
    1
    Hell
    Well that finally led me to the solution. I did specify rpc info the .conf file but ./dcrwallet was not reading it for some reason. Wallet commands are functioning after I ran ./dcrwallet -u username -P password
    I was hitting the problem in all the wrong places and can gladly live with manually entering the login info. Thanks again Dave. You are quick at the replies. Much appreciated.
     
  9. davecgh

    davecgh Hero Member
    Developer Organizer

    Dec 31, 2015
    642
    788
    Male
    United States
    Np. You can see where it's looking for the dcrwallet.conf file by typing
    Code:
    dcrwallet --help
    and looking in the parenthesis of the --configfile option.
     

Share This Page