Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Node / Iquidus Explorer Setup for Dummies
Pulse Crypto is used in this example.
This Tutorial is going to create a Daemon (node) and install Explorer.
THIS IS NOT GOING TO CREATE A GUI CLIENT.
Follow the instructions in [whatever coin name] docs folder Unix build - some builds are different.
I setup this up on both Ubuntu 15.10 and 16.04 with no issues.
You can create an account on vultr and get $50 free to be used in 2 months.
Non-refferal link: https://www.vultr.com/freetrial/
******************************************
*** Change Password / Update System
******************************************
Change passwords
# sudo passwd //change root password
Update Packages
# sudo apt-get update
# sudo apt-get upgrade -y
Install git and nano
# sudo apt-get install nano git -y
******************************************
*** Installing Pulse Node
******************************************
Get the Source Code
Basic packages to build the coin
# sudo apt-get install build-essential libssl-dev libdb++-dev libboost-all-dev libqrencode-dev miniupnpc libminiupnpc-dev autoconf pkg-config libtool autotools-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev automake -y
Create a Swap File - Low Ram Servers
# sudo fallocate -l 4G /swapfile
# sudo chmod 600 /swapfile
# sudo mkswap /swapfile
# sudo swapon /swapfile
# sudo nano /etc/fstab
Add to fstab file
/swapfile none swap sw 0 0
Adding the Coin
# sudo git clone https://github.com/elcrypto/Pulse.git
Change Directories to src/
# cd Pulse/src/
Compile the code with flags
# sudo make -f makefile.unix USE_UPNP=1
# sudo strip pulsed
Stat the file with daemon flag so that you can create a config file
# sudo ./pulsed -daemon
Create a conf file in .pulse/pulse.conf
# cd
# sudo nano .pulse/pulse.conf
rpcuser=pulserpc
rpcpassword=Gnfh67gdmRTGvA5YB3UZhV6e6cPTTeneTTdnosLLD3cU
listen=1
maxconnections=500
*make sure to set the file to read only.
# sudo chmod 400 .pulse/pulse.conf
# cd Pulse/src
# sudo ./pulsed -daemon -txindex
Check it daemon has started. If it returns information, the daemon is working!
# sudo ./pulsed getinfo
Stopping the daemon
# sudo ./pulsed stop
******************************************
*** Setting up the Explorer
*** https://github.com/iquidus/explorer
******************************************
Install MongoDB Community Edition
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
# echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
# sudo apt-get update
# sudo apt-get install -y mongodb-org
# Reboot your system
# sudo reboot
# sudo service mongod start
Running MongoDB - reference
# sudo service mongod start
# sudo service mongod stop
# sudo service mongod restart
Installing Nodejs
# sudo apt-get update
# sudo apt-get install nodejs nodejs-legacy -y
# sudo apt-get install npm -y
Creating a MongoDB Database
# sudo mongo
> use explorerdb
> db.createUser( { user: "3er22wee3", pwd: "4y2#1iuu34hbbw2", roles: [ "readWrite" ] } )
> exit
Installing the Explorer
# cd /home/
# git clone https://github.com/iquidus/explorer explorer
# cd explorer && npm install --production
# cp ./settings.json.template ./settings.json
Modify the Settings File
# sudo nano settings.json
See if it's working
# npm start
Update the databases
# sudo node scripts/sync.js index update
Install Forever to keep the js running
# sudo npm install forever -g
# sudo npm install forever-monitor
Start the Explorer
# forever start bin/cluster
******************************************
*** Installing Cron
*** https://help.ubuntu.com/community/CronHowto
******************************************
# sudo apt-get install gnome-schedule -y
Editing Cron
# sudo crontab -e
Add Cron to File to update the explorer
*/1 * * * * cd /path/to/explorer && /usr/bin/nodejs scripts/sync.js index update > /dev/null 2>&1
Add Cron to make sure the Pulsed runs (NOT WORKING)
If anyone has a good reboot for this, please post in the comments.
@reboot cd /root/Pulse/src ./pulsed -daemon -txindex
@reboot cd /root/explorer forever start bin/cluster
@bhok

This comment has been minimized.

Copy link

commented May 23, 2017

an easy fix is to copy the daemon to the /bin folder and after create a cron entry with:

@reboot pulsed -daemon -txindex

@zeronug

This comment has been minimized.

Copy link
Owner Author

commented Jun 15, 2017

Thanks!

@ElectroCreator

This comment has been minimized.

Copy link

commented Jul 20, 2017

@zeronug
First of all, this is a very great Guide!
But it does not work on Ubuntu 14.04
I tried it on Ubuntu 16, It still does not work.
I am getting this when I start it:

root@node:/home/explorer# npm start

explorer@1.6.1 start /home/explorer
node --stack-size=10000 ./bin/cluster

Starting cluster with pid: 4156
no bittrex entry found, creating now..
no stats entry found, creating now..
no richlist entry found, creating now..
initial markets entry created for bittrex
initial richlist entry created for Darkcoin
initial stats entry created for Darkcoin

Then it just sits there and does nothing. Could you please help?

@zilveer

This comment has been minimized.

Copy link

commented Aug 28, 2017

Iquidus blockexplorer needs mongodb 2.6.x

@Rekard0

This comment has been minimized.

Copy link

commented Sep 30, 2017

i get this on ubuntu 16.04 vps:

make: Entering directory '/home/explorer/node_modules/kerberos/build'
CXX(target) Release/obj.target/kerberos/lib/kerberos.o
In file included from ../lib/kerberos.cc:1:0:
../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory
compilation terminated.
kerberos.target.mk:94: recipe for target 'Release/obj.target/kerberos/lib/kerberos.o' failed
make: *** [Release/obj.target/kerberos/lib/kerberos.o] Error 1
make: Leaving directory '/home/explorer/node_modules/kerberos/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:269:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-87-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/explorer/node_modules/kerberos
gyp ERR! node -v v4.2.6
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
explorer@1.6.1 /home/explorer
├─┬ bitcoin-node-api@0.1.0
│ ├─┬ bitcoin@1.7.0
│ │ └── deprecate@0.1.0
│ └─┬ express@3.3.8
│ ├─┬ commander@1.2.0
│ │ └── keypress@0.1.0
│ ├─┬ connect@2.8.8
│ │ ├── bytes@0.2.0
│ │ ├── formidable@1.0.14
│ │ ├── pause@0.0.1
│ │ ├── qs@0.6.5
│ │ └── uid2@0.0.2
│ ├── cookie-signature@1.0.1
│ ├── fresh@0.2.0
│ ├── methods@0.0.1
│ ├── range-parser@0.0.4
│ └── send@0.1.4
├─┬ body-parser@1.0.2
│ ├── qs@0.6.6
│ ├─┬ raw-body@1.1.7
│ │ ├── bytes@1.0.0
│ │ └── string_decoder@0.10.31
│ └─┬ type-is@1.1.0
│ └── mime@1.2.11
├─┬ cookie-parser@1.0.1
│ ├── cookie@0.1.0
│ └── cookie-signature@1.0.3
├── debug@0.7.4
├─┬ express@4.2.0
│ ├─┬ accepts@1.0.1
│ │ └── negotiator@0.4.9
│ ├── buffer-crc32@0.2.1
│ ├── cookie@0.1.2
│ ├── cookie-signature@1.0.3
│ ├── debug@0.8.1
│ ├── escape-html@1.0.1
│ ├── fresh@0.2.2
│ ├── merge-descriptors@0.0.2
│ ├── methods@1.0.0
│ ├── parseurl@1.0.1
│ ├── path-to-regexp@0.1.2
│ ├── qs@0.6.6
│ ├── range-parser@1.0.0
│ ├─┬ send@0.3.0
│ │ └── debug@0.8.0
│ ├─┬ serve-static@1.1.0
│ │ └─┬ send@0.3.0
│ │ ├── debug@0.8.0
│ │ ├── fresh@0.2.4
│ │ └── range-parser@1.0.3
│ └── utils-merge@1.0.0
├─┬ jade@1.3.1
│ ├── character-parser@1.2.0
│ ├── commander@2.1.0
│ ├─┬ constantinople@2.0.1
│ │ └─┬ uglify-js@2.4.24
│ │ ├── async@0.2.10
│ │ ├─┬ source-map@0.1.34
│ │ │ └── amdefine@1.0.1
│ │ ├── uglify-to-browserify@1.0.2
│ │ └─┬ yargs@3.5.4
│ │ ├── camelcase@1.2.1
│ │ ├── decamelize@1.2.0
│ │ ├── window-size@0.1.0
│ │ └── wordwrap@0.0.2
│ ├── mkdirp@0.3.5
│ ├─┬ monocle@1.1.51
│ │ └─┬ readdirp@0.2.5
│ │ └─┬ minimatch@3.0.4
│ │ └─┬ brace-expansion@1.1.8
│ │ ├── balanced-match@1.0.0
│ │ └── concat-map@0.0.1
│ ├─┬ transformers@2.1.0
│ │ ├─┬ css@1.0.8
│ │ │ ├── css-parse@1.0.4
│ │ │ └── css-stringify@1.0.5
│ │ ├─┬ promise@2.0.0
│ │ │ └── is-promise@1.0.1
│ │ └─┬ uglify-js@2.2.5
│ │ └── optimist@0.3.7
│ └── with@3.0.1
├── jsonminify@0.2.3
├─┬ markdown-js@0.0.3
│ └─┬ test@0.6.0
│ └── ansi-font@0.0.2
├─┬ mongodb@2.0.45
│ ├── es6-promise@2.1.1
│ ├─┬ mongodb-core@1.2.14
│ │ └─┬ kerberos@0.0.23
│ │ └── nan@2.5.1
│ └─┬ readable-stream@1.0.31
│ ├── core-util-is@1.0.2
│ ├── inherits@2.0.3
│ └── isarray@0.0.1
├─┬ mongoose@4.1.10
│ ├── async@0.9.0
│ ├── bson@0.4.23
│ ├── hooks-fixed@1.1.0
│ ├── kareem@1.0.1
│ ├─┬ mongodb@2.0.42
│ │ └── mongodb-core@1.2.10
│ ├── mpath@0.1.1
│ ├── mpromise@0.5.4
│ ├─┬ mquery@1.6.3
│ │ ├── bluebird@2.9.26
│ │ └─┬ debug@2.2.0
│ │ └── ms@0.7.1
│ ├── ms@0.1.0
│ ├── muri@1.0.0
│ ├── regexp-clone@0.0.1
│ └── sliced@0.0.5
├─┬ morgan@1.0.1
│ └── bytes@0.3.0
├── qr-image@2.0.0
├─┬ request@2.74.0
│ ├── aws-sign2@0.6.0
│ ├── aws4@1.6.0
│ ├─┬ bl@1.1.2
│ │ └─┬ readable-stream@2.0.6
│ │ ├── isarray@1.0.0
│ │ ├── process-nextick-args@1.0.7
│ │ └── util-deprecate@1.0.2
│ ├── caseless@0.11.0
│ ├─┬ combined-stream@1.0.5
│ │ └── delayed-stream@1.0.0
│ ├── extend@3.0.1
│ ├── forever-agent@0.6.1
│ ├─┬ form-data@1.0.1
│ │ └─┬ async@2.5.0
│ │ └── lodash@4.17.4
│ ├─┬ har-validator@2.0.6
│ │ ├─┬ chalk@1.1.3
│ │ │ ├── ansi-styles@2.2.1
│ │ │ ├── escape-string-regexp@1.0.5
│ │ │ ├─┬ has-ansi@2.0.0
│ │ │ │ └── ansi-regex@2.1.1
│ │ │ ├── strip-ansi@3.0.1
│ │ │ └── supports-color@2.0.0
│ │ ├── commander@2.11.0
│ │ ├─┬ is-my-json-valid@2.16.1
│ │ │ ├── generate-function@2.0.0
│ │ │ ├─┬ generate-object-property@1.2.0
│ │ │ │ └── is-property@1.0.2
│ │ │ ├── jsonpointer@4.0.1
│ │ │ └── xtend@4.0.1
│ │ └─┬ pinkie-promise@2.0.1
│ │ └── pinkie@2.0.4
│ ├─┬ hawk@3.1.3
│ │ ├── boom@2.10.1
│ │ ├── cryptiles@2.0.5
│ │ ├── hoek@2.16.3
│ │ └── sntp@1.0.9
│ ├─┬ http-signature@1.1.1
│ │ ├── assert-plus@0.2.0
│ │ ├─┬ jsprim@1.4.1
│ │ │ ├── assert-plus@1.0.0
│ │ │ ├── extsprintf@1.3.0
│ │ │ ├── json-schema@0.2.3
│ │ │ └─┬ verror@1.10.0
│ │ │ └── assert-plus@1.0.0
│ │ └─┬ sshpk@1.13.1
│ │ ├── asn1@0.2.3
│ │ ├── assert-plus@1.0.0
│ │ ├── bcrypt-pbkdf@1.0.1
│ │ ├─┬ dashdash@1.14.1
│ │ │ └── assert-plus@1.0.0
│ │ ├── ecc-jsbn@0.1.1
│ │ ├─┬ getpass@0.1.7
│ │ │ └── assert-plus@1.0.0
│ │ ├── jsbn@0.1.1
│ │ └── tweetnacl@0.14.5
│ ├── is-typedarray@1.0.0
│ ├── isstream@0.1.2
│ ├── json-stringify-safe@5.0.1
│ ├─┬ mime-types@2.1.17
│ │ └── mime-db@1.30.0
│ ├── node-uuid@1.4.8
│ ├── oauth-sign@0.8.2
│ ├── qs@6.2.3
│ ├── stringstream@0.0.5
│ ├─┬ tough-cookie@2.3.3
│ │ └── punycode@1.4.1
│ └── tunnel-agent@0.4.3

@salleh

This comment has been minimized.

Copy link

commented Dec 8, 2017

if you got "../lib/kerberos.h:5:27: fatal error: gssapi/gssapi.h: No such file or directory", most probably you don't have kerberos development library installed. To clear the error, if your are on Ubuntu 16.04, install libkrb5-dev package:

sudo apt install libkrb5-dev

you should then be alright.

@CryptvJet

This comment has been minimized.

Copy link

commented Dec 10, 2017

Here is for the autostart crons:

@reboot sleep 15; Pulse/src/pulsed -daemon -txindex
@reboot sleep 45; cd /root/explorer && forever start bin/cluster 

I use the following with npm :
@reboot sleep 45; cd /root/explorer && npm start

@xoma11

This comment has been minimized.

Copy link

commented Dec 15, 2017

plz write how edite file settings.json
thanks!

@xoma11

This comment has been minimized.

Copy link

commented Dec 15, 2017

Starting cluster with pid: 11429
There was an error processing your settings.json file: Unexpected token x
There was an error processing your settings.json file: Unexpected token x
There was an error processing your settings.json file: Unexpected token x
There was an error processing your settings.json file: Unexpected token x

@zeronug

This comment has been minimized.

Copy link
Owner Author

commented Dec 19, 2017

I'm going to be looking over this in the next few days (hopefully). I'll update and add any changes.

