trezorhannes / vps-lnbits Goto Github PK
View Code? Open in Web Editor NEWDocumentation how to setup LNbits on a VPS, connected to your Lightning Network Node
Documentation how to setup LNbits on a VPS, connected to your Lightning Network Node
Heya!
Thank you very much for the guide. I'm stuck at step 9 however.
When I add "externalip=VPS-IP:9735" to the lnd.conf and restart the service, the entry vanishes from the config.
All other settings stick. How do I avoid having the config file reset?
Also, is this modification correct for the lnd.service?
Your guide says it should be "ExecStart=/usr/local/bin/lnd ${lndExtraParameter}", but my service file also contains "--configfile=/home/bitcoin/.lnd/lnd.conf"
[Service]
ExecStartPre=-/home/admin/config.scripts/lnd.check.sh prestart mainnet
ExecStart=/usr/local/bin/lnd ${lndExtraParameter} --configfile=/home/bitcoin/.lnd/lnd.conf
Thanks in advance!
Hello I run an Umbrel node and I am thinking of doing this. But my node has a sizable number of sats on it already. Is this guide for those who are starting off with a fresh node?
1.9 settings worked same as 1.8 in case you want to add 1.9 in the doc.
After upgrade, I did need to re-set-up the node's ovpn to my LNBits on VPS, edit lnd.conf to re-add extnernal IP, and edit lndcheck.sh to not overwrite the external IP. I think that was the only issue (was a few weeks ago).
I've successfully connected my local node to openvpn server. Everything seems fine in openvpn logs, but when I start lnd, lnd logs are full of timeout or network unreachable lines:
[ERR] SRVR: Unable to connect to 037bac010f84ef785ddc3ade66d008d76d90d80eab6e148c00ea4ba102c07f2e53@3.238.22.25:9735: dial tcp 3.238.22.25:9735: i/o timeout
[ERR] SRVR: Unable to connect to 03573d821ac340980ea15ae2e84bfd0365690b459f0192c946fe49fb5bdda8736a@[2003:ce:7f18:7c00:c2f3:2dcf:1e3a:f7c]:9735: dial tcp [2003:ce:7f18:7c00:c2f3:2dcf:1e3a:f7c]:9735: connect: network is unreachable
Os: Ubuntu 22.04
Lnd is: lnd v0.15.1-beta
@TrezorHannes do you have some suggestion what might be the issue, or how can I debug the problem? lnd, docker and vpn client logs doesn't show anything usefull.
I am stuck with connecting the LNBits to the running OpenVPN Docker container.
OpenVPN works fine and I see my node in the clearnet with the right IP, but when trying to start LNBits it is unable to connect to 172.17.0.1 (I also tried 172.17.0.2 thinking it is a typo but didn't work)
curl https://172.17.0.1:8080 -v --cacert /home/admin/tls.cert also times out and can't reach anything.
I have no clue what to do from here. I also tried using Docker for LNBits instead of Poetry Build. But the same issue. Is maybe docker-compose with exposed port between LNbits and VPN possible? Would also be a nice setup.
Continuing our conversation from twitter (@holtzmanbtc)...
When running LNbits using the following command:
$ ./venv/bin/uvicorn lnbits.main:app --port 5000
The application is unable to make a connection and prints the following continuously:
> INFO | Retrying connection to backend in 5 seconds...
On twitter, you instructed me to run the following:
$ ip -f inet addr show docker0
Using this command I can confirm that the VPS docker IP is 172.17.0.1.
I'm also able to successfully ping my node from within the docker container like you mentioned.
Appreciate your help getting this working, nice tutorial. :)
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.