現象
- DockerFileに記載していたgit cloneが失敗していた
=> CANCELED [builder 9/11] RUN git clone https://github.com/Genesis-Embodied-AI/Genesis.git && cd Genesis && git submodule update --init --recursive 60.4s
=> ERROR [stage-1 5/12] RUN git clone https://github.com/Genesis-Embodied-AI/Genesis.git && cd Genesis && pip install . && pip install --no-cache-dir PyOpenGL==3.1.5 50.4s
------
> [stage-1 5/12] RUN git clone https://github.com/Genesis-Embodied-AI/Genesis.git && cd Genesis && pip install . && pip install --no-cache-dir PyOpenGL==3.1.5:
0.151 Cloning into 'Genesis'...
50.36 error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
50.36 error: 3551 bytes of body are still expected
50.36 fetch-pack: unexpected disconnect while reading sideband packet
50.36 fatal: early EOF
50.36 fatal: fetch-pack: invalid index-pack output
------
Dockerfile:90
--------------------
89 | RUN pip install --no-cache-dir open3d
90 | >>> RUN git clone https://github.com/Genesis-Embodied-AI/Genesis.git && \
91 | >>> cd Genesis && \
92 | >>> pip install . && \
93 | >>> pip install --no-cache-dir PyOpenGL==3.1.5
94 |
--------------------
ERROR: failed to solve: process "/bin/sh -c git clone https://github.com/Genesis-Embodied-AI/Genesis.git && cd Genesis && pip install . && pip install --no-cache-dir PyOpenGL==3.1.5" did not complete successfully: exit code: 128
原因
-
gitのHTTPのバージョンが新しい or HTTP通信のバッファーサイズが小さい
-
エラー内容の以下の部分が該当しています
50.36 error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
50.36 error: 3551 bytes of body are still expected
対応
- HTTPのバージョンをダウングレードすると上手く実行できました
- 下げた後は元のバージョンに戻した方がよい
# ダウングレード
git config --global http.version HTTP/1.1
# 元に戻す
git config --global --unset http.version