Rate This Document
Findability
Accuracy
Completeness
Readability

Error "unexpected disconnect while reading sideband packet fatal" Reported When Obtaining the Sub-repository Dependency

Symptom

When obtaining the sub-repository dependency, an error is reported stating "unexpected disconnect while reading sideband packet fatal":

Cloning into '/path/to/pytorch/third_party/cub'... 
error: RPC failed; curl 18 transfer closed with outstanding read data remaining error: 1501 bytes of body are still expected 
fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF 
fatal: fetch-pack: invalid index-pack output 
fatal: clone of 'https://github.com/NVlabs/cub.git' into submodule path '/home/c30040584/pytorch/third_par ty/cub' failed 
Failed to clone 'third party/cub'. Retry scheduled 

Key Process and Cause Analysis

Sub-repository dependency download fails due to network problems.

Conclusion and Solution

Go to the path/to/pytorch directory and obtain the sub-repository dependency again.

cd /path/to/pytorch 
git submodule update --init --recursive