altangent / lnd-explorer Goto Github PK
View Code? Open in Web Editor NEWBitcoin Lightning Network Daemon Explorer
Home Page: https://lndexplorer.com/
License: MIT License
Bitcoin Lightning Network Daemon Explorer
Home Page: https://lndexplorer.com/
License: MIT License
It looks like the app does not handle the error event when connection to lnd fails for some reason.
events.js:183
throw er; // Unhandled 'error' event
^
Error: 14 UNAVAILABLE: EOF
at createStatusError (/opt/lnd-explorer/node_modules/grpc/src/client.js:65:15)
at ClientReadableStream._emitStatusIfDone (/opt/lnd-explorer/node_modules/grpc/src/client.js:271:19)
at ClientReadableStream._receiveStatus (/opt/lnd-explorer/node_modules/grpc/src/client.js:249:8)
at /opt/lnd-explorer/node_modules/grpc/src/client.js:715:12
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `NODE_ENV=production node src/server/server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
This appears in Firefox & Chrome on linux, and also Safari on OS X.
For the node display the vertical scroll bar covers up part of the data display, and a resulting horizontal scroll bar is appears at the bottom. The width should size appropriately so the vertical scroll bar no longer covers any information and the horizontal bar does not appear.
Currently there is no ability to force close a channel.
Hello and thanks for your great work. I am trying to run this on my node, but I want some sort of authorization. So I put it behind an Apache proxy where I set the auth. It works on the standard requests, but apparently the AJAX requests to /api/... do not have the auth headers and thus are receiving 401. If I disable the auth, it works fine.
I am not sure if it's even solvable with the current setup so I'd like to get some ideas how to handle the authorization. Anyone tried something like that?
Here is the relevant part from my Apache conf:
ProxyPreserveHost On
ProxyPass "/" "http://localhost:8001/"
ProxyPassReverse "/" "http://localhost:8001/"
<Proxy *>
AuthType Basic
AuthName "LND explorer"
AuthBasicProvider file
AuthUserFile "/opt/lnd-explorer/passwords"
Require valid-user
</Proxy>
...
The docker build fails to run on both master
branch and v1.5.0
tag with the following error:
Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
Is there a workaround for it or my platform is unsupported? The host machine is an ubuntu 18.10 x64 system.
Regression test and update lnd-explorer to support new apis in 0.4-alpha
Unfortunately, Node Sass does not support ARM architecture, which excludes most micro-computers (like Raspberry Pi) from using your project.
I would love to use your lnd-explorer in my Lightning Guide:
https://medium.com/@stadicus/perfect-low-cost-%EF%B8%8Flightning%EF%B8%8F-node-4c2f42a4ff7b
Any chance that this could be fixed?
Errors when installing on a Hardkernel Odroid HC2
http://www.hardkernel.com/main/products/prdt_info.php
Error: Node Sass does not yet support your current environment: Linux Unsupported architecture (arm) with Node.js 8.x
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.7.2
at module.exports (/home/admin/download/lnd-explorer/node_modules/node-sass/lib/binding.js:13:13)
at Object.<anonymous> (/home/admin/download/lnd-explorer/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/admin/download/lnd-explorer/node_modules/node-sass/bin/node-sass:10:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
When executing npm install
you're faced with the error
npm install [404/1045]
> [email protected] install /root/lnd-explorer/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.15.1/node-v67-linux-x64-glibc.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v67 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Pre-built binaries not installable for [email protected] and [email protected] (node-v67 ABI, glibc) (falling back to source compile with node-gyp)
node-pre-gyp WARN Hit error Connection closed while downloading tarball file
make: Entering directory '/root/lnd-explorer/node_modules/grpc/build'
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
make: Entering directory '/root/lnd-explorer/node_modules/grpc/build'
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o
rm: cannot remove './Release/.deps/Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o.d.raw': No such file or directory
make: *** [grpc.target.mk:469: Release/obj.target/grpc/deps/grpc/src/core/lib/surface/init.o] Error 1
make: Leaving directory '/root/lnd-explorer/node_modules/grpc/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:188:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 4.18.5-arch1-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/root/lnd-explorer/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/root/lnd-explorer/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glib
c" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd /root/lnd-explorer/node_modules/grpc
gyp ERR! node -v v11.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/root/lnd-explorer/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/root/lnd-explorer/node_modules/grpc/src/node/extension_binary/node-
v67-linux-x64-glibc --napi_version=3 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/root/lnd-explorer/node_modules/grpc/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:188:13)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:978:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
node-pre-gyp ERR! System Linux 4.18.5-arch1-1-ARCH
node-pre-gyp ERR! command "/usr/bin/node" "/root/lnd-explorer/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /root/lnd-explorer/node_modules/grpc
node-pre-gyp ERR! node -v v11.6.0
node-pre-gyp ERR! node-pre-gyp -v v0.10.3
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/node /usr/lib/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --library=static_library --module=/root/lnd-explorer/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc/grpc_node.node --module_name=grpc_node --module_path=/root/lnd-explorer/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc --napi_vers
ion=3 --node_abi_napi=napi' (1)
CXX(target) Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o
npm WARN [email protected] requires a peer of [email protected] - 3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of [email protected] but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-01-10T19_31_27_054Z-debug.log
[root@testnet lnd-explorer]# ../deps/grpc/src/core/lib/avl/avl.cc:306:67: fatal error: opening dependency file ./Release/.deps/Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o.d.raw: No such file or directory
compilation terminated.
make: *** [grpc.target.mk:469: Release/obj.target/grpc/deps/grpc/src/core/lib/avl/avl.o] Error 1
make: Leaving directory '/root/lnd-explorer/node_modules/grpc/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:188:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 4.18.5-arch1-1-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--library=static_library" "--module=/root/lnd-explorer/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glibc/grpc_node.node" "--module_name=grpc_node" "--module_path=/root/lnd-explorer/node_modules/grpc/src/node/extension_binary/node-v67-linux-x64-glib
c" "--napi_version=3" "--node_abi_napi=napi"
gyp ERR! cwd /root/lnd-explorer/node_modules/grpc
gyp ERR! node -v v11.6.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Which is an issue with Node.js 11 when npm tries to install [email protected] gRPC sporadically doesn't build properly under node 11
The solution is to either update the offending package(s) version(s) in package.json or run npm update
before running npm install
Hello, I've testing different LND explorers and already tested yours, I liked it, but now I want to move on and test others, could you please explain the process to remove lnd-explorer from npm?
I tried using both:
npm -g uninstall start --save (from within the lnd-explorer folder, as to run it is npm start), didn't work.
npm -g uninstall lnd-explorer --save (from outside the lnd-explorer folder), didn't work.
I even tried the same command with start from outside the lnd-explorer folder, didn't work either.
I know I have to use npm -uninstall but I don't know what is the name I need to use. Please provide the name.
Thanks!
M.
This is more of a question than an issue, hope you don't mind.
I can start the lnd-explorer just fine from the command line using npm start
directly from within the directory. But I'd like to run it on startup directly after LND. Everything is automated using systemd
(see my RaspiBolt guide for details).
Thanks in advance! :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.