LND / Neutrino it's not running RPC server. #6473
Replies: 9 comments
-
Could you paste a full version of your logs when you run the command? |
Beta Was this translation helpful? Give feedback.
-
Please don't post screenshots of logs. That makes it so much harder to read through things... And I now have to type the log message I'm referencing instead of just being able to copy/paste.
That's normal for the mobile use case since all RPCs are run through the stub code generated for mobile. |
Beta Was this translation helpful? Give feedback.
-
@guggero sorry for the mistake pasting the screenshot with the logs. Let me explain what's my idea.... I'm trying to run LND on mobile as mentioned before, and expect to communicate with the node capabilites using gRPC or REST API using flutter app as client, but without RPC server up I can't do nothing. Following this guide Neutrino Guide I could to generate the Lndmobile library to use on IOS / Android, and generate the gRPC methods from the .proto files, but I had some issues generating the code base for Java (Android) for this reason decide to generate .dart files from .proto files and manage only one codebase to communicate with the node capabilities, but in this step I found the problem with the RPC server, trying to hit the rest API or with gRPC generated files a UNAVAILABLE error it's present. |
Beta Was this translation helpful? Give feedback.
-
I guess that use case makes sense. But because of the way the mobile bindings currently work, you'll need to edit the |
Beta Was this translation helpful? Give feedback.
-
@guggero thank you for your help. I'll be working on it, if suddenly you have any guide to follow I'll very grateful if you can share it. |
Beta Was this translation helpful? Give feedback.
-
Hi @miguelkmldev, I would advice against trying to spin up up real gRPC server. There's a history behind the design decisions that lead up to the current mobile bindings. https://www.youtube.com/watch?v=bjZ_QRgSAJ8 You can check out my code on how I got protobuf codegen to work on Android here: I also have fully developed lnd gluecode for iOS/macOS and Android there as well. Back when I started I went with the "gRPC server on device" route, because the current in-memoery gRPC idea had not been conceived back then. |
Beta Was this translation helpful? Give feedback.
-
Hi @hsjoberg at the beginning I have been working with this focus, generate de bindings for IOS / Android, but as mentioned before, I had some issues in java, I can generate the methods but specifically one of this files was generated with errors, and it's required by others modules then other required files are broken. In the case of Please let me know if this error it's known or if should create a new issue related to that. |
Beta Was this translation helpful? Give feedback.
-
I'm gonna convert this to a Discussion since there's no issue w/ lnd, and instead the OP is attempting to embed the gRPC server instead of use the mobile bindings. You may also be interested in this PR @miguelkmldev: #6464 |
Beta Was this translation helpful? Give feedback.
-
Background
Describe your issue here.
Your environment
lnd
: 0.14.2-beta.rc2Steps to reproduce
I have been working on a product 100% non centralized, I'm following this guide Neutrino guide to setup node on mobile device.
The node its running but its not running the RPC server only the REST server.
The command that I'm uising ro run the node is
--bitcoin.active --bitcoin.testnet --bitcoin.node=neutrino --lnddir=\(path) --neutrino.connect=faucet.lightning.community --no-macaroons --debuglevel=debug --tlsdisableautofill --no-rest-tls --rpclisten=127.0.0.1:10009
Expected behaviour
Actual behaviour
Beta Was this translation helpful? Give feedback.
All reactions