@GameBitCoin

This comment has been minimized.

Copy link

commented Jan 19, 2018

Thank you!

@glitchyethos

This comment has been minimized.

Copy link

commented Feb 13, 2018

How would you set up the settings.json file on line 123 and 124? More specifically, on the API values, how do you get the address, blockhash and txhash; and how do you get the genesis_tx hash under the genesis settings?

@BigWinCoin

This comment has been minimized.

Copy link

commented Feb 19, 2018

makefile.unix:175: recipe for target 'obj/alert.o' failed
make: *** [obj/alert.o] Error 1

@ghost

This comment has been minimized.

Copy link

commented Feb 20, 2018

BigWinCoin, cd to the src dir and do mkdir obj. Then, run the makefile.unix again

@humdevs

This comment has been minimized.

Copy link

commented Feb 22, 2018

Nice guide and write up.
For anyone that wants also the network nodes to show, add in your crontab this line too modified:

*/6 * * * * cd /path/to/explorer && /usr/bin/nodejs scripts/peers.js > /dev/null 2>&1

@rwl1990

This comment has been minimized.

Copy link

commented Mar 7, 2018

i use to be able to type sudo node scripts/sync.js index update and it would run an update but then i tried to add it to cron (which bugged everything out) and nkw whenever i type it in it says the scripts already running.... anyone know how to find and kill it iv already uninstalled and purged cron but its still running somewhere apparently

@H45H-t4g

This comment has been minimized.

Copy link

commented Apr 25, 2018

@glitchyethos have you found a solution? I'm hung on the same issue

@bisto007

This comment has been minimized.

Copy link

commented May 4, 2018

Hi, @zeronug and all
The old coins had make -f makefile.unix command
But nowadays no makefile.unix file in src folder, How to compile then? before building block explorer?

@ernanbaldomero

This comment has been minimized.

Copy link

commented Jun 5, 2018

@bisto007
usually for linux build command
./autogen.sh
./configure
make

@Inigovd

This comment has been minimized.

Copy link

commented Jun 7, 2018

Worked fine for me, thanks for this guide. Got it running in 6 mins.

@bellaj

This comment has been minimized.

Copy link

commented Jun 17, 2018

be carefull it uses upstart instead systemd

@mark2994u

This comment has been minimized.

Copy link

commented Jun 21, 2018

i am getting incorrect coin supply info. What should i do ?

@TestingCrypto

This comment has been minimized.

Copy link

commented Jun 22, 2018

Change your setting.json file
// how to calculate current coin supply
// COINBASE : total sent from coinbase (PoW)
// GETINFO : retreive from getinfo api call (PoS)
// HEAVY: retreive from heavys getsupply api call
// BALANCES : total of all address balances
// TXOUTSET : retreive from gettxoutsetinfo api call
"supply": "BALANCES",

@eduardoalthaus

This comment has been minimized.

Copy link

commented Jul 12, 2018

Great, thanks.

@Bitcoinera

This comment has been minimized.

Copy link

commented Aug 27, 2018

After thoroughly following this guide I get the following error when running 'npm start'. I also googled it in several ways but it seems to not have been asked before:

explorer@1.6.1 start /home/ana/explorer
node --stack-size=10000 ./bin/cluster

Error: unable to create cluster.pid

npm ERR! Linux 4.4.0-127-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! explorer@1.6.1 start: node --stack-size=10000 ./bin/cluster
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the explorer@1.6.1 start script 'node --stack-size=10000 ./bin/cluster'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the explorer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node --stack-size=10000 ./bin/cluster
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs explorer
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls explorer
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/ana/explorer/npm-debug.log

@Bitcoinera

This comment has been minimized.

Copy link

commented Aug 27, 2018

In the explorer's debug.log I get the following logs:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]
2 info using npm@3.5.2
3 info using node@v4.2.6
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle explorer@1.6.1prestart: explorer@1.6.1
6 silly lifecycle explorer@1.6.1
prestart: no script for prestart, continuing
7 info lifecycle explorer@1.6.1start: explorer@1.6.1
8 verbose lifecycle explorer@1.6.1
start: unsafe-perm in lifecycle true
9 verbose lifecycle explorer@1.6.1start: PATH: /usr/share/npm/bin/node-gyp-bin$
10 verbose lifecycle explorer@1.6.1
start: CWD: /home/ana/explorer
11 silly lifecycle explorer@1.6.1start: Args: [ '-c', 'node --stack-size=10000$
12 silly lifecycle explorer@1.6.1
start: Returned: code: 1 signal: null
13 info lifecycle explorer@1.6.1~start: Failed to exec start script
14 verbose stack Error: explorer@1.6.1 start: `node --stack-size=10000 ./bin/cl$
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (/usr/share/npm/lib/utils/life$
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at EventEmitter.emit (events.js:172:7)
14 verbose stack at ChildProcess. (/usr/share/npm/lib/utils/spaw$
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at ChildProcess.emit (events.js:172:7)
14 verbose stack at maybeClose (internal/child_process.js:821:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_pro$
15 verbose pkgid explorer@1.6.1
16 verbose cwd /home/ana/explorer

Should I open an issue in the official repository? Thank you for any feedback.

@Bitcoinera

This comment has been minimized.

Copy link

commented Aug 27, 2018

I also have a running yiimp pool in the same VPS. I don't know if that can have any relation to this.

@Bitcoinera

This comment has been minimized.

Copy link

commented Aug 29, 2018

Now I am stuck trying to figure this out. When I run 'node --stack-size=10000 bin/instance' I get:
Unable to connect to database: mongodb://iquidus:3xp!0reR@127.0.0.1:27017/explorerdb
Aborting

@Bitcoinera

This comment has been minimized.

Copy link

commented Aug 29, 2018

OK, so I got the problem right and it was the password and user I had to change in the settings.json to match it to the ones in the database. However, the problem with the cluster persists, and although it is running when I do 'node --stack-size=10000 bin/instance' it is not when I run it with 'bin/cluster' and I am still not able to view it in port 3001. Any ideas?
Edit: I am going for a fresh install without yiimp after all. Let's see how it goes. Wish me luck.

@pdrobek

This comment has been minimized.

Copy link

commented Aug 30, 2018

i forgot change your db when you were in mongo shell

type:
mongo
use yourfancydb
db.addUser( { user: "username", pwd: "password", roles: [ "readWrite"] })
show users
exit

Command show users should return something like

show users
{
"_id" : "blah.blah",
"user" : "username",
"db" : "yourfancydb",
"roles" : [
{
"role" : "readWrite",
"db" : "yourfancydb"
}
]
}

change in settings.json already defined credentials

now type "npm start"

good luck

@Bitcoinera

This comment has been minimized.

Copy link

commented Aug 30, 2018

Thank you @pdrobek! Yes, that was exactly my issue as I found out. But also the running yiimp pool was conflicting and I had to do a fresh install. I also had a couple of other issues. I comment them here so it can help out other people:

-cronjobs weren't working, the explorer wasn't updating anything. Turns out it was all because of the permissions. I had to run "sudo crontab -e" instead of just "crontab -e". The files were different depending on using sudo or not and the one I edited using sudo was the working one. The exact same thing happened with forever. I had to run it with sudo to make it work. Oh, and of course I was silly enough to not notice "path/to" before the "/explorer" bit at the beginning. The problem when you just copy everything. But I got that right soon enough (fortunately).
Also another issue with cronjobs was that the line in the tutorial has a mistake in this line:
*/1 * * * * cd /path/to/explorer && /usr/bin/node scripts/sync.js index update > /dev/null 2>&1

it should be "nodejs" instead of just plain "node":
*/1 * * * * cd /path/to/explorer && /usr/bin/nodejs scripts/sync.js index update > /dev/null 2>&1

So many things to take into acount with the cronjobs for sure.

-a "Method not found" error was showing. I couldn't see the hashrate in the network. This was because mine was a PoW/PoS currency, so the "getnetworkhashps" command in the settings.json wasn't effective for the daemon. It had to be:
"nethash": "netmhashps"

And that solved it.

In total I spent two full days setting up correctly the explorer but I learned a lot in the process which is always the important.
I hope my experience can help people looking into implementing this software. Good luck everyone!

@cryptozeny

This comment has been minimized.

Copy link

commented Nov 20, 2018

great guide!

@crypto117

This comment has been minimized.

Copy link

commented Feb 23, 2019

bs instructions like everything else. also frustrated with just all of this virtual studios .. nothing works like it's supposed to and computer programmers just have a serious problem with giving clear instructions which saddens me greatly.

@auscash

This comment has been minimized.

Copy link

commented Mar 2, 2019

@crypto117 I'm setting one up to see how it goes, and will document the steps I took and in what order and post them here.

I hope that might help out. Back soon after I get some sleep and set up the pool. Best of luck, I'm sure it was just a missed step or a simple/easy to miss configuration issue which can be sorted out.

@auscash

This comment has been minimized.

Copy link

commented Mar 2, 2019

Hmm sorry, I'm so tired, I meant explorer not pool. I have pool on my mind because I just set one up :)

@samqju

This comment has been minimized.

Copy link

commented Mar 16, 2019

I have created another guide to setup explorer here : https://gist.github.com/samqju/b9fc6c007f083e6429387051e24da1c3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.