0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Docker内でHTTP経由でgit cloneすると失敗する

Posted at

現象

  • 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

原因

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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?