ordinals / ord

👁‍🗨 Rare and exotic sats
https://ordinals.com
Creative Commons Zero v1.0 Universal
3.81k stars 1.35k forks source link

error trying to connect: tcp connect error: Connection refused (os error 111) #3347

Open hedansun opened 5 months ago

hedansun commented 5 months ago

error trying to connect: tcp connect error: Connection refused (os error 111)

Please allow the rpc endpoint to connect, because the local node is also provided to other services.

raphjaph commented 5 months ago

Please provide more information

hedansun commented 5 months ago

Please provide more information

https://github.com/ordinals/ord/issues/3337#issuecomment-2011379057

It is mentioned here to use .cookie files, but my local node uses rpc endpoint and user and pass login. Can the rpc endpoint use user password to log in and generate .cookie file?

hedansun commented 5 months ago

Please provide more information

./ord --config-dir . --bitcoin-rpc-user user --bitcoin-rpc-pass user --rpc-url http://127.0.0.1:8332 --data-dir . wallet balance

ord-0.15.0 Can work

ord-0.16.0 Not work

bingryan commented 5 months ago

use --bitcoin-rpc-url , not use --rpc-url. ord --help get more info.

nick07002 commented 5 months ago

@raphjaph I have the same issue.

Local bitcoind running fine. Using curl command I can access RPC properly.

Created a wallet by using ord correct. then when trying to access wallet balance it always return back tcp error os error 111.

my command:

./ord --bitcoin-rpc-url http://127.0.0.1:8332 --bitcoin-rpc-username xxxx --bitcoin-rpc-password xxx wallet balance