Pocketchange (OP)
Jr. Member
Offline
Activity: 44
Merit: 22
|
|
January 14, 2023, 11:06:29 PM Last edit: January 16, 2023, 07:49:13 PM by Pocketchange Merited by LoyceV (4), o_e_l_e_o (4), ABCbits (1), paid2 (1) |
|
Hi everyone,
I'm trying to install mempool along a bitcoin core node.
Can anyone tell me what the ip of my node is when its running under tor? I thought it was just 127.0.0.1:8332?
I'm having issues installing and getting "Got permission denied while trying to connect to docker daemon socket"
Thank you!
|
|
|
|
|
|
Once a transaction has 6 confirmations, it is extremely unlikely that an attacker without at least 50% of the network's computation power would be able to reverse it.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
BitcoinPanther
|
|
January 14, 2023, 11:48:45 PM |
|
It looks like you are running into a problem with permission when trying to connect to the Docker daemon socket since this error message convey that the user running the command does not have permission to access the Docker daemon. Try running the command with "sudo" prefixes or try to fix the issue by adding your user to the docker group sudo usermod -aG docker $USER Then relog-in (log out then log-in) Can anyone tell me what the ip of my node is when its running under tor? I thought it was just 127.0.0:8332? The IP should be a tor hidden service address like string of letters with .onion (abcdefghjkl.onion) which is accessible only via TOR network and I think cannot be accesed by a regular IP. It looks like you want to run your node as hidden service, so you need to configure your node by editing your torrc file and add the follwing lines HiddenServiceDir /var/lib/tor/bitcoin-service/ HiddenServicePort 8332 127.0.0.1:8332
You will find the actual address of your node in the file named hostname in the directory you specified on the HiddenServiceDir option
|
|
|
|
Pocketchange (OP)
Jr. Member
Offline
Activity: 44
Merit: 22
|
|
January 15, 2023, 12:19:19 AM Last edit: January 15, 2023, 12:32:39 AM by Pocketchange |
|
Thanks Panther!
I appreciate it!
Now Im getting: WARN: runMainLoop error: connect ECONNREFUSED 127.0.0.1:8332
EDIT: I added the lines into the torrc file but still getting the message above HiddenServiceDir /var/lib/tor/bitcoin-service/ HiddenServicePort 8332 127.0.0.1:8332
Thanks again!
|
|
|
|
BlackBoss_
Sr. Member
Offline
Activity: 630
Merit: 399
Rollbit - the casino for you. Take $RLB token!
|
|
January 15, 2023, 03:12:02 AM |
|
You will get better support by moving this thread to Bitcoin Technical Support board. Forum experts are more actively in that board than in the Bitcoin Discussion board that has more spam topics. Click on Move topic at bottom left and choose Bitcoin Technical Support board.
|
|
|
|
R |
▀▀▀▀▀▀▀██████▄▄ ████████████████ ▀▀▀▀█████▀▀▀█████ ████████▌███▐████ ▄▄▄▄█████▄▄▄█████ ████████████████ ▄▄▄▄▄▄▄██████▀▀ | LLBIT | | | 4,000+ GAMES███████████████████ ██████████▀▄▀▀▀████ ████████▀▄▀██░░░███ ██████▀▄███▄▀█▄▄▄██ ███▀▀▀▀▀▀█▀▀▀▀▀▀███ ██░░░░░░░░█░░░░░░██ ██▄░░░░░░░█░░░░░▄██ ███▄░░░░▄█▄▄▄▄▄████ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ | █████████ ▀████████ ░░▀██████ ░░░░▀████ ░░░░░░███ ▄░░░░░███ ▀█▄▄▄████ ░░▀▀█████ ▀▀▀▀▀▀▀▀▀ | █████████ ░░░▀▀████ ██▄▄▀░███ █░░█▄░░██ ░████▀▀██ █░░█▀░░██ ██▀▀▄░███ ░░░▄▄████ ▀▀▀▀▀▀▀▀▀ |
| | | ██░░░░░░░░░░░░░░░░░░░░░░██ ▀█▄░▄▄░░░░░░░░░░░░▄▄░▄█▀ ▄▄███░░░░░░░░░░░░░░███▄▄ ▀░▀▄▀▄░░░░░▄▄░░░░░▄▀▄▀░▀ ▄▄▄▄▄▀▀▄▄▀▀▄▄▄▄▄ █░▄▄▄██████▄▄▄░█ █░▀▀████████▀▀░█ █░█▀▄▄▄▄▄▄▄▄██░█ █░█▀████████░█ █░█░██████░█ ▀▄▀▄███▀▄▀ ▄▀▄▀▄▄▄▄▀▄▀▄ ██▀░░░░░░░░▀██ | | | | | | | . ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ░▀▄░▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄░▄▀ ███▀▄▀█████████████████▀▄▀ █████▀▄░▄▄▄▄▄███░▄▄▄▄▄▄▀ ███████▀▄▀██████░█▄▄▄▄▄▄▄▄ █████████▀▄▄░███▄▄▄▄▄▄░▄▀ ████████████░███████▀▄▀ ████████████░██▀▄▄▄▄▀ ████████████░▀▄▀ ████████████▄▀ ███████████▀ | ▄▄███████▄▄ ▄████▀▀▀▀▀▀▀████▄ ▄███▀▄▄███████▄▄▀███▄ ▄██▀▄█▀▀▀█████▀▀▀█▄▀██▄ ▄██▀▄██████▀████░███▄▀██▄ ███░█████████▀██░████░███ ███░████░█▄████▀░████░███ ███░████░███▄████████░███ ▀██▄▀███░█████▄█████▀▄██▀ ▀██▄▀█▄▄▄██████▄██▀▄██▀ ▀███▄▀▀███████▀▀▄███▀ ▀████▄▄▄▄▄▄▄████▀ ▀▀███████▀▀ | | OFFICIAL PARTNERSHIP FAZE CLAN SSC NAPOLI | | |
|
|
|
Pocketchange (OP)
Jr. Member
Offline
Activity: 44
Merit: 22
|
|
January 15, 2023, 05:40:17 AM |
|
Click on Move topic at bottom left and choose Bitcoin Technical Support board.
Done & thank you! Nice that we can move a thread on our own.
|
|
|
|
vv181
Legendary
Offline
Activity: 1932
Merit: 1273
|
8332 is the default port of bitcoin RPC. You should use the actual mempool frontend port. What tutorial did you follow to install Mempool? Did you use this one Configure with Bitcoin Core Only? Now Im getting: WARN: runMainLoop error: connect ECONNREFUSED 127.0.0.1:8332
That error, where did you get that from? HiddenServiceDir /var/lib/tor/bitcoin-service/ HiddenServicePort 8332 127.0.0.1:8332
This is an incorrect configuration to expose the mempool to Tor networks. If you follow the mempool docker guidelines above, the default mempool frontend application is exposed on port 80, so the Tor configuration you should use is HiddenServiceDir /var/lib/tor/bitcoin-service/ HiddenServiceVersion 3 HiddenServicePort 80 127.0.0.1:80
To see the onion address, after restarting Tor service, run the command: sudo cat /var/lib/tor/bitcoin-service/hostname
|
|
|
|
Pocketchange (OP)
Jr. Member
Offline
Activity: 44
Merit: 22
|
|
January 15, 2023, 05:26:30 PM Last edit: January 15, 2023, 06:28:44 PM by Pocketchange |
|
What tutorial did you follow to install Mempool? Did you use this one Configure with Bitcoin Core Only? Now Im getting: WARN: runMainLoop error: connect ECONNREFUSED 127.0.0.1:8332
That error, where did you get that from? I used ministry of nodes youtube install but he's on electrum : https://www.youtube.com/watch?v=I2SzBqcsXaE&t=601sThe error is when I try to run docker-compose up what ip should I use when editing nano docker-compose.yml Here are the defaults: api: environment: MEMPOOL_BACKEND: "none" CORE_RPC_HOST: "172.27.0.1" CORE_RPC_PORT: "8332" CORE_RPC_USERNAME: "customuser" CORE_RPC_PASSWORD: "custompassword" Thank you vv181!
|
|
|
|
vv181
Legendary
Offline
Activity: 1932
Merit: 1273
|
|
January 16, 2023, 04:10:39 AM |
|
Now Im getting: WARN: runMainLoop error: connect ECONNREFUSED 127.0.0.1:8332
The error seems not caused by a wrongly configured IP setting, but rather the bitcoin RPC itself is not working. Make sure the bitcoin daemon have run properly, you can test it by running this command, $ bitcoin-cli -getinfo
|
|
|
|
Pocketchange (OP)
Jr. Member
Offline
Activity: 44
Merit: 22
|
|
January 16, 2023, 04:18:36 AM Last edit: January 16, 2023, 06:22:23 AM by Pocketchange |
|
Now Im getting: WARN: runMainLoop error: connect ECONNREFUSED 127.0.0.1:8332
The error seems not caused by a wrongly configured IP setting, but rather the bitcoin RPC itself is not working. Make sure the bitcoin daemon have run properly, you can test it by running this command, $ bitcoin-cli -getinfoHmm after running $ bitcoin-cli -getinfoI get a bunch of info on blocks, headers, version and proxies- no warnings. My apologies but Im really new to the space.
|
|
|
|
vv181
Legendary
Offline
Activity: 1932
Merit: 1273
|
|
January 16, 2023, 07:24:24 AM |
|
Nice, that means the bitcoin daemon is running and the RPC is working fine. Now, for this particular config, CORE_RPC_USERNAME: "customuser" CORE_RPC_PASSWORD: "custompassword" make sure it reflects the RPC authentication you have set up on bitcoin.confFor example, the following config should be the minimum setting to make it works. txindex=1 server=1 rpcuser=customuser rpcpassword=custompassword
After you have done that, restart the bitcoin service. Then start again the mempool docker.
|
|
|
|
Pocketchange (OP)
Jr. Member
Offline
Activity: 44
Merit: 22
|
|
January 16, 2023, 08:37:13 AM |
|
Nice, that means the bitcoin daemon is running and the RPC is working fine. Now, for this particular config, CORE_RPC_USERNAME: "customuser" CORE_RPC_PASSWORD: "custompassword" make sure it reflects the RPC authentication you have set up on bitcoin.confFor example, the following config should be the minimum setting to make it works. txindex=1 server=1 rpcuser=customuser rpcpassword=custompassword
After you have done that, restart the bitcoin service. Then start again the mempool docker. Thanks vv181, Ive done those steps above and added this into my torrc file. HiddenServiceDir /var/lib/tor/bitcoin-service/ HiddenServiceVersion 3 HiddenServicePort 80 127.0.0.1:80
Ive also added my node ip and 8332 into: nano docker-compose.yml Still the same error. Im stumped-
|
|
|
|
gunhell16
|
Now Im getting: WARN: runMainLoop error: connect ECONNREFUSED 127.0.0.1:8332
In this situation your node is trying to connect to a server in which is not reachable or running. And there are some other way to fix this problem such as follows below: a. Your firewall possible is blocking the connection, in this case you can check the port 8332 is open and accepting the connection in which is incoming. b. Your node configuration file of course must double check, to make sure that the configured with the ip address correct were the port of your server (127.0.0.1:8332). c. Now if your node is running on a container, make it sure the port is mapped correctly same goes with the cointainer is also correctly running. d. You also need to confirm that you have done this correctly with the bitcoin core daemon, and it should also be running on the IP address and port specified (127.0.0.1:8332)
|
|
|
|
Pocketchange (OP)
Jr. Member
Offline
Activity: 44
Merit: 22
|
|
January 17, 2023, 07:45:08 AM |
|
In this situation your node is trying to connect to a server in which is not reachable or running.
b. Your node configuration file of course must double check, to make sure that the configured with the ip address correct were the port of your server (127.0.0.1:8332).
Thanks gunhell16, Will adding these lines into the config file be enough? rpcport=8332 rpcallowip=127.0.0.1 rpcbind=0.0.0.0
|
|
|
|
|
|