Comments (10)
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.
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.
@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.
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 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:inloop'\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:inrescue 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:inlatest_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:inloop'\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:inrescue 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:inlatest_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:inloop'\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:inrescue 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.
@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.
@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.
@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.
@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 ?
from opendax.
@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)
- HI guys...I got this error..Rake aborted!!! HOT 6
- Can I use not rake
- erc-20
- Engine error HOT 1
- Frontend error: you need to enable javascript to run this app
- Handle multi blockchain HOT 1
- Nomics
- 3.0 issues with baseapp, wizard and license generation
- BSC blockchain convert_from_base_unit fetch problem peatio:3.0.13 HOT 1
- take service:all aborted when starting proxy HOT 3
- I'm stuck on the installation, HOT 2
- [ERROR] unknown: Tag 2.6.44 was deleted or has expired. To pull, revive via time machine rake aborted! HOT 1
- unknown: Tag 2.6.66 was deleted or has expired HOT 1
- I listen to port 81, what's wrong with server error 500, HOT 1
- Opendax has been built. How to add transaction pairs and import data to increase the depth? HOT 3
- Can't get Charts on trade page Working HOT 1
- Opendax 2.4 images. HOT 1
- Please Help me for fetch data
- Problems with starting, order execution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opendax.