Post
Topic
Board Service Announcements (Altcoins)
Re: [ANN] eIquidus - Open-Source Altcoin Block Explorer
by
joe@exor
on 25/05/2021, 18:37:13 UTC

Thanks for the explorer link. I can see that you are able to sync the main blockchain data without troubles, but it seems that the peer and market sync have not been run successfully. Running scripts/sync.sh /path/to/nodejs check won't be very useful for you in this case since your blockchain looks to be synced already and that is not the problem.

Try running these cmds manually to sync the stex market data and peers list:

Code:
sh /path/to/explorer/scripts/sync.sh market
sh /path/to/explorer/scripts/sync.sh peers

Can you post the results of those two cmds? I'm guessing one or both are showing an error msg.

They do work if I run them one by one in Terminal. They don't work though via Crontab. That's what I'm trying to point to.

Also, as you can see, the boxes for "price" and "marketcap" shows ZERO, despite the market (Stex) is correctly synced.

Code:
scripts/sync.sh /path/to/nodejs peers
syncing peers.. please wait..
Added new peer 95.111.247.164 [1/13]
Added new peer 193.231.25.228 [2/13]
Added new peer 120.78.65.86 [3/13]
Added new peer 109.49.7.226 [4/13]
Added new peer 45.138.72.107 [5/13]
Added new peer 49.12.121.226 [6/13]
Added new peer 70.91.250.149 [7/13]
Added new peer 144.91.103.129 [8/13]
Added new peer 144.91.117.87 [9/13]
Added new peer 66.70.182.1 [10/13]
Updated peer 193.231.25.228 [11/13]
Added new peer 78.129.239.179 [12/13]
Added new peer 162.55.0.83 [13/13]
peer sync complete

Code:
scripts/sync.sh /path/to/nodejs market
script launched with pid: 18516
stex[VPC/USDT]: market data updated successfully.
stex[VPC/ETH]: market data updated successfully.
market sync complete

Indeed, with your commands I'm getting this:

Code:
sh /path/to/explorer/scripts/sync.sh market
sh: 0: Can't open /path/to/explorer/scripts/sync.sh

 sh /path/to/explorer/scripts/sync.sh peers
sh: 0: Can't open /path/to/explorer/scripts/sync.sh

Thanks for posting the results of the peers and market sync. I believe your crontab problem has to do with the fact that you are not passing the correct nodejs path. If you specify the wrong path while running a sync cmd, it will attempt to lookup the correct path, which works when running manually but does not work in crontab. Therefore, you absolutely must specify the correct path in crontab otherwise it will fail.

To find your nodejs path, run this cmd:

Code:
which node

Then, update your crontab cmds with the correct nodejs path as follows:

Code:
*/1 * * * * /YOUR_FULL_PATH_TO_THE_EXPLORER_SCRIPTS_DIRECTORY/sync.sh /YOUR_FULL_PATH_TO_NODE update > /dev/null 2>&1
*/2 * * * * /YOUR_FULL_PATH_TO_THE_EXPLORER_SCRIPTS_DIRECTORY/sync.sh /YOUR_FULL_PATH_TO_NODE market > /dev/null 2>&1
*/5 * * * * /YOUR_FULL_PATH_TO_THE_EXPLORER_SCRIPTS_DIRECTORY/sync.sh /YOUR_FULL_PATH_TO_NODE peers > /dev/null 2>&1
*/5 * * * * /YOUR_FULL_PATH_TO_THE_EXPLORER_SCRIPTS_DIRECTORY/sync.sh /YOUR_FULL_PATH_TO_NODE masternodes > /dev/null 2>&1

Be sure to replace YOUR_FULL_PATH_TO_THE_EXPLORER_SCRIPTS_DIRECTORY with the full path to your explorer/scripts directory and replace YOUR_FULL_PATH_TO_NODE with the path to your node install that you got from the which node cmd.

In regards to the problem with the "price" and "marketcap" boxes showing zero, it is because the stex api only returns values for trades made in the last 24 hours. Therefore the price and marketcap will always be zero until someone buys some coins and you run a market sync after that.

Hopefully that all makes sense