Bitcoin Forum
September 25, 2024, 03:04:37 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: LOG for errors on: February 20, 2021, 06:44:14 PM

@crystal-love, are you actually trying to get a lightning node setup as well? or do you just want a Bitcoin Core node? Huh

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 Smiley
2  Bitcoin / Bitcoin Technical Support / Re: LOG for errors on: January 27, 2021, 03:27:43 PM

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?
3  Bitcoin / Bitcoin Technical Support / Re: LOG for errors on: January 27, 2021, 02:23:19 PM
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
4  Bitcoin / Bitcoin Technical Support / Re: LOG for errors on: January 25, 2021, 10:51:56 AM
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/1a72e9fea94405be449edbd379a1ce57

Content 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
5  Bitcoin / Bitcoin Technical Support / Re: LOG for errors on: January 24, 2021, 07:44:51 PM

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?




6  Bitcoin / Bitcoin Technical Support / Re: LOG for errors on: January 20, 2021, 03:14:51 PM

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
7  Bitcoin / Bitcoin Technical Support / Re: LOG for errors on: January 15, 2021, 07:29:01 PM
Can you try this command instead of bitcoind -daemon add extra - to daemon it looks like this
Code:
bitcoind --daemon

Can you try this command the above still don't work
Code:
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?
8  Bitcoin / Bitcoin Technical Support / Re: LOG for errors on: January 12, 2021, 11:45:32 PM
Can you try this command instead of bitcoind -daemon add extra - to daemon it looks like this
Code:
bitcoind --daemon

Can you try this command the above still don't work
Code:
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.
9  Bitcoin / Bitcoin Technical Support / Re: LOG for errors on: January 12, 2021, 12:53:39 PM
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? :|
10  Bitcoin / Bitcoin Technical Support / Re: LOG for errors on: January 11, 2021, 08:39:44 PM
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 Smiley Thank you.

time for lightning now...

11  Bitcoin / Bitcoin Technical Support / LOG for errors on: January 11, 2021, 05:41:40 PM
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.
12  Bitcoin / Bitcoin Technical Support / Re: bitcoind in the system's $PATH variable on: January 11, 2021, 12:41:10 PM
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.
13  Bitcoin / Bitcoin Technical Support / bitcoind in the system's $PATH variable on: January 11, 2021, 12:19:18 PM

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?  Huh

TY
14  Bitcoin / Bitcoin Technical Support / Re: Change location of database (Linux ARM CLI) on: January 10, 2021, 06:04:04 PM
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 Smiley
T.Y.
15  Bitcoin / Bitcoin Technical Support / Re: Change location of database (Linux ARM CLI) on: January 10, 2021, 05:56:24 PM
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" Smiley
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.

16  Bitcoin / Bitcoin Technical Support / Change location of database (Linux ARM CLI) on: January 08, 2021, 01:34:49 PM
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
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!