Skip to content
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

cannot connect to infura using lite node #8385

Open
8 of 18 tasks
flyworker opened this issue Mar 28, 2022 · 9 comments
Open
8 of 18 tasks

cannot connect to infura using lite node #8385

flyworker opened this issue Mar 28, 2022 · 9 comments
Assignees
Labels
area/api area/chain Area: Chain kind/bug Kind: Bug kind/stale need/analysis Hint: Needs Analysis need/team-input Hint: Needs Team Input

Comments

@flyworker
Copy link

Checklist

  • This is not a security-related bug/issue. If it is, please follow please follow the security policy.
  • This is not a question or a support request. If you have any lotus related questions, please ask in the lotus forum.
  • This is not a new feature request. If it is, please file a feature request instead.
  • This is not an enhancement request. If it is, please file a improvement suggestion instead.
  • I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
  • I am running the Latest release, or the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
  • I did not make any code changes to lotus.

Lotus component

  • lotus daemon - chain sync
  • lotus miner - mining and block production
  • lotus miner/worker - sealing
  • lotus miner - proving(WindowPoSt)
  • lotus miner/market - storage deal
  • lotus miner/market - retrieval deal
  • lotus miner/market - data transfer
  • lotus client
  • lotus JSON-RPC API
  • lotus message management (mpool)
  • Other

Lotus Version

1.4.3

Describe the Bug

cannot connect to infura using lite node
when lite node connect with infura filecoin node with project ID and secret,it shows error listen head changes errored: listenHeadChanges ChainNotify call failed: RPC error (-32004): method 'Filecoin.ChainNotify' not supported in this mode (no out channel support)

Logging Information

2022-03-28T05:26:37.357-0400    ERROR   events  events/observer.go:58   listen head changes errored: listenHeadChanges ChainNotify call failed: RPC error (-32004): method 'Filecoin.ChainNotify' not supported in this mode (no out channel support)
2022-03-28T05:26:38.358-0400    INFO    events  events/observer.go:69   restarting listenHeadChanges
2022-03-28T05:26:38.418-0400    ERROR   events  events/observer.go:58   listen head changes errored: listenHeadChanges ChainNotify call failed: RPC error (-32004): method 'Filecoin.ChainNotify' not supported in this mode (no out channel support)
2022-03-28T05:26:39.419-0400    INFO    events  events/observer.go:69   restarting listenHeadChanges
2022-03-28T05:26:39.486-0400    ERROR   events  events/observer.go:58   listen head changes errored: listenHeadChanges ChainNotify call failed: RPC error (-32004): method 'Filecoin.ChainNotify' not supported in this mode (no out channel support)
2022-03-28T05:26:40.487-0400    INFO    events  events/observer.go:69   restarting listenHeadChanges
2022-03-28T05:26:40.548-0400    ERROR   events  events/observer.go:58   listen head changes errored: listenHeadChanges ChainNotify call failed: RPC error (-32004): method 'Filecoin.ChainNotify' not supported in this mode (no out channel support)
2022-03-28T05:26:41.548-0400    INFO    events  events/observer.go:69   restarting listenHeadChanges
2022-03-28T05:26:41.602-0400    ERROR   events  events/observer.go:58   listen head changes errored: listenHeadChanges ChainNotify call failed: RPC error (-32004): method 'Filecoin.ChainNotify' not supported in this mode (no out channel support)
2022-03-28T05:26:42.603-0400    INFO    events  events/observer.go:69   restarting listenHeadChanges
2022-03-28T05:26:42.661-0400    ERROR   events  events/observer.go:58   listen head changes errored: listenHeadChanges ChainNotify call failed: RPC error (-32004): method 'Filecoin.ChainNotify' not supported in this mode (no out channel support)

Repo Steps

No response

@TippyFlitsUK
Copy link
Contributor

Hi @flyworker

Can you please confirm the format of the FULLNODE_API_INFO env var that you are using?

