filecoin-project / lotus

Reference implementation of the Filecoin protocol, written in Go
https://lotus.filecoin.io/
Other
2.83k stars 1.26k forks source link

`Lotus daemon --import-chain` errors out #11802

Open rjan90 opened 6 months ago

rjan90 commented 6 months ago

Checklist

Lotus component

Lotus Version

Lotus v1.26.0

Repro Steps

  1. Run lotus daemon --import-chain=/xxxx/xxxxx/xxxx.car.zst --halt-after-import
  2. Wait while its importing
  3. Get the error:
    2024-04-02T11:26:27.456+0200    INFO    main    lotus/daemon.go:599 setting genesis
    2024-04-02T11:26:27.457+0200    INFO    chainstore  store/store.go:683  New heaviest tipset! [bafy2bzacecnamqgqmifpluoeldx7zzglxcljo6oja4vrmtj7432rphldpdmm2] (height=0)
    2024-04-02T11:26:27.458+0200    WARN    chainstore  store/store.go:711  no previous heaviest tipset found, using [bafy2bzacecnamqgqmifpluoeldx7zzglxcljo6oja4vrmtj7432rphldpdmm2]
    2024-04-02T11:26:27.460+0200    INFO    drand   drand/drand.go:114  drand beacon without pubsub
    2024-04-02T11:26:27.460+0200    WARN    chainstore  store/store.go:668  reorgWorker quit
    2024-04-02T11:26:27.483+0200    INFO    badgerbs    v2@v2.2007.4/db.go:1027 Storing value log head: {Fid:115 Len:33 Offset:107228516}
    ---------
    2024-04-02T11:26:30.040+0200    INFO    badgerbs    v2@v2.2007.4/db.go:550  Force compaction on level 0 done
    ERROR: failed to construct beacon schedule: creating drand beacon: creating drand client: no points of contact specified

Describe the Bug

The lotus daemon --import-chain cmd currently fails with:

2024-04-02T11:26:27.456+0200    INFO    main    lotus/daemon.go:599 setting genesis
2024-04-02T11:26:27.457+0200    INFO    chainstore  store/store.go:683  New heaviest tipset! [bafy2bzacecnamqgqmifpluoeldx7zzglxcljo6oja4vrmtj7432rphldpdmm2] (height=0)
2024-04-02T11:26:27.458+0200    WARN    chainstore  store/store.go:711  no previous heaviest tipset found, using [bafy2bzacecnamqgqmifpluoeldx7zzglxcljo6oja4vrmtj7432rphldpdmm2]
2024-04-02T11:26:27.460+0200    INFO    drand   drand/drand.go:114  drand beacon without pubsub
2024-04-02T11:26:27.460+0200    WARN    chainstore  store/store.go:668  reorgWorker quit
2024-04-02T11:26:27.483+0200    INFO    badgerbs    v2@v2.2007.4/db.go:1027 Storing value log head: {Fid:115 Len:33 Offset:107228516}
---------
2024-04-02T11:26:30.040+0200    INFO    badgerbs    v2@v2.2007.4/db.go:550  Force compaction on level 0 done
ERROR: failed to construct beacon schedule: creating drand beacon: creating drand client: no points of contact specified

This error is unrelated to the drand quicknet change, and is pointing towards that the cmd is currently broken. The issue was discovered during nv22-testing, where I wrongly used the --import-chain cmd, when I wanted to actually use the --import-snapshot cmd.

Logging Information

N/A
rjan90 commented 5 months ago

@rjan90 To follow up with testing importing a Lotus exported snapshot