janoside / btc-rpc-explorer

Database-free, self-hosted Bitcoin explorer, via RPC to Bitcoin Core.
https://bitcoinexplorer.org
MIT License
1.58k stars 1.18k forks source link

BTC RPC Explorer Fails to Start After Upgrading - RaspiBolt #331

Open penguin4111 opened 3 years ago

penguin4111 commented 3 years ago

I am running on my system I setup following the RaspiBolt guide and recently upgraded BTC RPC Explorer from v2.2.0 to v3.1.1. I followed the upgrade instructions given in the guide: https://stadicus.github.io/RaspiBolt/raspibolt_55_explorer.html#upgrade.

After upgrading, the program now fails to start. I get the following readout:

image

I thought maybe Node.js needed upgrading but doing so did not seem to solve the issue. Any ideas/thoughts?

janoside commented 3 years ago

Hmmm, I'm not sure here. As long as npm install was run as part of the upgrade process I would think that all modules would be present (especially if you also did a node upgrade). I'm sorry, I don't run on that system myself to try to reproduce. If you can find any other errors or log output I can continue investigating with you. You may also want to check with the developers of that project to see if they have any more insight?

asierba commented 3 years ago

What's your version of node and npm?

node -v
npm -v

I was having a similar issue when upgrading to latest version (3.2.0). My node version was 10 and npm 5. This are my node and npm version now and it works fine:

$ node -v
v14.18.0
$ npm -v
6.14.15

You can upgrade node and npm with the following command:

sudo apt-get install -y nodejs

If that doesn't install latest you can check this document: https://github.com/nodesource/distributions/blob/master/README.md