filecoin-project / boost

Boost is a tool for Filecoin storage providers to manage data storage and retrievals on Filecoin.
Other
111 stars 67 forks source link

Panic(SIGSEV) on attempting to configure data store: persistence option already registered #1322

Open s0nik42 opened 1 year ago

s0nik42 commented 1 year ago

Checklist

Boost component

Boost Version

boostd --version
boostd version 1.6.0-rc2+git.5daf1d5

Describe the Bug

Boostd stops and panik

Logging Information

2023-03-22T18:01:02.336+0100    ERROR   events  events/events_called.go:354 event diff fn failed: unknown actor code bafk2bzaceclejwjtpu2dhw3qbx6ow7b4pmhwa7ocrbbiqwp36sq5yeg6jz2bc
2023-03-22T18:01:14.644+0100    ERROR   retrievalmarket_impl    dtutils/dtutils.go:194  attempting to configure data store: persistence option already registered
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x221d37d]

goroutine 719911755 [running]:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Generate({{0x4e31428, 0x44c02a0}, {0x4556c05, 0x6}, 0xc018ba24e0, 0xc018ba2510}, {0x4e0dfd8, 0xc000056078}, {0x4020ec0, 0x6e5f550}, ...)
    /opt/lotus/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:113 +0x4bd
github.com/filecoin-project/go-statemachine/fsm.(*stateGroup).Send(0xc01c0bc230, {0x434ae80, 0xc0a74403f0}, {0x4020ec0?, 0x6e5f550?}, {0xc096560830?, 0xc0a74403f0?, 0xc017a772c0?})
    /opt/lotus/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/fsm_group.go:35 +0x67
github.com/filecoin-project/go-ds-versioning/pkg/fsm.(*migratedFsm).Send(0xc012b7c9c0, {0x434ae80, 0xc0a74403f0}, {0x4020ec0, 0x6e5f550}, {0xc096560830, 0x1, 0x1})
    /opt/lotus/go/pkg/mod/github.com/filecoin-project/go-ds-versioning@v0.1.2/pkg/fsm/fsm.go:57 +0xa2
github.com/filecoin-project/go-data-transfer/channels.(*Channels).send(0xc01295bec0, {{0xc0b325e120, 0x26}, {0xc001932b10, 0x26}, 0x174c64bdeadd6636}, 0x0?, {0xc096560830, 0x1, 0x1})
    /opt/lotus/go/pkg/mod/github.com/filecoin-project/go-data-transfer@v1.15.3/channels/channels.go:396 +0x275
github.com/filecoin-project/go-data-transfer/channels.(*Channels).Error(...)
    /opt/lotus/go/pkg/mod/github.com/filecoin-project/go-data-transfer@v1.15.3/channels/channels.go:330
github.com/filecoin-project/go-data-transfer/impl.(*manager).OnChannelCompleted(0xc0001659e0, {{0xc0b325e120, 0x26}, {0xc001932b10, 0x26}, 0x174c64bdeadd6636}, {0x0?, 0x0?})
    /opt/lotus/go/pkg/mod/github.com/filecoin-project/go-data-transfer@v1.15.3/impl/events.go:311 +0x8ef
github.com/filecoin-project/go-data-transfer/transport/graphsync.(*Transport).gsCompletedResponseListener(0xc000d06500, {0xc04ec61830, 0x26}, {0x4e186a0?, 0xc0b30f60f0?}, 0x14)
    /opt/lotus/go/pkg/mod/github.com/filecoin-project/go-data-transfer@v1.15.3/transport/graphsync/graphsync.go:700 +0x270
github.com/ipfs/go-graphsync/listeners.completedResponseDispatcher({0x42b2d60?, 0xc092587920?}, {0x414d320?, 0xc0001600b0?})
    /opt/lotus/go/pkg/mod/github.com/ipfs/go-graphsync@v0.13.2/listeners/listeners.go:24 +0xc3
github.com/hannahhoward/go-pubsub.(*PubSub).Publish(0xc01295bb00, {0x42b2d60, 0xc092587920})
    /opt/lotus/go/pkg/mod/github.com/hannahhoward/go-pubsub@v0.0.0-20200423002714-8d62886cc36e/pubsub.go:76 +0x12d
github.com/ipfs/go-graphsync/listeners.(*CompletedResponseListeners).NotifyCompletedListeners(0xc004c02ef0, {0xc04ec61830?, 0xc025835340?}, {0x4e186a0?, 0xc0b30f60f0?}, 0x4e10e38?)
    /opt/lotus/go/pkg/mod/github.com/ipfs/go-graphsync@v0.13.2/listeners/listeners.go:40 +0x85
github.com/ipfs/go-graphsync/responsemanager.(*subscriber).OnNext(0xc08cf42160, {0xc004c07c48?, 0x6e5f5e0?}, {0x42b3120?, 0xc0b4cec300?})
    /opt/lotus/go/pkg/mod/github.com/ipfs/go-graphsync@v0.13.2/responsemanager/subscriber.go:50 +0x3e3
github.com/ipfs/go-graphsync/notifications.(*subscriberRegistry).send(...)
    /opt/lotus/go/pkg/mod/github.com/ipfs/go-graphsync@v0.13.2/notifications/publisher.go:175
github.com/ipfs/go-graphsync/notifications.(*publisher).start(0xc000d2eb30?)
    /opt/lotus/go/pkg/mod/github.com/ipfs/go-graphsync@v0.13.2/notifications/publisher.go:141 +0x772
created by github.com/ipfs/go-graphsync/notifications.(*publisher).Startup
    /opt/lotus/go/pkg/mod/github.com/ipfs/go-graphsync@v0.13.2/notifications/publisher.go:46 +0x56
2023-03-22T19:19:48.456+0100    DEBUG   boostd  boostd/run.go:54    Checking full node version
2023-03-22T19:19:48.457+0100    DEBUG   boostd  boostd/run.go:61    Remote full node version    {"version": "1.20.0+mainnet+git.33bec58be+api2.3.0"}
2023-03-22T19:19:48.457+0100    DEBUG   boostd  boostd/run.go:67    Checking full node sync status


### Repo Steps

1. Run '...'
2. Do '...'
3. See error '...'
...
LexLuthr commented 1 year ago

@s0nik42 Can you update to the latest RC and check of this crash is still there? We have recently release a new graphsync server to handle unpaid retrievals within Boost code instead of using go-fil-market.