Many thanks!

@TippyFlitsUK TippyFlitsUK self-assigned this Mar 30, 2022
@TippyFlitsUK TippyFlitsUK added area/chain Area: Chain need/author-input Hint: Needs Author Input area/api and removed need/triage labels Mar 30, 2022
@github-actions
Copy link

github-actions bot commented Apr 2, 2022

Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 24 hours.

@flyworker
Copy link
Author

FULLNODE_API_INFO="https://<project_id>:<project_secret>@filecoin.infura.io" lotus daemon --lite

@ribasushi
Copy link
Collaborator

Duplicate of #6111 (comment)
Stalled as it needs some multiaddr design work to correctly express a basic-auth tuple within an address

If I remember right @frrist was the last one to look into this. Also perhaps @lidel has ideas?

@flyworker
Copy link
Author

@ribasushi yes, I think this issue force people to run their own node since no other node provider at the moment?

@TippyFlitsUK TippyFlitsUK added need/team-input Hint: Needs Team Input and removed need/author-input Hint: Needs Author Input labels Apr 2, 2022
@ribasushi
Copy link
Collaborator

@flyworker api.chain.love should work:

Here is a howto I wrote somewhere, pasting it here before it makes it properly into some doc ( cc @johnnymatthews )

to interact with a filecoin hardware wallet securely from the comfort of your own (mac/linux/potentially WSL2) laptop, in about ~5 minutes start-to-finish you need to:

  • git clone https://github.com/filecoin-project/lotus && cd lotus
  • git checkout v1.15.0 ( current stable, number will change as time goes on )
  • make lotus lotus-shed ( this might need you installing golang, see https://go.dev/doc/install )
  • LOTUS_WALLET_ENABLELEDGER=1 FULLNODE_API_INFO=wss://api.chain.love/ ./lotus daemon --lite
    ( above will keep running on the terminal, open a new one for the commands below )
  • physically connect and unlock your ledger, make sure Ledger Live (the software) is closed ( if you are on linux you might need to do udev shenanigans as per https://support.ledger.com/hc/en-us/articles/115005165269?support=true )
  • ./lotus-shed ledger list
  • ./lotus-shed ledger key-info "m/44'/461'/0'/0/{{the-numeric-id-of-the-one-you-want}}"
  • ./lotus wallet import --format json-lotus => paste the thing from above on the prompt
  • ./lotus wallet balance

@ribasushi
Copy link
Collaborator

@TippyFlitsUK note - while what I gave @flyworker above is a decent workaround, we still need to get lotus to support basic-auth, since this is all Infura offers.

"You can't use lotus-lite with infura" is a bad look.

@TippyFlitsUK
Copy link
Contributor

Many thanks @ribasushi !

I have closed the older duplicate and linked to this one as it contains updated workaround info.

I've bumped this new ticket up to perform triage again on the Lotus+Actors Board as the original one had been marked as closed in error.

@lidel
Copy link
Contributor

lidel commented Apr 3, 2022

Stalled as it needs some multiaddr design work to correctly express a basic-auth tuple within an address

If I remember right @frrist was the last one to look into this. Also perhaps @lidel has ideas?

Protocol attributes (such as user/pass for HTTP basic auth, or SNI for HTTPS) are not supported by multiaddr.

People asked for this, but nobody had bandwidth or cared enough to spec and implement it.
For tl;dr see my 2019 💀 summary in multiformats/multiaddr#63 (comment) and proposal in multiformats/multiaddr#87

@jennijuju jennijuju added the need/analysis Hint: Needs Analysis label Apr 19, 2022
@ribasushi ribasushi mentioned this issue Jun 13, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api area/chain Area: Chain kind/bug Kind: Bug kind/stale need/analysis Hint: Needs Analysis need/team-input Hint: Needs Team Input
Projects
None yet
Development

No branches or pull requests

5 participants