Problem when "tutor images build openedx"

Hello, I am using tutor version 17.0.1 on ubuntu 22.0.4. I’m tring to use “tutor images build openedx”, it have a problem. I have attached the error below.

=> CACHED [locales 1/2] ADD --keep-git-dir=true https://github.com/openedx/openedx-i18n.git#release/quince /tmp/openedx-i18n                                      0.0s 
 => CACHED [locales 2/2] RUN mkdir --parents /openedx/locale &&     mv /tmp/openedx-i18n/edx-platform/locale /openedx/locale/contrib &&     rm -rf /tmp/openedx-i  0.0s
------                                                                                                                                                                  
 > [code 1/4] RUN mkdir -p /openedx/edx-platform &&     git clone https://github.com/openedx/edx-platform.git --branch open-release/quince.1 --depth 1 /openedx/edx-platform:                                                                                                                                                                   
2.850 Cloning into '/openedx/edx-platform'...                                                                                                                           
161.5 fatal: the remote end hung up unexpectedly                                                                                                                        
161.5 fatal: early EOF                                                                                                                                                  
161.5 fatal: index-pack failed                                                                                                                                          
------                                                                                                                                                                  
Dockerfile:41                                                                                                                                                           
--------------------                                                                                                                                                    
  40 |     ARG EDX_PLATFORM_VERSION=open-release/quince.1                                                                                                               
  41 | >>> RUN mkdir -p /openedx/edx-platform && \                                                                                                                      
  42 | >>>     git clone $EDX_PLATFORM_REPOSITORY --branch $EDX_PLATFORM_VERSION --depth 1 /openedx/edx-platform                                                        
  43 |     WORKDIR /openedx/edx-platform
--------------------
ERROR: failed to solve: process "/bin/sh -c mkdir -p /openedx/edx-platform &&     git clone $EDX_PLATFORM_REPOSITORY --branch $EDX_PLATFORM_VERSION --depth 1 /openedx/edx-platform" did not complete successfully: exit code: 128
Error: Command failed with status 1: docker buildx build --tag=docker.io/overhangio/openedx:17.0.1 --output=type=docker --cache-from=type=registry,ref=docker.io/overhangio/openedx:17.0.1-cache /root/.local/share/tutor/env/build/openedx
1 Like

Hi @newopenedx and welcome!

The key here in your snippet is fatal: the remote end hung up unexpectedly - this means that the git clone operation failed. If you google that error you’ll find lots of different tips on how you might solve the error. The first thing I’d do is simply try again. Here is one of many answers on StackOverflow about this error that may be helpful: The remote end hung up unexpectedly while git cloning - Stack Overflow

1 Like

Hi @newopenedx, please view my comment on this post for a solution.

Thank you very much.