Ethereum: bitcoin-cli getinfo error code: -28

Ethereum Bitcoin-CLI Getinfo Error Code: -28 on OSX Sierra

Having trouble accessing Ethereum blockchain information using the Bitcoin-CLI command-line interface (CLI)? Specifically, you are encountering error code -28 when attempting to retrieve information using bitcoin-cli getinfo on your Mac running macOS Sierra. In this article, we will look at the possible causes and solutions for this issue.

What does “-28” mean?

Ethereum: bitcoin-cli getinfo error code: -28

The error code “-28” is a standard return code on Unix-like systems, including OSX Sierra. It usually indicates an unexpected operation or an internal system error that cannot be resolved with the CLI.

Bitcoin-CLI getinfo Command:

Before we explore the possible solutions, let’s briefly review what the “getinfo” command does.

  • Returns information about a block, such as its hash, timestamp, size, and more.
  • Lists the available addresses (also known as “addresses” or “keys”) in the blockchain.

Issue with Bitcoin-CLI on OSX Sierra:

The error code “-28” is specific to the “getinfo” command. When you run bitcoin-cli getinfo, it is most likely trying to retrieve information from the database that stores blockchain data, including addresses and other metadata. However, for various reasons (such as configuration or system issues), the CLI may encounter an internal error, resulting in a return code of “-28”.

Possible solutions:

  • Check your Bitcoin-CLI configuration: Make sure you are using the latest version of Bitcoin-CLI on your Mac. You can update the CLI by running git clone && cd btccli && ./configure --with-database=/path/to/database and then re-running `. /configure’. This should help resolve any database-related issues.
  • Restart your Bitcoin-CLI session:

    Sometimes, simply restarting the CLI can resolve connectivity issues or other issues that may be causing the error code “-28”.

  • Disable IPv6: If you are experiencing issues with DNS resolution or connectivity, consider disabling IPv6 on your system. This is because the “getinfo” command relies on DNS resolution to obtain address information from the blockchain. Disabling IPv6 may help resolve this issue.

Additional troubleshooting steps:

If none of the above solutions work, try:

  • Check for conflicts with other Bitcoin-CLI commands. Make sure there are no conflicting commands running in the background that could interfere with the getinfo command.
  • System Network Connectivity Check: Make sure you have a stable and reliable internet connection to access blockchain information outside of your local machine.

Conclusion:

The error code “-28” returned by Bitcoin-CLI on OSX Sierra due to an internal system issue is usually not a critical issue. By checking for configuration issues, restarting the CLI session, or disabling IPv6 (if applicable), you should be able to resolve the issue and access Ethereum blockchain information using bitcoin-cli getinfo.

Leave a Comment

Your email address will not be published. Required fields are marked *

Open chat
Hello 👋
Can we help you?