Author

Topic: ThreadRPCServer incorrect password attempt from 127.0.0.1:<port> (Read 180 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
Quote
I got curious, so i dig Bitcoin Core repository and found out both REST and RPC use same port[1]. It implies Bitcoin Core can't use both at same time.

This is incorrect, you can use both RPC and REST at the same time.

For example:

--snip--

Thank you for the correction. I just tried that on my Bitcoin Core node and indeed both RPC and REST works. Although i find it's very unusual one port accept two different protocol since most software usually would separate it.
member
Activity: 99
Merit: 20
Quote
I got curious, so i dig Bitcoin Core repository and found out both REST and RPC use same port[1]. It implies Bitcoin Core can't use both at same time.

This is incorrect, you can use both RPC and REST at the same time.

For example:

Code:
$ curl -s http://localhost:8332/rest/mempool/info.json | jq
{
  "loaded": true,
  "size": 112484,
  "bytes": 54413157,
  "usage": 277410432,
  "total_fee": 1.66517559,
  "maxmempool": 300000000,
  "mempoolminfee": 1e-05,
  "minrelaytxfee": 9.99e-06,
  "incrementalrelayfee": 1e-05,
  "unbroadcastcount": 0,
  "fullrbf": false
}
$ bitcoin-cli getmempoolinfo
{
  "loaded": true,
  "size": 112519,
  "bytes": 54420837,
  "usage": 277461216,
  "total_fee": 1.66604331,
  "maxmempool": 300000000,
  "mempoolminfee": 0.00001000,
  "minrelaytxfee": 0.00000999,
  "incrementalrelayfee": 0.00001000,
  "unbroadcastcount": 0,
  "fullrbf": false
}

hero member
Activity: 1253
Merit: 811
Have you read the previous messages?

I have no clients that connect to Bitcoin Core via RPC.
I have no rpcuser and no rpcpassword in my bitcoin.conf file.
hero member
Activity: 1253
Merit: 811
Hi, I am the main FBBE developer

I can confirm FBBE works without RPC authentication, only via unauthenticated REST as a design choice.

I am not sure why you were seeing those log messages about authentication attempts but they should not be related to FBBE (or there is a bug I am not yet aware)

> though I suspect it also applies to the REST API as well as I have not seen a different set of credentials for it.

The point of the REST interface is exactly that you don't need authentication, as clearly stated in the title of the official doc https://github.com/bitcoin/bitcoin/blob/e253568da8dc3693ad99aee260276233245e3d77/doc/REST-interface.md
The REST interface provides only data about the blockchain and the mempool, it cannot interact with the wallet, this is why could be used without authentication

Glad to highlight your work with my topic Grin

It was not my intention to link FBBE with those errors... but I got them just after adding the settings requested by FBBE (txindex and rest), before running FBBE for the first time.

Anyway - coming back to the topic - it is weird that now I have no longer those errors in Bitcoin Core log... and can't figure out why I got them Undecided
member
Activity: 99
Merit: 20
Hi, I am the main FBBE developer

I can confirm FBBE works without RPC authentication, only via unauthenticated REST as a design choice.

I am not sure why you were seeing those log messages about authentication attempts but they should not be related to FBBE (or there is a bug I am not yet aware)

> though I suspect it also applies to the REST API as well as I have not seen a different set of credentials for it.

The point of the REST interface is exactly that you don't need authentication, as clearly stated in the title of the official doc https://github.com/bitcoin/bitcoin/blob/e253568da8dc3693ad99aee260276233245e3d77/doc/REST-interface.md
The REST interface provides only data about the blockchain and the mempool, it cannot interact with the wallet, this is why could be used without authentication
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
The application is FBBE.
Seems RPC auth was not requested... or in your opinion was implied by author?

When you want to use the Bitcoin Core API in third party applications, you must do it by exposing RPC credentials, so in this case, the username and password. This is true for JSON-RPC, though I suspect it also applies to the REST API as well as I have not seen a different set of credentials for it.

If you don't specify -rpcuser and -rpcpassword, it defaults to a "cookie-based authentication" where the username is "cookie" and the password is randomly generated at launch and saved to a file.

hero member
Activity: 1253
Merit: 811
It worked, without setting any RPC login details.

Anyway, what about my main question?
I don't know what's the cause of why it isn't working on FBBE without an RPC login but based on the error it requires RPC credentials.

If the BTC RPC explorer worked then why not use that instead of FBBE?
Or I think bring your issue directly to their issue page below the developer might be able to help you
- https://github.com/RCasatta/fbbe/issues

Ehm... I said I solved, FBBE works without settings any RPC login details.

Anyway, there are no longer those error messages in the log Huh Lips sealed Roll Eyes Shocked

So, nevermind... and thank you for your support Wink
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
It worked, without setting any RPC login details.

Anyway, what about my main question?
I don't know what's the cause of why it isn't working on FBBE without an RPC login but based on the error it requires RPC credentials.

If the BTC RPC explorer worked then why not use that instead of FBBE?
Or I think bring your issue directly to their issue page below the developer might be able to help you
- https://github.com/RCasatta/fbbe/issues

hero member
Activity: 1253
Merit: 811

The application is FBBE.
Seems RPC auth was not requested... or in your opinion was implied by author?
I never heard of this FBBE and I tried to check the GitHub page and codes I can't seems to find where you can edit RPC configuration unlike other Block explorer out there that has .env file where you can configure RPCuser/password.

Why not use another explorer like BTC RPC Explorer? There is a guide here that you can follow.
- https://bitcointalksearch.org/topic/instructions-installation-btc-rpc-block-explorer-under-ubuntu-5368219

It worked, without setting any RPC login details.

Anyway, what about my main question?
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook

The application is FBBE.
Seems RPC auth was not requested... or in your opinion was implied by author?
I never heard of this FBBE and I tried to check the GitHub page and codes I can't seems to find where you can edit RPC configuration unlike other Block explorer out there that has .env file where you can configure RPCuser/password.

Why not use another explorer like BTC RPC Explorer? There is a guide here that you can follow.
- https://bitcointalksearch.org/topic/instructions-installation-btc-rpc-block-explorer-under-ubuntu-5368219
hero member
Activity: 1253
Merit: 811
What exactly the 3rd part application?
Are you trying to run a blockchain explorer?

The error seems related to RPC since you don't added some flags under bitcoin.conf to run RPC. Copy this setup below and paste it to the bitcoin.conf

Code:
server=1
daemon=1
rpcuser=
rpcpassword=

The application is FBBE.
Seems RPC auth was not requested... or in your opinion was implied by author?
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
What exactly the 3rd part application?
Are you trying to run a blockchain explorer?

The error seems related to RPC since you don't added some flags under bitcoin.conf to run RPC. Copy this setup below and paste it to the bitcoin.conf

Code:
server=1
daemon=1
rpcuser=
rpcpassword=
legendary
Activity: 1512
Merit: 7340
Farewell, Leo
There is only one likely reason this happens. You have given incorrect authentication credentials to the blockchain explorer software, so Bitcoin Core continuously returns that someone attempted to connect incorrectly. Check if you have written the correct password, or if you're using a cookie file, check if that is configurable by the blockchain explorer software.
hero member
Activity: 1253
Merit: 811
Hello, I have added the following parameters to bitcoin.conf:

Code:
txindex=1
rest=1

There are requested by a third part application to run a blockchain explorer.

Now in the Bitcoin Core file there are a lot of "ThreadRPCServer incorrect password attempt from 127.0.0.1" errors, where port is different each time the error occurs.

What does it mean?

Jump to: