Running A Full Node On Aws - Ubuntu?

Discussion in 'Full Nodes' started by Jesse, Feb 8, 2016.

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

    Jesse New Member

    Jan 24, 2016
    17
    11
    Male
    Hey Decred, does anyone plan on running a full node on ubuntu? If so are there any tutorials out there how to do it? When main net is released I plan on running a node for myself. And all of you of course :)
     
  2. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    I run everything on Ubuntu. The Linux instructions worked for testnet. Main net is giving me issues...
     
  3. CommanderVenus

    CommanderVenus New Member

    Jan 11, 2016
    27
    4
    Linux 64 bit.
    Me too, i keep getting..

    12:37:21 2016-02-08 [WRN] SRVR: Can't listen on :9108: listen tcp4 :9108: bind: address already in use
    12:37:21 2016-02-08 [WRN] SRVR: Can't listen on :9108: listen tcp6 :9108: bind: address already in use
    12:37:21 2016-02-08 [ERR] DCRD: Unable to start server on [:9108]: no valid listen address
     
  4. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    Which component? I did notice that the cgminer port changed. (I think) It would not start with 19109 but did with 9109... Documentation needs some catchup. The way I did it so far.

    Open 4 terminals. Terminal one will be the node for the blockchain. Terminal two will be the wallet. Terminal three is cgminer. And teminal for is for control.

    Term one...
    Code:
    ./dcrd -u user -P pass
    This creates the blockchain.
    Term two;
    Code:
    ./dcrwallet --create
    ./dcrwallet -u user -P pass --walletpass publicpassphrase --dcrdusername=user --dcrdpassword=pass
    Create wallet and connect. Note the "--walletpass publicpassphrase" is for the optional additional encryption.
    Save your seed and stuff somewhere secure.
    Now in terminal four;
    Code:
    dcrctl  -u user -P pass --wallet getnewaddress 
    Look, you have a Ds address! Save it with your seed.
    Go back to Terminal One, and ctl-c to break out. Then;
    Code:
    ./dcrd -u user -P pass --miningaddr=<address from wallet>
    It will run again, but have a mining address in place.
    Now in terminal three;
    Code:
    sudo -i
    cp /home/user/.dcrd/rpc.cert /usr/share/ca-certificates/dcrd.crt
    echo dcrd.crt >> /etc/ca-certificates.conf
    update-ca-certificates
    exit
    This sets up your certs... You may need to copy the certs for the wallet to work as well.
    Lastly, in terminal three;
    Code:
    sudo ./cgminer --blake256 --benchmark
    
    sudo ./cgminer --blake256 -o https://127.0.0.1:9109 -u user -p pass
     
  5. CommanderVenus

    CommanderVenus New Member

    Jan 11, 2016
    27
    4
    Linux 64 bit.
    #5 CommanderVenus, Feb 8, 2016
    Last edited: Feb 8, 2016
    I cant even get terminal one running. My 9108 port is forwarded properly but i cant run dcrd.

    I had testnet running just fine and mining blocks even, but this just wont work for me. Running the same stuff minus the --testnet options.

    Running kubuntu 14.04 64 bit so i downloaded linux-amd64-20160207-01.tar.gz.7z.
     
  6. Jesse

    Jesse New Member

    Jan 24, 2016
    17
    11
    Male
    I straight up get this error:
    ubuntu@ip:~/linux_decred$ ./dcrd -u coins -P password
    -bash: ./dcrd: Permission denied
     
  7. CommanderVenus

    CommanderVenus New Member

    Jan 11, 2016
    27
    4
    Linux 64 bit.
    try "sudo ./dcrd -u coins -P password" without quotes.
     
  8. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    NO! Root is not needed for the blockchain! Also, just in general "Try running it as root" is a very bad idea any time! (Now the classic Linux newbie lesson "rm -rf /" can even permanently brick your BIOS!)

    If you are getting permission denied, lets look at the files...
    Code:
    lee@dev01:~/Decred/linux-amd64$ ll
    total 52M
    drwxrwxr-x 2 lee lee 4.0K Feb  7 12:25 ./
    drwxrwxr-x 6 lee lee 4.0K Feb  8 12:14 ../
    -rwxr-xr-x 1 lee lee  11M Feb  7 12:25 dcrctl*
    -rwxr-xr-x 1 lee lee  21M Feb  7 12:25 dcrd*
    -rwxr-xr-x 1 lee lee  21M Feb  7 12:25 dcrwallet*
    lee@dev01:~/Decred/linux-amd64$
    
    Do your permissions look like mine? File ownership? If you extracted them as root, you may not have permission to run them as a user.
     
  9. Jesse

    Jesse New Member

    Jan 24, 2016
    17
    11
    Male
    This is what I have:
    Code:
    ubuntu@ip:~/linux_decred$ ll
    total 44116
    drwxrwxr-x  2 ubuntu ubuntu     4096 Feb  8 18:19 ./
    drwxr-xr-x 10 ubuntu ubuntu     4096 Feb  8 18:15 ../
    -rw-rw-r--  1 ubuntu ubuntu  9666848 Feb  8 18:15 dcrctl
    -rw-rw-r--  1 ubuntu ubuntu 17601464 Feb  8 18:15 dcrd
    -rw-rw-r--  1 ubuntu ubuntu 17889688 Feb  8 18:15 dcrwallet
    
    
    Whats the numeric representation of your permissions?
     
  10. CommanderVenus

    CommanderVenus New Member

    Jan 11, 2016
    27
    4
    Linux 64 bit.
    Oops.. my bad. Also my issue is due to decred using the ports of another coin thats been established for a while. Bitquark.
     
  11. Lee Sharp

    Lee Sharp Sr. Member

    Dec 28, 2015
    308
    217
    Male
    Independent Consultant
    Houston, Texas
    You do not have exicute permissions on anything. "chmod 775 *"

    As for my "ll" I changed my .bashrc to add "h" to it... I like the human readable sizes. :)
     
  12. ImpellitterI

    ImpellitterI New Member

    Jan 11, 2016
    57
    2
    Male
    how much decred receive for a day ?
     

Share This Page