-
Notifications
You must be signed in to change notification settings - Fork 20.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Light client fails to connect private network #3789
Comments
@zsfelfoldi Please look into this when you have time. It should be reproducible without a phone. |
@zsfelfoldi Did you get any chance to look into it? |
Hello @zsfelfoldi @fjl are you that busy that you cannot reply to us? I am researching the same thing and i found the same bug! How long is the default timeout, why is it so low |
@karalabe will your latest geth 1.6 resolve this issue? |
@sumanxp please try **upgrading to geth 1.6 and the config checklist is followed below #3510 -disabling topic discovery (--nodiscover) on both sides (light client and main node) |
@berlinerwander Issue is between Andriod light client with a light server. CLI version works well even in earlier releases(e.g 1.5.9). Are you experimenting with Android light client ? |
@sekharkumarroy Yes experimenting. I just wanted to check there are no breaks when geth goes to 1.6 anyway In #3510 you said '...facing challenges when connecting from an android device to a private light server using the android package (geth.aar). I'm doing experiment in an internet facing AWS server and all the required ports open. .' What is the result of your experiment? Does the problem lie within the design constraints https://blog.ethereum.org/2017/01/07/introduction-light-client-dapp-developers/ |
Hello, we are trying to have a working Android light client node connecting to a private chain, but the problem is we cannot find a way to "add a peer" (no addPeer method available), in order to add the light server from the client (Android) side. We are looking for that, as it seems this is the only way to do it (also when we try it out on test containers): the bootnodes switch seems to be useless (ignored). |
Same problem here! I can connect to 'ropsten' but not to private network lightserver! |
Any update on this one? Has anyone found a solution for this issue? I can see only ping messages in the log and it never trigers a sync. |
We are also having the same issue, any idea how to debug this issue? |
@gmerlino You can supply a static-nodes.json on the android client this will work the same way as the addPeer method. If you your data directory in android is something like I didn't actually test with a private network but I don't see why it should not work |
@kelsos I am working on the iOS framework right now. Does your suggestion also work on iOS side? |
@DHOscar I am not sure how the iOS counterpart works to be honest. There should not be any methods related. Since the mobile frameworks don't support the addPeer method, adding the static-nodes.json can be used as an alternative approach to supply the list of peers. You should check where the internal structure of the files and find where the GethDroid equivalent folder is in iOS. |
@kelsos Thx for the reply. Yes indeed as you said. I already checked file structure and there is a folder call iGeth which should be similar like GethDroid. The full path is |
Was the problem solved? iOS and Android both cannot sync with the private blockchain. Checked with geth mobile 1.7.3 |
still doesn't sync with geth mobile libraries 1.8.0 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
OK will look into the issue.
https://www.schneier.com/blog/archives/2019/02/blockchain_and_.html That said - it should still work. Looking in the initial issue I see chainID 7 in the genesis and chainID 999 in the command line parameters.
|
closing for now - please reopen when you have a problem like this and then please submit your config and log |
System information
Geth version:
geth 1.5.8
OS & Version: Android
Commit hash : (if
develop
)Expected behaviour
Android light client should connect private network
Actual behaviour
Not able to connect private network
Steps to reproduce the behaviour
STEP 1: Set-up one private network and run one node as light server passing "--lightserv 25 --lightpeers 3" in geth as ETHEREUM OPTIONS
genesis I tried with
a)
b)
STEP2: Configure the Android App to connect private network
Backtrace
The text was updated successfully, but these errors were encountered: