error: timeout on transient error: Could not connect to the server 127.0.0.1:8333 (error code 1 - “EOF reached”) #27121

issue GaloisField2718 openend this issue on February 17, 2023
  1. GaloisField2718 commented at 6:19 pm on February 17, 2023: none

    When I’m trying to use bitcoin-cli while bitcoind running it displays error message :

     0Make sure the bitcoind server is running and that you are connecting to the correct RPC port.```
     1
     2<!--- What behavior did you expect? -->
     3
     4running command : `bitcoin-cli getblockchaininfo` 
     5
     6<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
     7
     8` bitcoind -txindex `
     9```[...] 2023-02-17T18:03:20Z Bound to 127.0.0.1:8334
    102023-02-17T18:03:20Z Bound to [::]:8333
    112023-02-17T18:03:20Z Bound to 0.0.0.0:8333
    12[...] ```
    13
    14<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
    15
    16I am on MacOS Ventura 13.1 intel i5 MacBook Pro.
    17
    18<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
    19
    20`2023-02-17T18:03:07Z Bitcoin Core version v24.0.1 (release build)`
    21
    22
    23<!-- Any extra information that might be useful in the debugging process. -->
    24
    25I saw a related issue few years ago and apparently this issue should to be patched. 
    
  2. GaloisField2718 added the label Bug on Feb 17, 2023
  3. maflcko commented at 3:39 pm on February 20, 2023: member
    How reliably can you reproduce the issue, what are the steps to do so?
  4. GaloisField2718 commented at 6:34 pm on February 20, 2023: none

    Hello,

    Now it’s solved but initially it was only : launch bitcoind In another window launching bitcoin-cli getblockchaininfo command.

    What weird was the absence of message : bitcoin-cli command not found.

    Because now I think it’s because I didn’t call the path where is bin/bitcoin-cli.

    Or maybe because the chain didn’t finished to load and so I should wait.

    I don’t know exactly but now it’s solve I will close it.

    Thank you very much for your answer !!🙌

  5. GaloisField2718 closed this on Feb 20, 2023

  6. epiccurious commented at 11:52 am on June 11, 2023: contributor

    Adding more context to this closed issue in case other people stumble on it too.

    I was able to reproduce this error with a script running Bitcoin Core 25.0 and 24.0.1 (x86_64-linux-gnu on Ubuntu).

    Steps to reproduce:

    1. Delete the data directory.
    2. Launch bitcoin-qt --server.
    3. Immediately check the chain state with bitcoin-qt getblockchaininfo.

    The RPC server doesn’t have enough time to initialize, so the call to port 8333 fails.

    Fixed the issue by using the rpcwait option: bitcoin-cli --rpcwait getblockchaininfo

  7. bitcoin locked this on Jun 10, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-21 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me