Behind the BLOCKS… A tale of a Server Reboot (x2) and NODE.js rebuild

in LeoFinance4 years ago

I wake up this morning and notice:

5612184.jpg

Alert * Alert * Alert * Alert


Your HIVE-ENGINE Witness hasn’t done anything in a day !!!

a day ago.jpg


What is going on??? Looking at the logs we are stuck behind the blockchain…

0|marvin  | 2021-03-21 19:13:37 info: [Streamer] head_block_number 52337243 currentBlock 52337234 Hive blockchain is 9 blocks ahead

I tried stopping, starting rebooting and finally ended up rebuilding the node and rebooting again. We’re back on and registered. Happy to provide the log files or more info if anyone is interested.

COMMANDS:

$ cd /hive/steemsmartcontracts
$ git fetch
$ git stash save ""
$ git merge origin/hive-engine
$ cp config.json.ISMELLBACON config.json

$ npm install
$ pm2 startup

REBOOT (sudo shutdown -r now)

Logged in set back up SWAP (sudo swapon /swapfile) and started back up the NODE:

$ pm2 start app.js --no-treekill --kill-timeout 10000 --no-autorestart --name marvin

Errors in log:

0|marvin  | 2021-03-21 19:25:54 info: [Streamer] head_block_number 52337487 currentBlock 52337478 Hive blockchain is 9 blocks ahead

***

0|marvin   | 2021-03-21 19:00:56 error: [Blockchain] skipping Hive block 52336925 as it has already been parsed

***

0|marvin  | 2021-03-21 19:11:27 error: [Streamer] VError [RPCError]: Internal Error
0|marvin  |     at Client.<anonymous> (/home/ubuntu/hive/steemsmartcontracts/node_modules/@hiveio/dhive/lib/client.js:208:23)
0|marvin  |     at Generator.next (<anonymous>)
0|marvin  |     at fulfilled (/home/ubuntu/hive/steemsmartcontracts/node_modules/@hiveio/dhive/lib/client.js:39:58)
0|marvin  |     at processTicksAndRejections (node:internal/process/task_queues:94:5) {
0|marvin  |   jse_shortmsg: 'Internal Error',
0|marvin  |   jse_info: {
0|marvin  |     error_id: '97a47ea1-c5ea-4aea-9d98-246e01eb0ec5',
0|marvin  |     jussi_request_id: '000078534825532144'
0|marvin  |   }
0|marvin  | }


documenting to speed up troubleshooting the future

Posted Using LeoFinance Beta