Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deal stuck in state StorageDealWaitingForData #5584

Closed
cryptowhizzard opened this issue Feb 12, 2021 · 6 comments
Closed

Deal stuck in state StorageDealWaitingForData #5584

cryptowhizzard opened this issue Feb 12, 2021 · 6 comments
Assignees
Labels
area/markets/provider area/markets/storage team/ignite Issues and PRs being tracked by Team Ignite at Protocol Labs

Comments

@cryptowhizzard
Copy link

cryptowhizzard commented Feb 12, 2021

Describe the bug

Sector get stuck in state StorageDealWaitingForData

cat lotus.log | grep -a bafyreihtfwmp6kx4rvcmx7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm | more
2021-02-11T21:42:22.189+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventOpen", "proposal CID": "bafyreihtfwmp6kx4rvcmx7f5swf7xqqmg
bgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealReserveClientFunds", "message": ""}
2021-02-11T21:42:22.189+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventFundsReserved", "proposal CID": "bafyreihtfwmp6kx4rvcmx7f5
swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealReserveClientFunds", "message": ""}
2021-02-11T21:42:22.189+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventFundingComplete", "proposal CID": "bafyreihtfwmp6kx4rvcmx7
f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealFundsReserved", "message": ""}
2021-02-11T21:42:22.224+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventInitiateDataTransfer", "proposal CID": "bafyreihtfwmp6kx4r
vcmx7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealStartDataTransfer", "message": ""}
2021-02-11T21:42:22.224+0100 INFO storagemarket_impl clientstates/client_states.go:153 sending data for a deal bafyreihtfwmp6kx4rvcmx7f5swf7xqqmgbgvjs2ngxwmqv
vlvqwzcc3irm
2021-02-11T21:42:22.226+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventDataTransferInitiated", "proposal CID": "bafyreihtfwmp6kx4
rvcmx7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealTransferring", "message": ""}
2021-02-11T21:43:07.968+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventDataTransferComplete", "proposal CID": "bafyreihtfwmp6kx4r
vcmx7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealCheckForAcceptance", "message": ""}
2021-02-11T21:43:08.975+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventWaitForDealState", "proposal CID": "bafyreihtfwmp6kx4rvcmx
7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealCheckForAcceptance", "message": "Provider state: StorageDealWaitingForData"}
2021-02-11T21:43:09.985+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventWaitForDealState", "proposal CID": "bafyreihtfwmp6kx4rvcmx
7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealCheckForAcceptance", "message": "Provider state: StorageDealWaitingForData"}
2021-02-11T21:43:11.000+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventWaitForDealState", "proposal CID": "bafyreihtfwmp6kx4rvcmx
7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealCheckForAcceptance", "message": "Provider state: StorageDealWaitingForData"}
2021-02-11T21:43:12.007+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventWaitForDealState", "proposal CID": "bafyreihtfwmp6kx4rvcmx
7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealCheckForAcceptance", "message": "Provider state: StorageDealWaitingForData"}
2021-02-11T21:43:13.015+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventWaitForDealState", "proposal CID": "bafyreihtfwmp6kx4rvcmx
7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealCheckForAcceptance", "message": "Provider state: StorageDealWaitingForData"}
2021-02-11T21:43:14.023+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventWaitForDealState", "proposal CID": "bafyreihtfwmp6kx4rvcmx
7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealCheckForAcceptance", "message": "Provider state: StorageDealWaitingForData"}
2021-02-11T21:43:15.030+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventWaitForDealState", "proposal CID": "bafyreihtfwmp6kx4rvcmx
7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealCheckForAcceptance", "message": "Provider state: StorageDealWaitingForData"}
2021-02-11T21:43:16.046+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventWaitForDealState", "proposal CID": "bafyreihtfwmp6kx4rvcmx
7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealCheckForAcceptance", "message": "Provider state: StorageDealWaitingForData"}
2021-02-11T21:43:17.058+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventWaitForDealState", "proposal CID": "bafyreihtfwmp6kx4rvcmx
7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealCheckForAcceptance", "message": "Provider state: StorageDealWaitingForData"}
2021-02-11T21:43:18.072+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventWaitForDealState", "proposal CID": "bafyreihtfwmp6kx4rvcmx
7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm", "state": "StorageDealCheckForAcceptance", "message": "Provider state: StorageDealWaitingForData"}
2021-02-11T21:43:19.088+0100 INFO markets loggers/loggers.go:15 storage client event {"name": "ClientEventWaitForDealState", "proposal CID": "bafyreihtfwmp6kx4rv

lotus-miner storage-deals list --verbose | grep bafyreihtfwmp6kx4rvcmx7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm
Feb 11 21:42:22 true bafyreihtfwmp6kx4rvcmx7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm 0 StorageDealWaitingForData f3sbunigqcrdk2xkxcgvrm72wt73fb4km2kykuy3xvb5gexf66kryjoweno2zlz6kyjuzcket72xd2s7b3zhoq 32GiB 0 FIL

lotus client list-transfers --completed --verbose | grep bafyreihtfwmp6kx4rvcmx7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm
596 Completed 12D3KooWNHwmwNRkMEP6VqDCpjSZkqripoJgN7eWruvXXqC2kG9f bafykbzaced4qnbnzjza5ooo57ila3rpr7j3c5s4xcwn6ethsf4lfit2nsv7vs Y 16.66GiB {"Proposal":{"/":"bafyreihtfwmp6kx4rvcmx7f5swf7xqqmgbgvjs2ngxwmqvvlvqwzcc3irm"}}

To Reproduce
issue occurs random. All sectors after this are stuck also.

Version (run lotus version):
Latest master 12 februari 2021.

@ribasushi
Copy link
Collaborator

Latest master 12 februari 2021.
Please still run and supply lotus version - it will contain a git hash which tells us what is it you are actually running.

@cryptowhizzard
Copy link
Author

cryptowhizzard commented Feb 12, 2021

Daemon: 1.4.1+mainnet+git.95e47cf99+api1.1.0
Local: lotus version 1.4.1+mainnet+git.95e47cf99

@cryptowhizzard cryptowhizzard changed the title Sector stuck in state StorageDealWaitingForData Deal stuck in state StorageDealWaitingForData Feb 12, 2021
@dineshshenoy
Copy link

cc: @dirkmc

@cryptowhizzard
Copy link
Author

I did some in depth research. The problem occurs when the miner is also pledging sectors. It looks the AP or whatever channel is full and everything else has to wait.

perhaps this is related?

@dirkmc dirkmc added this to the 💹Storage Deal Success milestone Feb 15, 2021
@dirkmc
Copy link
Contributor

dirkmc commented Feb 15, 2021

The client proposes a deal, and when the provider accepts the deal proposal, the provider moves to StorageDealWaitingForData.

The client opens a data transfer channel, triggering a datatransfer.Open event on the provider side. In turn this should trigger the ProviderEventDataTransferInitiated event, which should move the provider into the StorageDealTransferring state.

Looking at the logs it seems that even though the client is able to transfer the whole file to the provider, for some reason the datatransfer.Open event never fires on the provider side.

@cryptowhizzard thanks for the bug report. I think it would help track down the problem if you could provide us with some more logs. Could you please set the following log subsystems to debug level using lotus log set-level and lotus-miner log set-level:

  • markets
  • dt-pushchanmon
  • dt-impl
  • data_transfer_network

@raulk raulk added the team/ignite Issues and PRs being tracked by Team Ignite at Protocol Labs label Feb 23, 2021
@cryptowhizzard
Copy link
Author

From my side this one can be closed. Since 1.6.0 i can make parallel deals ( client to miner ) without anything breaking. Good work !!

@TippyFlitsUK TippyFlitsUK removed the need/author-input Hint: Needs Author Input label Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/markets/provider area/markets/storage team/ignite Issues and PRs being tracked by Team Ignite at Protocol Labs
Projects
None yet
Development

No branches or pull requests

7 participants