filecoin-project / filecoin-project/boost

After each new deal seeing odd error - Invalid transition in queue, state `DealStatusCancelling`

Open
#1,079 1 comment 0 reactions 0 assignees View on GitHub
kind/bug need/triage
Dominant language
Go
Stars
121
Forks
79
Avg merge
10d 14h
Merged PRs (30d)
1

Description

### Checklist

- [X] This is **not** a question or a support request. If you have any boost related questions, please ask in the [discussion forum](https://github.com/filecoin-project/boost/discussions).
- [X] This is **not** a new feature or enhancement request. If it is, please open a [new idea discussion](https://github.com/filecoin-project/boost/discussions/new?category=ideas) instead. New feature and enhancement requests would be entertained by the boost team after a thorough discussion only.
- [X] I **have** searched on the [issue tracker](https://github.com/filecoin-project/boost/issues) and the [discussion forum](https://github.com/filecoin-project/boost/discussions), and there is no existing related issue or discussion.
- [X] I am running the [`Latest release`](https://github.com/filecoin-project/boost/releases), or the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
- [X] I did not make any code changes to boost.

### Boost component

- [X] boost daemon - storage providers
- [ ] boost client
- [ ] boost UI
- [ ] boost data-transfer
- [ ] boost index-provider
- [ ] Other

### Boost Version

```text
boostd version 1.5.1-rc2+git.aaf4aff
Daemon: 1.19.0+mainnet+git.64059ca87+api1.5.0
Local: lotus-miner version 1.19.0+mainnet+git.64059ca87
```

### Describe the Bug

Seeing these concerning errors in logs but this does not seem to affect the actual sealing process. Deals still succeed and go to proving state over time.

### Logging Information

```text
2023-01-15T06:26:50.615Z INFO boost-storage-deal logs/log.go:40 commp matched successfully for imported data for offline deal {"id": "11e02958-7ce9-4248-b4a4-bcec4909e0ed"}
2023-01-15T06:26:50.652Z INFO boost-storage-deal logs/log.go:40 updated deal checkpoint in DB {"id": "11e02958-7ce9-4248-b4a4-bcec4909e0ed", "old checkpoint": "Accepted", "new checkpoint": "Transferred"}
2023-01-15T06:26:50.675Z INFO boost-storage-deal logs/log.go:40 sending deal to deal publisher {"id": "11e02958-7ce9-4248-b4a4-bcec4909e0ed"}
2023-01-15T06:27:57.714Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.735Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.735Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.735Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.735Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.776Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.782Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.807Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.816Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.827Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.827Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.827Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.827Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.827Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.837Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.837Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.837Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.837Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.837Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.837Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.858Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.858Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.878Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.905Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:57.925Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:58.002Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:58.083Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:58.083Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:58.083Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:58.172Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
2023-01-15T06:27:58.172Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137
```

### Repo Steps

Import deal (Evergreen) and notice logs show the error below repeatedly

2023-01-15T06:27:57.827Z ERROR fsm fsm/fsm.go:92 Executing event planner failed for ProviderDealState: Invalid transition in queue, state `DealStatusCancelling`, event `12`:
github.com/filecoin-project/go-statemachine/fsm.eventProcessor.Apply
/home/stuart/go/pkg/mod/github.com/filecoin-project/go-statemachine@v1.0.2/fsm/eventprocessor.go:137

Contributor guide

Open the contributing guide

Research direction

Start with the repeated error at fsm/fsm.go:92 and trace the ProviderDealState transition handling into the referenced go-statemachine event processor. Reproduce the DealStatusCancelling/event 12 sequence using the reported Boost daemon version and inspect the deal-state tests or transition definitions you find. Done means the invalid-transition errors no longer recur while deals still reach proving state.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.