Author

Topic: [Tutorial] Install a Block Explorer [iquidus] on Ubuntu Server 18.04 (Read 370 times)

jr. member
Activity: 57
Merit: 1
jr. member
Activity: 57
Merit: 1
Quote
If i can ask , for what coin is the Explorer ?

thanks for asking. our coin is called "Cannacoin" https://bitcointalksearch.org/topic/ann-cannacoin-ccn-pow-posv-no-premine-no-ipo-740903

i installed using OPs installation guide. Is it not accurate?

should i start over and follow that pastebin? it looks different that OPs guide.
legendary
Activity: 3136
Merit: 3213
maybe im not running all the necessary flags on the wallet?
Looks like there is not all started or the setup was wrong done.
If all would be right installed and started you should be at least see the Iquidus Explorer Page when you typing the IP from your VPS into the Browser.
Maybe this Video here will be helping you to set it up right and get it working https://www.youtube.com/watch?v=laeV2slJgc8

Code:
--Block explorer pastes

sudo apt-get update
sudo apt install nodejs-legacy
sudo apt-get install npm
sudo apt-get install

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list

sudo apt-get update
sudo apt-get install -y mongodb-org
sudo systemctl start mongod

Start mongodb cli:
mongo
use explorerdb
db.createUser( { user: "iquidus", pwd: "3xp!0reR", roles: [ "readWrite" ] } )
exit

git clone https://github.com/iquidus/explorer explorer
cd explorer && npm install --production
cp ./settings.json.template ./settings.json

To use forever to start (run in directory of explorer):
forever start -c "npm start" ./

crontab information:
*/1 * * * * cd explorer && /usr/bin/nodejs scripts/sync.js index update > /dev/null 2>&1
*/5 * * * * cd explorer && /usr/bin/nodejs scripts/peers.js > /dev/null 2>&1
Source : https://pastebin.com/SEYVXH2C

Hope this helps you to solve your problem and issue and that you get it working.
If i can ask , for what coin is the Explorer ?
jr. member
Activity: 57
Merit: 1
--snip--

i changed it back to 3001 but still not working

That's weird, you typed [IPv4]:3001 on your browser right? Does npm show any error or warning message when you start the server?

no error messages. its not immediately spitting out any feedback though either as it did on default. that has me concerned.

maybe im not running all the necessary flags on the wallet?
jr. member
Activity: 57
Merit: 1
--snip--
i have the block explore installed on digital ocean at [IPv4]

our wallet is running on digital ocean as well at [IPv4]

our default rpc port is 7143

I doubt it's good idea to share your public IP like that, but what you should enter is IPv4 of VPS which contain block explorer. The port i'm talking about is port under comment "// port to listen for requests on." which should have 3001 as default value, not RPC Port.

i changed it back to 3001 but still not working


should the "instance" address https://github.com/iquidus/explorer/blob/master/settings.json.template#L10

and the "database" address be the same? https://github.com/iquidus/explorer/blob/master/settings.json.template#L37-L44

im assuming the instance address is the ip of the server where i have the block explorer installed right?

also

how is this port number derived? https://github.com/iquidus/explorer/blob/master/settings.json.template#L43

jr. member
Activity: 57
Merit: 1
okay i went through the checklist now how do i bring the actual block explorer up in my browser?
Depends where you have installed the files and running the Block Explorer.
If you have set it up on your PC or on an raspberry pi at home you can get there as mentioned from ETFbitcoin .
If you have installed it on a VPS and Server Provider and the setup is done right you just have to insert the IP from your VPS in your browser or the domain if you have one.

i have the block explore installed on digital ocean at xxx.xxx.xxx.xxx

our wallet is running on digital ocean as well at xxx.xxx.xxx.xxx

our default rpc port is 7143

legendary
Activity: 3136
Merit: 3213
okay i went through the checklist now how do i bring the actual block explorer up in my browser?
Depends where you have installed the files and running the Block Explorer.
If you have set it up on your PC or on an raspberry pi at home you can get there as mentioned from ETFbitcoin .
If you have installed it on a VPS and Server Provider and the setup is done right you just have to insert the IP from your VPS in your browser or the domain if you have one.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
okay i went through the checklist now how do i bring the actual block explorer up in my browser?

With default settings.json file[1], you should able to do it by entering localhost:3001 on your browser.

[1] https://github.com/iquidus/explorer/blob/master/settings.json.template#L35
jr. member
Activity: 57
Merit: 1
okay i went through the checklist now how do i bring the actual block explorer up in my browser?
legendary
Activity: 2338
Merit: 1261
Heisenberg
I forgot to add the source code url. have added it now. it is opensource what kind of plagiarism are you talking about?
He was talking about plagiarism of articles or guides online, minus citing the link to the source of the information you posted. The moderators don't care if the project is open source or not. If you are going to copy information from somewhere and post it here, you should include the source link in your post. Failure to do that may lead to a permanent ban on your account for a plagiarism offense.
jr. member
Activity: 57
Merit: 22
eTitanium [ETIT] www.etitanium.net
I forgot to add the source code url. have added it now. it is opensource what kind of plagiarism are you talking about?
legendary
Activity: 3136
Merit: 3213
There are already so much Guides and Tutorials about to setting up an Block Explorer from iquidus on the internet.
So i advice you to write the source links into your thread and post where you got them , at least the Github Source Link from iquidus .
Source Code and Link for iquidus Explorer :  https://github.com/iquidus/explorer

You should be doing it as soon as possible , if you not doing it , its possible that someone report your post about plagiarism as it is against the Forum Rules.
jr. member
Activity: 57
Merit: 22
eTitanium [ETIT] www.etitanium.net
Install a block explorer on Ubuntu Server 18.04
we assume that you have already installed and started bitcoin daemon, configured bitcoin.conf already and know the rpc data.
(or other altcoin forks of bitcoin)
Source code: https://github.com/iquidus/explorer

Update your Ubuntu server with the following command:
Code:
sudo apt-get update && sudo apt-get upgrade -y

Install the required dependencies with the following command:
Code:
sudo apt-get install build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev libboost-all-dev libboost-program-options-dev -y

Install the additional dependencies with the following command:

Code:
sudo apt-get install libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler unzip software-properties-common libkrb5-dev mongodb nodejs npm git nano cmake screen -y
Install Berkeley DB with the following command:
Code:
sudo apt-get update && sudo apt-get install libdb4.8-dev libdb4.8++-dev -y
Type the following command to open MongoDB:
Code:
mongo
Type the following command to create a MongoDB database named “explorerdb”:
Code:
use explorerdb

Type the following command to create a MongoDB user named “iquidus”:
Code:
db.createUser( { user: "iquidus", pwd: "[b]custompassword[/b]", roles: [ "readWrite" ] } )

Type the following command to close MongoDB:
Code:
exit

Type the following command to clone iquidus-explorer:
Code:
git clone https://github.com/iquidus/explorer explorer

Type the following command to install iquidus-explorer:
Code:
cd explorer && npm install --production

Type the following command to create the file settings.json:
Code:
cp ./settings.json.template ./settings.json

Open nano.
Code:
nano settings.json -t

Modify the following values in the file settings.json

title - “IQUIDUS” -> “changeme”.

address - Change the value “127.0.0.1” with the IPv4 address of your server.

coin - “Darkcoin” -> “changeme”.

symbol - “DRK” -> “changeme”.

password - “3xp!0reR” -> “custompassword”.

port - “9332” -> “changeme”.

user - “darkcoinrpc” -> “changeme”.

pass - 123gfjk3R3pCCVjHtbRde2s5kzdf233sa” -> “changeme”.

confirmations - “40” -> “changeme”.


Save the file with the keyboard shortcut ctrl + x.

Type the following command to open a screen session:
Code:
screen
Type the following commands to start your block explorer:
Code:
cd $HOME/explorer
npm start

Press the keyboard shortcut ctrl + a + d to disconnect from your screen session.

Type the following command to open crontab:

Code:
crontab -e

Press the Page Down key on your keyboard PgDown.

Paste the following text into crontab.
Code:
@reboot bitcoind
*/1 * * * * cd /root/explorer && /usr/bin/nodejs scripts/sync.js index update > /dev/null 2>&1
*/5 * * * * cd /root/explorer && /usr/bin/nodejs scripts/peers.js > /dev/null 2>&1

Save the crontab with the keyboard shortcut ctrl + x

Confirm that you want to save the crontab with the keyboard shortcut y + enter
Jump to: