fission-codes / go-car-mirror

Generic Go implementation of the CAR Mirror protocol
Apache License 2.0
4 stars 0 forks source link

i/o error pushing to remote machine #96

Closed justindotpub closed 1 year ago

justindotpub commented 1 year ago

Getting this error on a remote server when pushing about 5M of dag over. Shows up in remote server log.

Feb 03 16:20:09 carmirror1 ipfs[3062]: 2023-02-03T16:20:09.104Z        ERROR        go-car-mirror        http/server.go:285        parsing blocks message        {"object": "Server", "method": "HandleBlocks", "session": "FkaVHmCvPhqIMLuob_8wYg==", "error": "read tcp 172.31.39.242:2503->98.97.81.136:15081: i/o timeout"}
justindotpub commented 1 year ago

Now that #99 has landed, I'm waiting for on https://github.com/fission-codes/infrastructure/issues/183 to test this out again.

justindotpub commented 1 year ago

This error comes from a combination of 1) the timeout for the http client from kubo-car-mirror's new session handlers to go-car-mirror's blocks or status handlers, and 2) the timeout on the select over the done channel in kubo-car-mirror.

I've bumped these timeouts to 10 minutes for now and will be thinking through all of the timeouts and how we want to set them, which should be configurable, etc.