Show Posts
|
Pages: [1]
|
@crystal-love, are you actually trying to get a lightning node setup as well? or do you just want a Bitcoin Core node? I would like to setup lightning node. There are many tutorials, but non of them worked well. So i was using like 3 or 4 tutorials at the same time, trying to put everything together. Bitcoin Core node - easy. But for lightning i did not found clear and working tutorial. If you know some, i would be thankful
|
|
|
What is the reason for this testnet? I want to have a real node, doing real things. Why do i need this testnet?
And of course the last question, how to switch to main blockchain?
|
|
|
Thank you, I believe it worked out. I've modified bitcoin.conf by commenting these two lines. It looks like it is started and running. Is there any way to check it? Except looking it to "bitcoin-cli getconnectioncount" ?
Also what does it mean "testnet = 1" ? Is my node running in some "test" mode?
server=1 testnet=1 txindex=1 daemon=1 externalip=X.X.X.X maxconnections=45 #rpcuser=REPLACEME #rpcpassword=REPLACEME zmqpubrawblock=tcp://127.0.0.1:28332 zmqpubrawtx=tcp://127.0.0.1:28332
|
|
|
To be honest with you, I have no idea what is zmqpath as well as what is zmqpubrawblock. I was just trying to setup reading this tutorial: https://gist.github.com/bretton/1a72e9fea94405be449edbd379a1ce57Content of bitcoin.conf is empty. I suppose to add the text bellow, but except my external IP, i have no idea how to change it so it would use .cookie instead of rpcuser/rpcpassword. server=1 testnet=1 txindex=1 daemon=1 externalip=X.X.X.X maxconnections=10 rpcuser=REPLACEME rpcpassword=REPLACEME zmqpubrawblock=tcp://127.0.0.1:28332 zmqpubrawtx=tcp://127.0.0.1:28332
|
|
|
Thank you, all clear. I found cookie file, but...
How should properly look this command? Should there be option (--bitcoind.rpcuser=REPLACEME --bitcoind.rpcpass=REPLACEME) ??
lnd --bitcoin.active --bitcoin.testnet --debuglevel=debug --bitcoin.node=bitcoind --bitcoind.rpcuser=REPLACEME --bitcoind.rpcpass=REPLACEME --externalip=X.X.X.X --noencryptwallet --bitcoind.zmqpath=tcp://127.0.0.1:28332
When i try to run, it gives me these errors:
unknown flag `noencryptwallet'
(i removed this command at all and tried again). Then i've got this error:
unknown flag `bitcoind.zmqpath'
(i removed this command at all and tried again). Then i've got this error:
unable to load RPC credentials for bitcoind: please set all or none of bitcoind.rpcuser, bitcoind.rpcpass, bitcoind.zmqpubrawblock, bitcoind.zmqpubrawtx
But i'm starting this command in the same folder, as i have .cookie (/home/user/.bitcoin)
Then i removed command "rpcuser and rpcpass" and got this:
Attempting automatic RPC configuration to bitcoind unable to load RPC credentials for bitcoind: unable to extract RPC credentials: unable to find zmqpubrawblock in config, cannot start w/o RPC connection
so, just deleting them, did not helped.
any ideas? how to sort it out?
|
|
|
Thank you for your help, but i can't see cookies file inside .bitcoin folder. I see only these files:
/home/user/.bitcoin$ ls banlist.dat bitcoin.conf bitcoind.pid blocks chainstate debug.log fee_estimates.dat mempool.dat peers.dat testnet3 wallets
Also was trying to run with any user/passw, but got this error:
$ lnd --bitcoin.active --bitcoin.testnet --debuglevel=debug --bitcoin.node=bitcoind --bitcoind.rpcuser=hello --bitcoind.rpcpass=world --externalip=x.x.x.x
unable to load RPC credentials for bitcoind: please set all or none of bitcoind.rpcuser, bitcoind.rpcpass, bitcoind.zmqpubrawblock, bitcoind.zmqpubrawtx
trying to paste to pastebin, but it's also not working:
pastebinit -i debug.log Failed to contact the server: HTTP Error 502: Bad Gateway
|
|
|
Can you try this command instead of bitcoind -daemon add extra - to daemon it looks like this Can you try this command the above still don't work bitcoin-cli -rpcuser=user -rpcpassword=pass -rpcport=8332 getinfo 1. The first command with two "--" before daemon - worked out. It started and never crashed! Thank you. By the way, what is the diference between: bitcoind -daemon and bitcoind --daemon 2. Where do i set/change "-rpcuser=user -rpcpassword=pass " these credentials?
|
|
|
Can you try this command instead of bitcoind -daemon add extra - to daemon it looks like this Can you try this command the above still don't work bitcoin-cli -rpcuser=user -rpcpassword=pass -rpcport=8332 getinfo The first command managed to start the program, that's great! But the second, gives the error: user@ubuntu:~$ bitcoin-cli -rpcuser=user -rpcpassword=pass -rpcport=8332 getinfo error: Authorization failed: Incorrect rpcuser or rpcpassword This program never asked for the user or password, so i've never enter or change it.
|
|
|
It seems your bitcoin.conf file is not properly setup that's why you get that error sometimes.
Can you check your bitcoin.conf file and share it here or if you don't have bitcoin.conf file make a new one and add these codes below as samples.
Hello once again, Tried both of your config samples, but for some reason daemon still crashing. user@ubuntu:~$ bitcoind -daemon Bitcoin Core starting user@ubuntu:~$ bitcoin-cli getconnectioncount error: Could not connect to the server 127.0.0.1:8332 Make sure the bitcoind server is running and that you are connecting to the correct RPC port. user@ubuntu:~$ Any ideas? :|
|
|
|
It seems your bitcoin.conf file is not properly setup that's why you get that error sometimes.
You right. There was no conf file at all. Created, pasted your first example, looks like it is working now Thank you. time for lightning now...
|
|
|
Is there any log for bitcoin core? As you can see below, when i check connection count for the first time, it says 9. But trying the same command after ±20min. it says that core is not running. Where should i look for the errors?
user@ubuntu:~$ bitcoin-cli getconnectioncount 9 user@ubuntu:~$ bitcoin-cli getconnectioncount error: Could not connect to the server 127.0.0.1:8332
Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
|
|
|
TY, Another question, which location should i use?
$ locate -i bitcoind /home/user/downloads/bitcoin-0.20.1/bin/bitcoind /home/user/downloads/bitcoin-0.20.1/share/man/man1/bitcoind.1 /usr/local/bin/bitcoind
p.s. yes, its Ubuntu server.
|
|
|
Trying to install lnd but it says: "This command requires bitcoind (almost any version should do) to be available in the system's $PATH variable. Otherwise some of the tests will fail." Was trying to find examples on the web, but could not. How do i do this variable? TY
|
|
|
I just use a symlink for my blocks-directory. This keeps chainstate on my SSD, and puts blocks on my (much larger) HDD. Note: don't move the blocks directory while Bitcoin Core is running.This solution sounds even better T.Y.
|
|
|
When bitcoin-qt is first run, it should automatically create a .bitcoin directory in the users "home" directory aka ~/.bitcoin and it should prompt to ask where to set the datadir to. If you've already used that, you can try a couple of things to "move" the datadir:
I'm using CLI version, so there was no prompt as it is in the GUI version. As well it did not asked me during the "installation" So i will try "-choosedatadir" option" or bitcoin.conf (the one i was looking for), but looks like i have to create it by my self.
|
|
|
Hello, The installation of btc core, put's the program (as well as all 350GB) on the main disk, while doing installation:
sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-0.20.1/bin/*
But i believe, after installation there should be a configuration file somewhere, so i could point all database to the external drive, while keeping the program on the boot drive.
How do i do that?
Thank you
|
|
|
|