GithubHelp home page GithubHelp logo

Comments (10)

behnammby avatar behnammby commented on June 14, 2024

Hi,
First check if the blockchain service is up and running.
docker ps | grep blockchain

If it is up and running check the logs
cd opendax && docker compose logs -f blockchian

If you couldn't find out what the problem is, you might send the blockchain logs here.

from opendax.

wahdatw avatar wahdatw commented on June 14, 2024

Thanks so much for the reply. The first command shows the docker is running.

root@vultr:/opendax# docker ps | grep blockchain
088a51b4b155 quay.io/openware/peatio:2.6.48 "bash -c 'bin/link_cā€¦" 37 hours ago Up 37 hours 3000/tcp opendax_blockchain_1
root@vultr:/opendax#

But the second command returns in error:

root@vultr:/opendax# docker compose logs -f blockchian
no such service: blockchian

from opendax.

wahdatw avatar wahdatw commented on June 14, 2024

@behnammby when I run docker logs opendax_blockchain_1 I get this log. I see a reference to port 8545 but my bitcoin node is running on 8333 (default) and in the opendax admin pannel I did give http://ip:8333 as server. What do you recommend?

p/app/services/blockchain_service.rb:18:in latest_block_number'\n/home/app/app/workers/daemons/blockchain.rb:27:in block (2 levels) in start'\n/home/app/app/workers/daemons/blockchain.rb:22:in loop'\n/home/app/app/workers/daemons/blockchain.rb:22:in block in start'"}
{"level":"WARN","time":"2023-02-25 09:18:28","message":"Error: Failed to open TCP connection to parity:8545 (getaddrinfo: Temporary failure in name resolution). Sleeping for 10 seconds"}
{"level":"ERROR","time":"2023-02-25 09:18:38","message":"#<Peatio::Blockchain::ClientError: Failed to open TCP connection to parity:8545 (getaddrinfo: Temporary failure in name resolution)>"}
{"level":"ERROR","time":"2023-02-25 09:18:38","message":"/home/app/lib/peatio/ethereum/blockchain.rb:72:in rescue in latest_block_number'\n/home/app/lib/peatio/ethereum/blockchain.rb:69:in latest_block_number'\n/home/app/app/services/blockchain_service.rb:18:in latest_block_number'\n/home/app/app/workers/daemons/blockchain.rb:27:in block (2 levels) in start'\n/home/app/app/workers/daemons/blockchain.rb:22:in loop'\n/home/app/app/workers/daemons/blockchain.rb:22:in block in start'"}
{"level":"WARN","time":"2023-02-25 09:18:38","message":"Error: Failed to open TCP connection to parity:8545 (getaddrinfo: Temporary failure in name resolution). Sleeping for 10 seconds"}
{"level":"ERROR","time":"2023-02-25 09:18:48","message":"#<Peatio::Blockchain::ClientError: Failed to open TCP connection to parity:8545 (getaddrinfo: Temporary failure in name resolution)>"}
{"level":"ERROR","time":"2023-02-25 09:18:48","message":"/home/app/lib/peatio/ethereum/blockchain.rb:72:in rescue in latest_block_number'\n/home/app/lib/peatio/ethereum/blockchain.rb:69:in latest_block_number'\n/home/app/app/services/blockchain_service.rb:18:in latest_block_number'\n/home/app/app/workers/daemons/blockchain.rb:27:in block (2 levels) in start'\n/home/app/app/workers/daemons/blockchain.rb:22:in loop'\n/home/app/app/workers/daemons/blockchain.rb:22:in block in start'"}
{"level":"WARN","time":"2023-02-25 09:18:48","message":"Error: Failed to open TCP connection to parity:8545 (getaddrinfo: Temporary failure in name resolution). Sleeping for 10 seconds"}
{"level":"WARN","time":"2023-02-25 09:18:51","message":"The runner for eth-testnet is up to date (2023-02-25 01:06:25 >= 2023-02-25 01:06:25)"}
{"level":"ERROR","time":"2023-02-25 09:18:58","message":"#<Peatio::Blockchain::ClientError: Failed to open TCP connection to parity:8545 (getaddrinfo: Temporary failure in name resolution)>"}
{"level":"ERROR","time":"2023-02-25 09:18:58","message":"/home/app/lib/peatio/ethereum/blockchain.rb:72:in rescue in latest_block_number'\n/home/app/lib/peatio/ethereum/blockchain.rb:69:in latest_block_number'\n/home/app/app/services/blockchain_service.rb:18:in `latest_block_number'\n/home/app/app/work^C

from opendax.

behnammby avatar behnammby commented on June 14, 2024

Thanks so much for the reply. The first command shows the docker is running.

root@vultr:/opendax# docker ps | grep blockchain 088a51b4b155 quay.io/openware/peatio:2.6.48 "bash -c 'bin/link_cā€¦" 37 hours ago Up 37 hours 3000/tcp opendax_blockchain_1 root@vultr:/opendax#

But the second command returns in error:

root@vultr:/opendax# docker compose logs -f blockchian no such service: blockchian

Sorry it was a typo! blockchain is correct I wrote blockchian!! :-)

from opendax.

behnammby avatar behnammby commented on June 14, 2024

@behnammby when I run docker logs opendax_blockchain_1 I get this log. I see a reference to port 8545 but my bitcoin node is running on 8333 (default) and in the opendax admin pannel I did give http://ip:8333 as server. What do you recommend?

p/app/services/blockchain_service.rb:18:in latest_block_number'\n/home/app/app/workers/daemons/blockchain.rb:27:in block (2 levels) in start'\n/home/app/app/workers/daemons/blockchain.rb:22:in loop'\n/home/app/app/workers/daemons/blockchain.rb:22:in block in start'"} {"level":"WARN","time":"2023-02-25 09:18:28","message":"Error: Failed to open TCP connection to parity:8545 (getaddrinfo: Temporary failure in name resolution). Sleeping for 10 seconds"} {"level":"ERROR","time":"2023-02-25 09:18:38","message":"#<Peatio::Blockchain::ClientError: Failed to open TCP connection to parity:8545 (getaddrinfo: Temporary failure in name resolution)>"} {"level":"ERROR","time":"2023-02-25 09:18:38","message":"/home/app/lib/peatio/ethereum/blockchain.rb:72:in rescue in latest_block_number'\n/home/app/lib/peatio/ethereum/blockchain.rb:69:in latest_block_number'\n/home/app/app/services/blockchain_service.rb:18:in latest_block_number'\n/home/app/app/workers/daemons/blockchain.rb:27:in block (2 levels) in start'\n/home/app/app/workers/daemons/blockchain.rb:22:in loop'\n/home/app/app/workers/daemons/blockchain.rb:22:in block in start'"} {"level":"WARN","time":"2023-02-25 09:18:38","message":"Error: Failed to open TCP connection to parity:8545 (getaddrinfo: Temporary failure in name resolution). Sleeping for 10 seconds"} {"level":"ERROR","time":"2023-02-25 09:18:48","message":"#<Peatio::Blockchain::ClientError: Failed to open TCP connection to parity:8545 (getaddrinfo: Temporary failure in name resolution)>"} {"level":"ERROR","time":"2023-02-25 09:18:48","message":"/home/app/lib/peatio/ethereum/blockchain.rb:72:in rescue in latest_block_number'\n/home/app/lib/peatio/ethereum/blockchain.rb:69:in latest_block_number'\n/home/app/app/services/blockchain_service.rb:18:in latest_block_number'\n/home/app/app/workers/daemons/blockchain.rb:27:in block (2 levels) in start'\n/home/app/app/workers/daemons/blockchain.rb:22:in loop'\n/home/app/app/workers/daemons/blockchain.rb:22:in block in start'"} {"level":"WARN","time":"2023-02-25 09:18:48","message":"Error: Failed to open TCP connection to parity:8545 (getaddrinfo: Temporary failure in name resolution). Sleeping for 10 seconds"} {"level":"WARN","time":"2023-02-25 09:18:51","message":"The runner for eth-testnet is up to date (2023-02-25 01:06:25 >= 2023-02-25 01:06:25)"} {"level":"ERROR","time":"2023-02-25 09:18:58","message":"#<Peatio::Blockchain::ClientError: Failed to open TCP connection to parity:8545 (getaddrinfo: Temporary failure in name resolution)>"} {"level":"ERROR","time":"2023-02-25 09:18:58","message":"/home/app/lib/peatio/ethereum/blockchain.rb:72:in rescue in latest_block_number'\n/home/app/lib/peatio/ethereum/blockchain.rb:69:in latest_block_number'\n/home/app/app/services/blockchain_service.rb:18:in `latest_block_number'\n/home/app/app/work^C

The blockchain service is for all blockchains i.e bitcoin, ethereum etc. From the log we can see the ethereum blockchain has an error too. You can see what errors are for what blockchains from this part:
home/app/lib/peatio/ethereum/blockchain.rb

To concentrate on one blockchain only, you can temporary turn off all blockchains but the blockchain you wanna trace by going to tower->settings->blockchains and then review the logs by command:
docker compose logs -f --tail=10 blockchain

from opendax.

wahdatw avatar wahdatw commented on June 14, 2024

@behnammby thanks for your time. My log shows this. My node is has open RPC and have added it to opendax.
Would appreciate a fix.

Here is the log:
{"level":"WARN","time":"2023-02-27 13:26:23","message":"The runner for btc-minnet is up to date (2023-02-27 00:47:16 >= 2023-02-27 00:47:16)"}
{"level":"ERROR","time":"2023-02-27 13:26:42","message":"#<Peatio::Blockchain::ClientError: execution expired>"}
{"level":"ERROR","time":"2023-02-27 13:26:42","message":"/home/app/lib/peatio/bitcoin/blockchain.rb:35:in rescue in latest_block_number'\n/home/app/lib/peatio/bitcoin/blockchain.rb:32:in latest_block_number'\n/home/app/app/services/blockchain_service.rb:18:in latest_block_number'\n/home/app/app/workers/daemons/blockchain.rb:27:in block (2 levels) in start'\n/home/app/app/workers/daemons/blockchain.rb:22:in loop'\n/home/app/app/workers/daemons/blockchain.rb:22:in block in start'"}
{"level":"WARN","time":"2023-02-27 13:26:42","message":"Error: execution expired. Sleeping for 10 seconds"}
{"level":"WARN","time":"2023-02-27 13:26:53","message":"The runner for btc-minnet is up to date (2023-02-27 00:47:16 >= 2023-02-27 00:47:16)"}
{"level":"WARN","time":"2023-02-27 13:27:23","message":"The runner for btc-minnet is up to date (2023-02-27 00:47:16 >= 2023-02-27 00:47:16)"}
{"level":"ERROR","time":"2023-02-27 13:27:52","message":"#<Peatio::Blockchain::ClientError: execution expired>"}
{"level":"ERROR","time":"2023-02-27 13:27:52","message":"/home/app/lib/peatio/bitcoin/blockchain.rb:35:in rescue in latest_block_number'\n/home/app/lib/peatio/bitcoin/blockchain.rb:32:in latest_block_number'\n/home/app/app/services/blockchain_service.rb:18:in latest_block_number'\n/home/app/app/workers/daemons/blockchain.rb:27:in block (2 levels) in start'\n/home/app/app/workers/daemons/blockchain.rb:22:in loop'\n/home/app/app/workers/daemons/blockchain.rb:22:in block in start'"}

from opendax.

behnammby avatar behnammby commented on June 14, 2024

@wahdatw Apparently It seems you are having some trouble with your bitcoin node. A clienterror execution timeout means that your request took too long to complete and was terminated by the server. This could happen for various reasons, such as network issues, heavy load, slow queries, etc.
1- check whether or not the server is under pressure.
2- check if you can communicate with your node outside of the peatio. For example You can simply run a rpc call using curl or similar tools.

from opendax.

behnammby avatar behnammby commented on June 14, 2024

@wahdatw I checked your running instance of node using the following command:
curl --data-binary '{"jsonrpc": "1.0", "id": "curltest", "method": "getblockchaininfo", "params": []}' -H 'content-type: text/plain;' http://173.230.131.103:8332/

An I got:
curl: (7) Failed to connect to 173.230.131.103 port 8332 after 112 ms: Connection refused

So certainly your bitcoin node has a problem. Maybe it isn't configured correctly. Have you opened the port 8332?

from opendax.

wahdatw avatar wahdatw commented on June 14, 2024

@behnammby Hey boss thanks for taking the time. I am still struggling with bitcoin node. Please check this. I setup my bitcoin.conf like this.

rpcuser=wadi4u
rpcpassword=wadi4u
server=1
rpcallowip=77.68.110.54
rpcallowip=127.0.0.1
rpcbind=0.0.0.0
whitelist=127.0.0.1
whitelist=77.68.110.54
rpcport=8332
datadir=/root/bitcoin-data

And I can curl from the server where I have setup my opendax.
root@ubuntu:/# curl --user wadi4u:wadi4u --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getblockcount", "params": []}' -H 'content-type: text/plain;' http://45.79.215.10:8332
{"result":182174,"error":null,"id":"curltest"}

So with curl I can get blockheight but my opendax is not able to get blockheight.
Is the problem with my bictoin.conf ?

image

from opendax.

behnammby avatar behnammby commented on June 14, 2024

@wahdatw could you check the blockchain log now and send me the error?
Feel free to contact me on Telegram if it is more convenient for you.
http://t.me/behnammby

from opendax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.