ZeusLN / zeus

A mobile Bitcoin wallet fit for the gods. ⚡️ Est. 563345
https://ZeusLN.com
Other
979 stars 146 forks source link

Embedded node: offline Tor channels #2373

Open mateuszmp opened 2 weeks ago

mateuszmp commented 2 weeks ago

Describe the bug

I'm running Zeus with the embedded LND. I was able to open a channel to node that's only on Tor. I was also able to make a few payments over it.

However I am now unable to make any payments over this channel and Zeus says it's always offline.

I have deleted all the neutrino files. I have redownloaded the graph and otherwise followed the instructions found here: https://docs.zeusln.app/for-users/embedded-node/faq/#my-channels-are-showing-as-offline-how-can-i-get-them-to-show-as-active-again . I have also found that Zeus has synced successfully. However my channel remains presented as offline. Naturally I also checked if the peer really is online and have confirmed that they in fact are (they are running lnd on Umbrel)

The attached LND logs suggest all .onions are unreachable for Zeus, despite Tor working just fine for other apps.

Reproduce

Turn on Orbot for Zeus Open up a channel to a node only on Tor Wait some time Start Orbot again Start Zeus again Find that the channel with the Tor-only node is always presented as offline

ZEUS version

v0.9.0

Node interface

Embedded LND

Network

Tor

Device

Samsung Galaxy S22 Ultra

Device operating system

Android 14

Log output

20:09:55.994 [ERR] SRVR: Unable to connect to  026c880e448682e27033c100c19bcf6d80d034090b974  4c08caae394052aa74885@3ykmvl62h7kgeaj6udc4h3r2t  eoqssxrhflio54mtahgvigqzpyiraqd.onion:9735: read tcp  1 92.168.50.1:50816->10.246.181.221:9735: i/o timeout  20:09:55.994 [ERR] SRVR: Unable to connect to  02d84b922d6d6b6e2c35f483f6d7f33e853b21c5ff8684  ab532813bfcd2ecfc67a@pnvl5hevmuguf5szfenzqixbm  cuk676stlbeljkq4gald244fdev4qd.onion:9735: read tcp  192.168.50.1:46592->10.243.244.131:9735: i/o timeout  20:09:55.994 [ERR] SRVR: Unable to connect to  02d84b922d6d6b6e2c35f483f6d7f33e853b21c5ff8684  ab532813bfcd2ecfc67a@pnvl5hevmugufi5szfenzqjxbm  cuk676stlbeljkq4gald244fdev4qd.onion:9735: read tcp  192.168.50.1:46592->10.243.244.131:9735: i/o timeout  20:09:55.996 [ERR] SRVR: Unable to connect to  02559f7bd0aa9e35047ee32ddfa5b531968245c644cb4f  1f0e41ab191af0afdb19@ivotajullkffkav6w4l4rc6w47xzq  7m4hrvxq63r7xmwx6dk4g2egyd.onion:9735: read tcp  192.168.50.1:50756->10.220.218.220:9735: i/o timeout  20:09:55.996 [ERR] SRVR: Unable to connect to  02559f7bd0aa9e35047ee32ddfa5b531968245c644cb4f  1f0e41ab191af0afdb19@ivotajullkfflkav6w4l4rc6w47xzq  7m4hrvxq63r7xmwx6dk4g2egyd.onion:9735: read tcp  192.168.50.1:50756->10.220.218.220:9735: i/o timeout  20:09:55.996 [ERR] SRVR: Unable to connect to  0236e20f1bc42f16c6151422e6ebe52672d2aaed953964b  d9b5423ca5f0999a204@owcp3zgklh6z327buv7u6jxprxr  cpqurxj6fvqpkvprv7gfab6a3xxyd.onion:9735: read tcp  192.168.50.1:45768->10.196.194.72:9735: i/o timeout  20:09:55.996 [ERR] SRVR: Unable to connect to  0236e20f1 bc42f16c6151422e6ebe52672d2aaed953964b  d9b5423ca5f0999a204@owcp3zgklh6z327buv7u6jxprxr  cpqurxj6fvqpkvprv7gfab6a3xxyd.onion:9735: read tcp  192.168.50.1:45768->10.196.194.72:9735: i/o timeout
kaloudis commented 2 weeks ago

Can you try initiating a peer connection in ZEUS to the Tor node like you did when you created the channel?

If you tap the header on the Open Channel view you can switch to Connect Peer mode

mateuszmp commented 2 weeks ago

Can you try initiating a peer connection in ZEUS to the Tor node like you did when you created the channel?

If you tap the header on the Open Channel view you can switch to Connect Peer mode

Oh my fucking God this fixed it. The channel is no longer offline and shows up as "Good"

kaloudis commented 2 weeks ago

Can you try initiating a peer connection in ZEUS to the Tor node like you did when you created the channel? If you tap the header on the Open Channel view you can switch to Connect Peer mode

Oh my fucking God this fixed it. The channel is no longer offline and shows up as "Good"

Thanks for trying. Figured this would work.

Not ideal UX - we'll have to integrate Tor natively for it to work seamlessly, but will note this as a workaround.

mateuszmp commented 2 weeks ago

Can you try initiating a peer connection in ZEUS to the Tor node like you did when you created the channel? If you tap the header on the Open Channel view you can switch to Connect Peer mode

Oh my fucking God this fixed it. The channel is no longer offline and shows up as "Good"

Thanks for trying. Figured this would work.

Not ideal UX - we'll have to integrate Tor natively for it to work seamlessly, but will note this as a workaround.

Perhaps you could add procedure to loop over channel peers on start up and try to initiate a connection with them as Zeus launches. This doesn't require changes to Tor