Go-ipfs: Warn when no peers and no boostrap peers configured

Created on 11 Jan 2018  路  5Comments  路  Source: ipfs/go-ipfs

Version information:

go-ipfs version: 0.4.13-
Repo version: 6
System version: amd64/darwin
Golang version: go1.9.2

Type:

Bug

Severity:

Description:

1 I use "ipfs bootstrap rm ..." to delete all the node"
2 run "ipfd daemon"
3 my ipfs node can not connect to network.

Yes, I know that I must use "ipfs bootstrap add []" to add myself bootstrap peer.
Actually, when I remove all the bootstrap nodes, I forget to set myself bootstrap peers.

It should give a warning when running "ipfs daemon".

help wanted kinfeature

Most helpful comment

It should give a warning when running "ipfs daemon".

I think that's a reasonable thing to add

All 5 comments

There are perfectly valid reasons to remove all bootstrap peers. For example, you want to remotely tell IPFS which peers to connect to or you want to add the bootstrap peers later.

Now, we could try to add something that detects this situation when you do something that requires peers. That is, when a command fails, run a simple function to try to diagnose what might have gone wrong and add that additional information to the error sent back to the user. However, we have to be careful here. Eventually, we'd like to expose parts of the API to semi-trusted applications (e.g., webapps) and we'd like to avoid exposing anything potentially sensitive).

Yes, I know that I must use "ipfs bootstrap add []" to add myself bootstrap peer.

You should never be adding yourself to the bootstrap peer list.

It should give a warning when running "ipfs daemon".

I think that's a reasonable thing to add

Hey @Stebalien @lgierth , I am interested in this , can i help you do this?

I'm browsing through the help wanted tag and there are a lot of issues like this one that seem to be resolved.

Can this issue be closed?

Yes. And please continue to point them out, thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mikaela picture Mikaela  路  3Comments

JesseWeinstein picture JesseWeinstein  路  4Comments

funkyfuture picture funkyfuture  路  3Comments

whyrusleeping picture whyrusleeping  路  4Comments

Jorropo picture Jorropo  路  3Comments