Fix WATCHDOG EXPIRED Status on Geekcash (Geek) Masternode

Antônio Carlos
4 min readSep 23, 2018

--

installed the sentinel

if the sentinel is installed and running through pm2 an instance on node and even then the Watchdog Expired problem continues
it is necessary to verify that the procedures have been done correctly. Casso could not perform any commands from the installation script.

Step 1: Update the version of the Geekcash Wallet

Update newest verion:

wget https://rawgit.com/GeekCash/masternode/master/upgrade.sh
chmod + x ./upgrade.sh
sudo bash ./upgrade.sh

2- step upgrade the system, because if it does not allow we can have problems with the installation of npm i and consequently we will not
this is valid so that you had trouble executing any command line of the node-sentinel or sentinel installation script
the system update, it should update completely.

3- Stop the Geekcash daemon with the command

Apt-get update

Geekcash-cli stop

access the geekcash folder, in my case mine is on the way

cd /root/.geekcash

perform the command

rm -rvf debug.log
rm -rvf budget.dat
rm -rvf peers.dat
rm -rvf fee_estimates.dat
rm -rvf mncache.dat
rm -rvf mnpayments.dat

to activate the geekcash daemon

geekcashd

4_ If the node-sentinel is installed it is necessary to verify that it is activated
issue the pm2 status command

if you present this error follow the procedures, if this ok follow the procedures of item 5

obs: when to execute the command pm2 status and verify that the sentinel this presentodo the status error, and why an error occurred in the installation of npm

  • +++++++++++++++++++++++++++++++++++

import gyp
File “/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py”, line 8, in <module>
import gyp.input
File “/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/input.py”, line 5, in <module>
from compiler.ast import Const
ImportError: No module named compiler.ast
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.4.0–127-generic
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /root/node-sentinel/node_modules/zmq
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN node-sentinel@1.0.1 No description
npm WARN node-sentinel@1.0.1 No repository field.

  • npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! zmq@2.15.3 install: `node-gyp rebuild`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the zmq@2.15.3 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  • npm ERR! A complete log of this run can be found in:
    npm ERR! /root/.npm/_logs/2018–09–22T14_28_10_288Z-debug.log
  • ++++++++++++++++++++++++++++++++++++++

sudo apt-get install libboost-all-dev -y

apt install node-gyp

node-gyp build

npm i pm2

5 — If everything is correct, it will not present an error check if you have configured the config.js file
check the config.js file
access node-sentinel folder

cd node-sentinel

dir

locate the config.js file
if it does not show it is necessary to create the same from example_config.js

or if you have the same configuration file config.js

nano config_example.js

OR

nano config.js

present the information:
version: ‘1.2.1’,
Coins: [
{
id: ‘MN-01’,
rpc: {
url: ‘http://127.0.0.1:6888/'
method: ‘POST’,
auth: {
username: ‘root’, ← Rpcuser geekcash.conf
password: ‘pass’ ← Password geekcash.conf
},-
}
},
{
id: ‘MN-02’,
rpc: {
url: ‘http://127.0.0.1:6888/'
method: ‘POST’,
auth: {
username: ‘root’,
password: ‘pass’
},
}
},
// {
// id: ‘MN-03’,
// rpc: {
// url: ‘http://127.0.0.1:6888/',
// method: ‘POST’,
// auth: {
// username: ‘root’,
// password: ‘pass’
//},
//}
//},
]
4 change the username and password information for the information contained in geekcash.conf username = rpcuser and password = pass
put the password between quotes and save with the name config.js
after that access the node-sentinel folder and execute the command

pm2 restart sentinel

after this the same should normalize to check if this everything ok check the commands below

geekcash-cli masternode status

must present the ip and address and outputs if it does not present it is

necessary to wait a few minutes if not change must make the command

masternode alias for

that it is regularized.

after that close the wallet and open again. after 20 minutes duty altar status to enabled

# Guidelines: It is not necessary to restart the masternode in the wallet.

#caso show some error in any command post in the discord for help.

--

--