ipni / storetheindex

A directory of CIDs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to sync via data-transfer after errors

gammazero opened this issue · comments

After some error(s), it is no longer possible to sync with a publisher/provider by manual sync or by sync started by announce message. This only applies to syncing with providers via data-transfer/graphsync. Syncing via HTTP still works.

Here is from the manual sync log... and then nothing until indexer restarted.

It appears manual sync was just canceled due to another pull channel:

"level":"warn","ts":"2023-05-10T03:16:05.467Z","logger":"dt-chanmon","caller":"channelmonitor/channelmonitor.go:112","msg":"ignoring add pull channel 12D3KooWCSqbkKKKYW8RkqwRTt2M6xihv4LgmX5U1qDe3va7FR9Q-12D3KooWPNbkEgjdBNeaCGpsgCrPRETe4uBZf1ShFXStobdN18ys-1683328234586928882: pull channel with that id already exists"}

Here is the only previous activity for that publisher/provider, ending in a timeout waiting for a message from the remote peer. Here are the errors logged as the timeout is returned through the call stack:

{"level":"error","ts":"2023-05-09T19:46:14.019Z","logger":"dt-chanmon","caller":"channelmonitor/channelmonitor.go:504","msg":"12D3KooWCSqbkKKKYW8RkqwRTt2M6xihv4LgmX5U1qDe3va7FR9Q-12D3KooWPNbkEgjdBNeaCGpsgCrPRETe4uBZf1ShFXStobdN18ys-1683328234586736916: closing data-transfer channel: 12D3KooWCSqbkKKKYW8RkqwRTt2M6xihv4LgmX5U1qDe3va7FR9Q-12D3KooWPNbkEgjdBNeaCGpsgCrPRETe4uBZf1ShFXStobdN18ys-1683328234586736916: timed out waiting 1m0s for Accept message from remote peer"}

{"level":"warn","ts":"2023-05-09T19:46:14.020Z","logger":"dt_graphsync","caller":"graphsync/graphsync.go:201","msg":"channel 12D3KooWCSqbkKKKYW8RkqwRTt2M6xihv4LgmX5U1qDe3va7FR9Q-12D3KooWPNbkEgjdBNeaCGpsgCrPRETe4uBZf1ShFXStobdN18ys-1683328234586736916: graphsync request cancelled"}

{"level":"warn","ts":"2023-05-09T19:46:14.020Z","logger":"dt-impl","caller":"impl/events.go:227","msg":"channel 12D3KooWCSqbkKKKYW8RkqwRTt2M6xihv4LgmX5U1qDe3va7FR9Q-12D3KooWPNbkEgjdBNeaCGpsgCrPRETe4uBZf1ShFXStobdN18ys-1683328234586736916 was cancelled: graphsync request cancelled"}

{"level":"error","ts":"2023-05-09T19:46:14.024Z","logger":"dagsync/dtsync","caller":"dtsync/sync.go:275","msg":"datatransfer failed: 12D3KooWCSqbkKKKYW8RkqwRTt2M6xihv4LgmX5U1qDe3va7FR9Q-12D3KooWPNbkEgjdBNeaCGpsgCrPRETe4uBZf1ShFXStobdN18ys-1683328234586736916: timed out waiting 1m0s for Accept message from remote peer","cid":"baguqeeraz2kc4acok5hopc4ifq6zv4lhbdjr7lzioj4jqcyhdhcvqq4bmdna","peer":"12D3KooWPNbkEgjdBNeaCGpsgCrPRETe4uBZf1ShFXStobdN18ys","message":"12D3KooWCSqbkKKKYW8RkqwRTt2M6xihv4LgmX5U1qDe3va7FR9Q-12D3KooWPNbkEgjdBNeaCGpsgCrPRETe4uBZf1ShFXStobdN18ys-1683328234586736916: timed out waiting 1m0s for Accept message from remote peer"}

{"level":"error","ts":"2023-05-09T19:46:14.024Z","logger":"indexer/ingest","caller":"ingest/ingest.go:1284","msg":"Error while ingesting ad. Bailing early, not ingesting later ads.","publisher":"12D3KooWPNbkEgjdBNeaCGpsgCrPRETe4uBZf1ShFXStobdN18ys","adCid":"baguqeerad3vjfe6nl5wbpnrz5szzjqtnx4obodlj6lgltw2qqv23rfmpq7mq","err":"syncEntriesErr: failed to sync first entry while checking entries type: sync handler failed: datatransfer failed: 12D3KooWCSqbkKKKYW8RkqwRTt2M6xihv4LgmX5U1qDe3va7FR9Q-12D3KooWPNbkEgjdBNeaCGpsgCrPRETe4uBZf1ShFXStobdN18ys-1683328234586736916: timed out waiting 1m0s for Accept message from remote peer","adsLeftToProcess":12899}