Explore Courses Blog Tutorials Interview Questions
0 votes
in Blockchain by (12.7k points)

I am using lotion js in my node js server, which is used as a blockchain technology. Some times I am getting Tendermint node crashed. As I am new to blockchain concept, I don't know the reason behind the crash.

I did not do any changes inside node modules

const admin = require("firebase-admin")

const db = admin.database()

let app = require('lotion')


  initialState: {count: 0}


function txHandler(state, tx, chainInfo) {



var port = process.env.PORT || 3000




.on("child_added", function(snapshot, prevChildKey) {

   var txnObject = {}

   txnObject.senderId = snapshot.val().senderId = snapshot.val().name

   txnObject.phoneNumber = snapshot.val().phoneNumber

   txnObject.receiverId = snapshot.val().receiverId

   txnObject.amount = snapshot.val().amount'http://localhost:' + port + '/txs', txnObject).then(function(response){

   console.log('saved successfully')

   }).catch(function(error) {

       console.log('failed to save')




This is my index.js file content.

And the error I am getting is:


      throw ex;


Error: Tendermint node crashed

    at ChildProcess.tendermintProcess.on (/Users/chandrika/Documents/lotion-js/node_modules/lotion/lib/tendermint.js:90:13)

    at ChildProcess.emit (events.js:160:13)

    at maybeClose (internal/child_process.js:943:16)

    at (internal/child_process.js:363:11)

    at Socket.emit (events.js:160:13)

    at Pipe._handle.close [as _onclose] (net.js:562:12)

Can anyone help me? Thank you in advance!

1 Answer

0 votes
by (29.5k points)
edited by

Hi,try using the following command in terminal:

$ rm -rf ~/.lotion

and then

$node index.js

This will forcefully remove the hidden file mentioned.

There is a lot more to learn than this. Enroll now in Blockchain Online Course to learn more.

Browse Categories