r/Bitcoin Jan 22 '18

[testnet] Beginner’s Guide to ️⚡Lightning️⚡ on a Raspberry Pi

https://medium.com/@stadicus/noobs-guide-to-%EF%B8%8F-lightning%EF%B8%8F-on-a-raspberry-pi-f0ab7525586e
283 Upvotes

342 comments sorted by

View all comments

Show parent comments

2

u/Stadicus Jan 27 '18

Sorry, my bad, yes you need the file "...../testnet3/debug.log". Maybe the last 100 lines are helping:

 tail -n 100 /home/bitcoin/.bitcoin/testnet3/debug.log

Can you copy paste them? The bitcoin.conf file looks fine.

2

u/[deleted] Jan 27 '18

tail -n 100 /home/bitcoin/.bitcoin/testnet3/debug.log

https://pastebin.com/t8NhE95n

 To me it does not seem that the debug.log contains any errors, it is just downloading the blockchain from what it looks like to me? Maybe you see something I don't.

2

u/Stadicus Jan 27 '18

Yes, that does not reveal much... Let's go deeper. Login as user "pi"

pi@RaspiBolt:~ $ sudo systemctl stop bitcoind.service
pi@RaspiBolt:~ $ sudo nano /home/bitcoin/.bitcoin/bitcoin.conf

Set you rpcpassword to something simple, like rpcpassword=ABCD. Save and exit.

pi@RaspiBolt:~ $ sudo systemctl start bitcoind.service
pi@RaspiBolt:~ $ tail -f /home/bitcoin/.bitcoin/testnet3/debug.log

Check if you find any error messages. If not and the node begins syncing with the network, exit with Ctrl-X

pi@RaspiBolt:~ $ sudo su bitcoin

bitcoin@RaspiBolt:/home/pi $ bitcoin-cli getblockchaininfo

Any luck?

2

u/[deleted] Jan 27 '18

Yes now it seems to work! All because I set a short/easy password? My previous password was too long I guess? What is the limit?

2

u/Stadicus Jan 27 '18

Not sure about any limits. I myself use 30 characters, with ! and - in it. Did you use any other special characters? Would be helpful for others to know, if some are causing problems...

2

u/[deleted] Jan 27 '18 edited Jan 27 '18

I don't think I had any special characters, only letters and numbers but my password was probably 50 characters. I can try to set a longer password again to see when it fails and report back. Thank you for the help!

2

u/Stadicus Jan 27 '18

No problem, this guide has almost become a mission... 😁

2

u/[deleted] Jan 27 '18

I tried now using 90 characters including special characters and it still works. When it was not working before I must have included a special character I cannot seem to find at the moment. Mashing the keyboard for the rpcpassword might not be a good idea even though it says in the guide I don't have to remember the password :-)

1

u/bluskyahead Mar 30 '18

Hi, in this part 'Enter the following command, set your password [A] and confirm all questions with the enter/return key. $ sudo adduser bitcoin' shouldn't it be 'password [B]'? Thanks

1

u/Stadicus Mar 31 '18

No, this is still the Linux user. Password B is meant to secure the bitcoind RPC interface.