janoside / btc-rpc-explorer

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

Error after fresh install #648

Closed ghost closed 5 months ago

ghost commented 5 months ago

Hello, just started a fresh install of raspibolt on rpi4, default install, but can't make explorer to work, here're some logs: Jun 18 17:53:09 raspibolt npm[65747]: 2024-06-18T16:53:09.257Z btcexp:errorVerbose Stack: Error Jun 18 17:53:09 raspibolt npm[65747]: at IncomingMessage.<anonymous> (/home/btcrpcexplorer/btc-rpc-explorer/node_modules/jayson/lib/client/http.js:78:23) Jun 18 17:53:09 raspibolt npm[65747]: at IncomingMessage.emit (node:events:531:35) Jun 18 17:53:09 raspibolt npm[65747]: at endReadableNT (node:internal/streams/readable:1696:12) Jun 18 17:53:09 raspibolt npm[65747]: at process.processTicksAndRejections (node:internal/process/task_queues:82:21) Jun 18 17:53:09 raspibolt npm[65747]: 2024-06-18T16:53:09.258Z btcexp:error Error RpcError-001: Error, json: {"code":401,"userData":{"request":"getblockchaininfo"}}, userData: [object Object] (json: {"request":"getblockchaininfo"})

`$ npm run start

btc-rpc-explorer@3.4.0 start node ./bin/www

btcexp:app Searching for config files... +0ms btcexp:app Config file not found at /home/btcrpcexplorer/.config/btc-rpc-explorer.env, continuing... +2ms btcexp:app Config file not found at /etc/btc-rpc-explorer/.env, continuing... +2ms btcexp:app Config file found at /home/btcrpcexplorer/btc-rpc-explorer/.env, loading... +0ms btcexp:app Default cacheId '3.4.0' +4s btcexp:app Enabling view caching (performance will be improved but template edits will not be reflected) +101ms btcexp:app Session config: {"secret":"*****","resave":false,"saveUninitialized":true,"cookie":{"secure":false}} +3ms node:events:497 throw er; // Unhandled 'error' event ^

Error: listen EADDRINUSE: address already in use 127.0.0.1:3002 at Server.setupListenHandle [as _listen2] (node:net:1898:16) at listenInCluster (node:net:1946:12) at doListen (node:net:2116:7) at process.processTicksAndRejections (node:internal/process/task_queues:83:21) Emitted 'error' event on Server instance at: at emitErrorNT (node:net:1925:8) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'EADDRINUSE', errno: -98, syscall: 'listen', address: '127.0.0.1', port: 3002 }

Node.js v20.14.0 `

ghost commented 5 months ago

my bad, I wrote bitcoind instead of bitcoin in the path, sorry for that.