There was probably an issue with how bitcoind was shut down and the chain data was corrupted. That would be my guess I had this issue in the past, but havenāt encountered it for quite a while now.
How do I get to the equivalent Power Shell on MAC OS?
Mac OS has a terminal you can use. It should be in your Applications or Utilities.
hey guys, iĀ“m having problem with to open Bitcoindā¦
I first downloaded bitcoin-core directly from ubuntu āsoftware -storeā but from there i couldnĀ“t reach the bitcoind and bitcoin qt tabsā¦ So I downloaded bitcoin core from the browser and afterwards I couldnt open at all either bitcoind or bitcoin qt tab.
What should I try next?
Hey @MarkusJohansson
If you installed Bitcoin using a package manager you can already use it. Try typing bitcoind
(without any slashes).
Hello there,
So when I do bitcoin-cli get new address (whether in bitcoind mainnet, regtest, testnet) I get a notice that I need to create a wallet (which I did) ā¦ but perhaps you may need to tell folks. All I did was follow the directions and typed createnewwallet ā¦ and it seemed happy after that.
Thanks for letting us know. This might be the case with never Bitcoin core versions, it used to create a default wallet on its own. Iāll investigate to see if this is the case.
@Alko89 @DrJoe thanks for the heads up! I just ran into this as well, may want to add a note for future students that:
./bitcoin-cli getnewaddress
returns:
error code: -18
error message:
No wallet is loaded. Load a wallet using loadwallet or create a new one with createwallet. (Note: A default wallet is no longer automatically created)
so instead I had to use:
./bitcoin-cli createwallet testwallet
which returns:
{
"name": "testwallet",
"warning": ""
}
And then ./bitcoin-cli getnewaddress returns a new address
Just tryna help the future students!
Hmmā¦ I dont have my BTC Blockchain in the standard Folder:
āUser/yourname/Appdata/Roaming/Bitcoinā
(I have it on a different hard drive)
Is there a way to change the file path before I run Bitcoind?
Edit:
I think this works:
./bitcoind -datadir=C:\YourPathā¦ -printtoconsole
If you would like to do this permanently create a ~/.bitcoin/bitcoin.conf
file and include:
datadir=\your\path
Hmmm, I think youāre mixing UNIX and Windows config folders. Though the node might be that smart to convert it itself.
Here is the reference:
https://en.bitcoin.it/wiki/Data_directory
I am running an umbrel.local node. I can SSH into it from the command line but can I interact with it? If so how do I use the bitcoin-cli with my umbrel node?
It seems they are using docker to run the node, try executing the cli commands with docker exec -it bitcoind bitcoin-cli <COMMAND>
.
So I was able to start docker with
-v ~/.bitcoin:/data/.bitcoin \
-p 8332:8332 \
-p 28332:28332 \
-p 28333:28333 \
--name bitcoind \
lncm/bitcoind:v0.21.0
This returns the docker ID of the container thatās being run in the background. But then, whichever command I run, as eg this:
docker exec -it bitcoind bitcoin-cli --help
I get Error: No such container: bitcoind
I figured that Iāll stick to Ubuntu in a VM or PowerShell on my Windows system which works to interact.
Does getumbrel provide direct support where I can ask them?
The container should already be running so you donāt need to start it on your own. You can check using docker ps -a
.
You can also interact with the container using the container ID docker exec -it <CONTAINERID> bitcoin-cli --help
.
Not sure, but on their website they have Telegram and Reddit. Maybe you can try there.
Since I noticed Umbrel is a RPi image and if you want to play around more you can also try myNode. A college here on forum loves it @Fabrice.
Hi, I installed bitcoin core on my mac book. i am not synchronising it because of the space it gonna take on my pc. but i was trying to find bitcoind.exe fileā¦ i couldnāt find itā¦ how you find that file. ?
well after googling, i did find to install some package for bitcoind file from bitcoin.org using command line. i did soā¦ now i have a directory with
user/library/application support/bitcoin/
admins-MacBook-Pro:Bitcoin admin$ ls
banlist.dat debug.log settings.json
bitcoind.pid fee_estimates.dat wallets
blocks mempool.dat
chainstate peers.dat
but there is no daemon folder or bitcoind file
waiting for reply.
Thanks
Anyone now how to great around this?? Any help is welcomed.
You will have to go into the app folder you installed Bitcoin core and right clicking it then choose Show Package Contents
. You should have bitcoind
in that package, note that *nix executables donāt have the .exe extension, this is windows specific. You will have to navigate your terminal to that folder to use it.
Have you been running Bitcoin before? Your db seems to be corrupt. You can fix this by running bitcoind
from the terminal using -reindex
.
You can also just remove data directory, be careful since this will also remove the wallet.
https://en.bitcoin.it/wiki/Data_directory
I never tried umbrel, but it looks cool. The MynodeBTC image is so amazing and keeps evolving. They have a telegram group and if you pay a 99$ premium, you get more functionalities like '1 click button to update everything using a script. So you donāt need to update everything separately. With premium you have access to a separate telegram group for support and email.
Iāve just updated it, Took some screenshots:
you should be able to just use bitcoin-cli through ssh. If I just type bitcoin-cli on my pi through ssh, I got this:
but I can use the CLI in the GUI somewhere as well