You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Writing an issue for this, but I don't believe there is any immediate action required. This is more of a documentation for starting new networks. This issue is for anyone who might run into issues starting a lotus network.
Lotus requires a threshold of peers to be connected and provide it with tipsets before starting a sync worker. If lotus does not have enough tipsets from peers, no sync workers will be started, and a user might observe that lotus sync status does not list any workers.
$ lotus sync status
sync status:
With the chain logger set to debug, a log message will be produced not tracking enough peers to start sync worker.
The minimum peer (BootstrapPeerThreshold) for sync workers makes it so any value other than 1, results in it not being possible to start a network as only a single peer produces blocks at the beginning.
To resolve this issue, the environment var LOTUS_SYNC_BOOTSTRAP_PEERS=1 needs to be set on at least a number of peers equal to the value of BootstrapPeerThreshold.
The text was updated successfully, but these errors were encountered:
This is very much a valid issue and a side effect of the way the sync manager is structured (decoupled from the rest of the actual sync logic in Syncer). The one who rules over the other (syncManager) should be able to respond with a valid sync status. (As a temporary workaround we should at least have a default sync status of "waiting for more peers".)
logger set to debug, a log message will be produced not tracking enough peers to start sync worker
This is arguably pretty bad ux... Won't it make more sense to have a timeout ( say 1 minute ) where if one did not specify --bootstrap=false and there is no sync activity possible the daemon exits with an informative message instead of just hanging silently?
Writing an issue for this, but I don't believe there is any immediate action required. This is more of a documentation for starting new networks. This issue is for anyone who might run into issues starting a lotus network.
Lotus requires a threshold of peers to be connected and provide it with tipsets before starting a sync worker. If lotus does not have enough tipsets from peers, no sync workers will be started, and a user might observe that
lotus sync status
does not list any workers.With the chain logger set to debug, a log message will be produced
not tracking enough peers to start sync worker
.The minimum peer (
BootstrapPeerThreshold
) for sync workers makes it so any value other than 1, results in it not being possible to start a network as only a single peer produces blocks at the beginning.To resolve this issue, the environment var
LOTUS_SYNC_BOOTSTRAP_PEERS=1
needs to be set on at least a number of peers equal to the value ofBootstrapPeerThreshold
.The text was updated successfully, but these errors were encountered: