LnMe is a personal Bitcoin Lightning payment page/widget and self-hosted Lightning Address server.
I am trying to deploy to Heroku but am having problems connecting to my Lightning Node using the onion address. The deployment was successful but when I try to start I get the following error:
Error initializing LND client: panic: encoding/hex: invalid byte: U+0075 ‘u’
I am not sure exactly what this means. I also am wondering if I can actually connect to my LND node using the onion address (will it get routed through the router). Anyway, any help or clarification would be appreciated. I am fairly new at this stuff, so please go easy on me!
I tried deploying to Heroku and connecting to my Umbrel node. I got my LND onion address from the file./home/umbrel/umbrel/tor/data/lnd-grpc/hostname
I also created the HEX cert and macaroon as per your instructions. To create the macaroon I had to go into the lnd contain - docker exec -it lnd /bin/bash and execute:
So I think I got all of the env variables correct…
But when I deploy to Heroku - everything builds ok, but crashes on startup - I get these messages in the log
panic: exec: “tor”: executable file not found in $PATH
goroutine 1 [running]:
main.main()
/tmp/build_55ed8a5d/lnme.go:101 +0x1556
Process exited with status 2
State changed from starting to crashed
Build succeeded
I think that TLS cert is bound to ‘umbrel.local’ - when a request is coming from heroko - it is looking for a cert that is bound to the onion address. That is what I discern from the error messge below. So i think I need to generate a cert that is bound to the onion address then it will work.
I got it working. You can see (and tip me at the link below). It took some gnarly commandline stuff, I had to regenerate the TLS cert with the onion address plus a few other things. I will document shortly.