Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crash due to response from one client #17

Closed
AyushyaChitransh opened this issue Mar 12, 2019 · 7 comments · Fixed by #19
Closed

Server crash due to response from one client #17

AyushyaChitransh opened this issue Mar 12, 2019 · 7 comments · Fixed by #19

Comments

@AyushyaChitransh
Copy link
Contributor

The error log is as follows:

/root/ethstats-server/lib/history.js:339
                .value();
                 ^

TypeError: _(...).sortBy(...).slice(...).forEach(...).reverse(...).value is not a function
    at History.getNodePropagation (/root/ethstats-server/lib/history.js:339:4)
    at Collection.addBlock (/root/ethstats-server/lib/collection.js:88:46)
    at Sparky.<anonymous> (/root/ethstats-server/app.js:185:10)
    at emitOne (events.js:116:13)
    at Sparky.emit (events.js:211:7)
    at Sparky.incoming (/root/ethstats-server/node_modules/primus-emit/index.js:72:44)
    at transform (/root/ethstats-server/node_modules/primus/spark.js:312:33)
    at Sparky.transforms (/root/ethstats-server/node_modules/primus/spark.js:330:4)
    at decoding (/root/ethstats-server/node_modules/primus/spark.js:215:13)
    at Sparky.decoder (/root/ethstats-server/node_modules/primus/parsers/json.js:34:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.

Another instance of failure resulted in different logs. This failure was caused when netstats server was restarted and client reconnected itself:

2019-03-12 07:45:31.368 [API] [CON] Connected auth03Localhost
/root/ethstats-server/lib/history.js:286
        if( !_.isUndefined(best.height) )
                                ^

TypeError: Cannot read property 'height' of undefined
    at History.bestBlockNumber (/root/ethstats-server/lib/history.js:286:26)
    at Collection.canNodeUpdate (/root/ethstats-server/lib/collection.js:305:55)
    at Collection.requiresUpdate (/root/ethstats-server/lib/collection.js:315:16)
    at Sparky.<anonymous> (/root/ethstats-server/app.js:335:14)
    at emitOne (events.js:116:13)
    at Sparky.emit (events.js:211:7)
    at Sparky.incoming (/root/ethstats-server/node_modules/primus-emit/index.js:72:44)
    at transform (/root/ethstats-server/node_modules/primus/spark.js:312:33)
    at Sparky.transforms (/root/ethstats-server/node_modules/primus/spark.js:330:4)
    at decoding (/root/ethstats-server/node_modules/primus/spark.js:215:13)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node ./bin/www`

Related to #10

@OleksandrMykytenko
Copy link

The same error for me:
TypeError: Cannot read property 'height' of undefined

Any updates here?

@Zergity
Copy link

Zergity commented Apr 16, 2019

Reverting commit 6ad9c2c makes it works.
One more thing, this issue happens to only 1 of my 2 Linux systems.

@PatrickDehkordi
Copy link

PatrickDehkordi commented May 8, 2019

Same. It happened to me on Node 8.10 / Ubuntu 18.04 if it is any help.

@antsankov
Copy link

Can confirm this issue is still ongoing - unable to use this application at the moment.

@PatrickDehkordi
Copy link

PatrickDehkordi commented May 26, 2019

Hi all I got this wokring a while back. I am on a plane, and on vacation, but will send fix later. Also part of it is I didn't even document all the things I tried and changed.

However I have a node up now that SHOULD NOT crash https://goerli.network port 3000 try adding node, if you want to confrim. Cause alone I can only test so many nodes.
hope this helps, and thanks everyone for contributing code to this.

@PatrickDehkordi
Copy link

Also I was able to bring up stable nodes on all the networks:
https://goethereum.network
https://ropsten.net
https://rinkeby.network
https://goerli.network

I think the monitoring that Cudebro wrote is very useful when doing dev on the testnets. I alwasy run it in the background. Feel free to utilize.

@stabastian
Copy link

Reverting commit 6ad9c2c makes it works.
One more thing, this issue happens to only 1 of my 2 Linux systems.

This solution doesn't work for me, I'm still having the same error

TypeError: Cannot read property 'height' of undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants