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

IPFS setup sometimes fails #129

Closed
icidasset opened this issue Sep 30, 2020 · 7 comments · Fixed by #138
Closed

IPFS setup sometimes fails #129

icidasset opened this issue Sep 30, 2020 · 7 comments · Fixed by #138
Labels
bug Something isn't working

Comments

@icidasset
Copy link
Contributor

Screenshot 2020-09-30 at 21 37 03

Browser: Firefox 81
OS: MacOS 11

Looks like the websocket connection fails and IPFS fails to start, causing initialise to fail entirely.

@icidasset icidasset added the bug Something isn't working label Sep 30, 2020
@icidasset
Copy link
Contributor Author

Safari:

Screenshot 2020-10-13 at 23 23 46

Screenshot 2020-10-13 at 23 22 57

@bmann
Copy link
Contributor

bmann commented Oct 13, 2020

I don’t think we should be including content from CDNs for stuff that is core to us. I don’t know if that is the issue, but that jumps out at me from the screenshot.

@icidasset
Copy link
Contributor Author

icidasset commented Oct 13, 2020

@bmann Nah, nothing to do with the issue, the issue is with web sockets (which can identified by the ws:// and wss:// protocols). But yeah, you're right, shouldn't rely on cdns (although we are caching it in case the cdn isn't available).

@icidasset
Copy link
Contributor Author

Semi-related: The ws warnings/errors (note, not wss) should go away with the next libp2p release: ipfs/js-ipfs#3298

@icidasset
Copy link
Contributor Author

icidasset commented Oct 15, 2020

Ah, found related issues on js-libp2p and js-ipfs:
libp2p/js-libp2p#312
ipfs/js-ipfs#1837

@icidasset
Copy link
Contributor Author

I'm thinking this fails in IPFS itself, because our gateway is on the bootstrap list.
Could also come from the swarm.connect which is done right after the IPFS setup.

I'm not sure we need that swarm.connect there 🤔
I would think being in the bootstrap list automatically connects to that address.
Which is what I do on the lobby.

See https://github.com/fission-suite/webnative/blob/44d6a864c771f9d8b8f14acc408d239e67e428af/src/ipfs/config.ts#L51

Thoughts @dholms ?

@icidasset
Copy link
Contributor Author

Wrote a reconnect script for this.

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
None yet
Development

Successfully merging a pull request may close this issue.

2 participants