1

I've installed bitcoin-cli from here

I run the bitcoin core on Ubuntu 20.04 (AWS EC2).

mac-os also experiences similar problems.

Ubuntu 20.04 screen capture for the error messages

The commands I've ran :

Installation on Linux (Ubuntu 20.04) • Download and extract the package

$ wget https://bitcoin.org/bin/bitcoin-core-22.0/bitcoin-22.0-x86_64-linux-gnu.tar.gz

$ tar -xzf bitcoin-22.0-x86_64-linux-gnu.tar.gz

• Installation

$ cd bitcoin-22.0
$ sudo install -m 0755 -o root -g root -t /usr/local/bin bitcoin-22.0/bin/*

• Start a node

$ bitcoind -testnet -daemon

Check blockchain status

$ bitcoin-cli -testnet getblockchaininfo

After I started a node, and i try to run some bitcoin-cli-testnet commands , the following error comes :

error: timeout on transient error: Could not connect to the server 127.0.0.1:8332
4
  • 1
    Please add the exact commands you've ran Commented Mar 22, 2022 at 10:35
  • 1
    Please edit your question with additional information instead of adding it as a comment, as comments could get removed. Commented Mar 22, 2022 at 11:13
  • Please use the appropriate code tags to drastically improve the readability of your question and eliminate formatting errors. Also please add the output of the commands, as most people are not good enough at mind-reading. Commented Mar 22, 2022 at 15:57
  • Check if the service is running on the port by executing sudo netstat -tulpn Commented Mar 22, 2022 at 16:06

2 Answers 2

0

I started using bitcoin core 2 years ago. I recommend you first start by opening the application version, not the daemon, just to make sure you have finished the installation correctly:

$ bitcoin-qt

Then, wait for the blockchain to sync. That could take a couple of days.

Alternatively, you could do this:

$ bitcoind -testnet -daemon & tail -f ~/.bitcoin/debug.log

However, it is always recommended to build the software from the source code. You can find a very thorough guide here (plus you get the bonus to learning how to operate your node using TOR network, and how to build your lightning node. If you dont want to do that, just ignore those parts of the tutorial)

https://stopanddecrypt.medium.com/running-bitcoin-lightning-nodes-over-the-tor-network-2021-edition-489180297d5

2
  • Not helpful. QT does not launch an obvious daemon and doubt it launches one at all. Commented Jun 24, 2022 at 20:53
  • Come on! Did you even read what I wrote? I said launch QT only to figure out if your conf file is correctly configured, and then on the second line I give u a line that prints the log of launching the bitcoin daemon in testnet. Commented Jun 26, 2022 at 7:57
0

I wanted to add a comment, but I am brand new to this forum. Working with Fedora39. I have the same error message, this happened after half a day of serving as a node without any problem : $bitcoin-cli getconnectioncount => 59... Then suddenly "time out on transient error" Let's go back : I strictly followed the "Running a full node" paper from bitcoin.org. Downloading the entire blockchain on a 2To SSD dedicated volume OK, roughly 2 days. The end occured during the night so in the morning I saw only a message asking for creating a wallet, that I did, an empty wallet. Then I configured my routeur for incoming connections on ports 8333 and 18333. All was OK till then. I started the GUI : $bitcoinqt But the screen I got is the same as the initial screen I got when starting to download the entire blockchain, as if he' didn't knew the blockchain was already there. So I tried the daemon way : $bitcoind -daemon Everything went smootly for a few hours then the message "time out on transient error" happened, Any idea ? Thanks, armel

2
  • 1
    As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Jul 11 at 13:34
  • Thanks for your answer. I have downloaded the whole blockchain. The only positive sign it was successful is the number of connections (>10) obtained by bitcoin-cli getconnectioncount. BUT::
    – arb2065694
    Commented Jul 14 at 9:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .