Skip to content

Failed to initialize new wallet with different host from the faucet host #3589

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

Open
kikakkz opened this issue Mar 18, 2025 · 8 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@kikakkz
Copy link
Contributor

kikakkz commented Mar 18, 2025

Description
When initialize new wallet with different host from the one which is running the faucet. It'll fail to initialize the wallet. It did success if we initialize with the same host of the faucet.

Steps

The first host with IP 172.16.31.42:

  • git clone https://github.com./linera-io/linera-protocol.git
  • cd linera-protocol
  • cargo install --path linera-service --features storage-service
  • cargo install --path linera-storage-service --features storage-service
  • linera net up --with-faucet --faucet-port 8080

The second host:

  • git clone https://github.com./linera-io/linera-protocol.git
  • cd linera-protocol
  • cargo install --path linera-service --features storage-service
  • cargo install --path linera-storage-service --features storage-service
  • linera wallet init --faucet http://172.16.31.42:8080 --with-new-chain

Expection
We should be able to initialize new wallet from faucet successfully on any hosts.

Result
We can initialize on the same host of faucet, but fail at other hosts.

Errors

2025-03-18T04:09:47.651669Z ERROR linera::main:handle_chain_info_query{address="http://localhost:9000"}: grpc_client: error=Grpc error: remote request [handle_chain_info_query] failed with status: Status { code: Unavailable, message: "tcp connect error: Connection refused (os error 111)", source: Some(tonic::transport::Error(Transport, ConnectError(ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })))) }
2025-03-18T04:09:47.653347Z ERROR linera: Error is chain client error: Failed to download certificates and update local node to the next height 4 of chain a3edc33d8e951a11

Screenshot
Image

@ma2bd ma2bd assigned Twey and afck Mar 18, 2025
@ma2bd ma2bd added the bug Something isn't working label Mar 18, 2025
@ma2bd ma2bd added this to Web3 SDK Mar 18, 2025
@ma2bd
Copy link
Contributor

ma2bd commented Mar 18, 2025

Mmm this is very weird. Do you have the commit hash on github?

@kikakkz
Copy link
Contributor Author

kikakkz commented Mar 18, 2025

Mmm this is very weird. Do you have the commit hash on github?

Yeah, sure. Just with latest code of main branch. 4a8d4c9

@kikakkz
Copy link
Contributor Author

kikakkz commented Mar 18, 2025

Mmm this is very weird. Do you have the commit hash on github?

Yeah, sure. Just with latest code of main branch. 4a8d4c9

Likely it requests validator with localhost on that host. But the validator is run with linera net up --with-faucet --faucet-port 8080 on faucet host.

@ma2bd
Copy link
Contributor

ma2bd commented Mar 18, 2025

Good catch. (If it doesn't exist yet) We could try an option to use a different hostname in linera net up.

@Twey
Copy link
Contributor

Twey commented Mar 18, 2025

Besides, the hostname for linera net up should be used consistently, i.e. if the host is localhost (which is sensible, since linera net up is intended for local testing) it should bind to localhost and you shouldn't even be able to access the faucet from other machines!

@Akhtar665

This comment was marked as spam.

@yashwanth6303
Copy link

Verified

@kikakkz
Copy link
Contributor Author

kikakkz commented Mar 23, 2025

BTW: we are successful to initialize wallet from another machine with script and template here https://github.com./respeer-ai/linera-protocol/blob/respeer-maas-7b3ae0b6-2025_03_15/scripts/run_local_with_vars.sh so I guess it's not urgent of this issue.

We use official linera-protocol to run genesis network then initialize wallet in other machine with respeer fork for compatibility testing, 😄.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

6 participants