stable-diffusion-webui-docker icon indicating copy to clipboard operation
stable-diffusion-webui-docker copied to clipboard

fatal: error reading section header 'shallow-info'

Open HarryPsalms opened this issue 2 years ago • 1 comments
trafficstars

Has this issue been opened before? No

  • [x] It is not in the FAQ, I checked.
  • [x] It is not in the issues, I searched.

Describe the bug Ran "sudo docker compose --profile auto up --build", threw error in step 9/14

[+] Building 123.8s (28/33)                                                                                                                                                                                                                                                                                                 
 => [internal] load .dockerignore                                                                                                                                                                                                                                                                                      0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                                                                        0.0s
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                                                                   0.0s 
 => => transferring dockerfile: 3.73kB                                                                                                                                                                                                                                                                                 0.0s 
 => resolve image config for docker.io/docker/dockerfile:1                                                                                                                                                                                                                                                             1.9s 
 => CACHED docker-image://docker.io/docker/dockerfile:1@sha256:39b85bbfa7536a5feceb7372a0817649ecb2724562a38360f4d6a7782a409b14                                                                                                                                                                                        0.0s
 => [internal] load metadata for docker.io/library/python:3.10.9-slim                                                                                                                                                                                                                                                  1.3s 
 => [internal] load metadata for docker.io/alpine/git:2.36.2                                                                                                                                                                                                                                                           1.5s
 => [internal] load metadata for docker.io/library/alpine:3.17                                                                                                                                                                                                                                                         1.7s
 => [internal] load build context                                                                                                                                                                                                                                                                                      0.0s
 => => transferring context: 123B                                                                                                                                                                                                                                                                                      0.0s 
 => [stage-2  1/14] FROM docker.io/library/python:3.10.9-slim@sha256:76dd18d90a3d8710e091734bf2c9dd686d68747a51908db1e1f41e9a5ed4e2c5                                                                                                                                                                                  0.0s 
 => [xformers 1/3] FROM docker.io/library/alpine:3.17@sha256:69665d02cb32192e52e07644d76bc6f25abeb5410edc1c7a81a10ba3f0efb90a                                                                                                                                                                                          0.0s 
 => [download 1/8] FROM docker.io/alpine/git:2.36.2@sha256:ec491c893597b68c92b88023827faa771772cfd5e106b76c713fa5e1c75dea84                                                                                                                                                                                            0.0s 
 => CACHED [stage-2  2/14] RUN PIP_NO_CACHE_DIR=1 pip install torch==1.13.1+cu117 torchvision --extra-index-url https://download.pytorch.org/whl/cu117                                                                                                                                                                 0.0s 
 => CACHED [stage-2  3/14] RUN apt-get update && apt install fonts-dejavu-core rsync git jq moreutils -y && apt-get clean                                                                                                                                                                                              0.0s 
 => CACHED [stage-2  4/14] RUN --mount=type=cache,target=/root/.cache/pip <<EOF (git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git...)                                                                                                                                                             0.0s 
 => CACHED [xformers 2/3] RUN apk add --no-cache aria2                                                                                                                                                                                                                                                                 0.0s 
 => CACHED [xformers 3/3] RUN aria2c -x 5 --dir / --out wheel.whl 'https://github.com/AbdBarho/stable-diffusion-webui-docker/releases/download/5.0.0/xformers-0.0.17.dev449-cp310-cp310-manylinux2014_x86_64.whl'                                                                                                      0.0s 
 => CACHED [stage-2  5/14] RUN --mount=type=cache,target=/root/.cache/pip    --mount=type=bind,from=xformers,source=/wheel.whl,target=/xformers-0.0.15-cp310-cp310-linux_x86_64.whl   pip install triton /xformers-0.0.15-cp310-cp310-linux_x86_64.whl                                                                 0.0s 
 => CACHED [download 2/8] RUN <<EOF (cat <<'EOE' > /clone.sh...)                                                                                                                                                                                                                                                       0.0s 
 => CACHED [download 3/8] RUN . /clone.sh taming-transformers https://github.com/CompVis/taming-transformers.git 24268930bf1dce879235a7fddd0b2355b84d7ea6   && rm -rf data assets **/*.ipynb                                                                                                                           0.0s 
 => CACHED [download 4/8] RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git 47b6b607fdd31875c9279cd2f4f16b92e4ea958e   && rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif                                                                                      0.0s 
 => CACHED [download 5/8] RUN . /clone.sh CodeFormer https://github.com/sczhou/CodeFormer.git c5b4593074ba6214284d6acd5f1719b6c5d739af   && rm -rf assets inputs                                                                                                                                                       0.0s 
 => CACHED [download 6/8] RUN . /clone.sh BLIP https://github.com/salesforce/BLIP.git 48211a1594f1321b00f14c9f7a5b4813144b2fb9                                                                                                                                                                                         0.0s 
 => CACHED [download 7/8] RUN . /clone.sh k-diffusion https://github.com/crowsonkb/k-diffusion.git 5b3af030dd83e0297272d861c19477735d0317ec                                                                                                                                                                            0.0s 
 => CACHED [download 8/8] RUN . /clone.sh clip-interrogator https://github.com/pharmapsychotic/clip-interrogator 2486589f24165c8e3b303f84e9dbbea318df83e8                                                                                                                                                              0.0s 
 => CACHED [stage-2  6/14] COPY --from=download /git/ /stable-diffusion-webui                                                                                                                                                                                                                                          0.0s 
 => CACHED [stage-2  7/14] RUN mkdir /stable-diffusion-webui/interrogate && cp /stable-diffusion-webui/repositories/clip-interrogator/data/* /stable-diffusion-webui/interrogate                                                                                                                                       0.0s 
 => CACHED [stage-2  8/14] RUN --mount=type=cache,target=/root/.cache/pip   pip install -r /stable-diffusion-webui/repositories/CodeFormer/requirements.txt                                                                                                                                                            0.0s 
 => ERROR [stage-2  9/14] RUN --mount=type=cache,target=/root/.cache/pip   pip install pyngrok   git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379   git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1   git+https://github.com/mlfoundations/ope  119.9s
------                                                                                                                                                                                                                                                                                                                      
 > [stage-2  9/14] RUN --mount=type=cache,target=/root/.cache/pip   pip install pyngrok   git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379   git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1   git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b:                                                                                                                                                                                                                                                                                        
#0 0.176 + pip install pyngrok git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379 git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1 git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b                            
#0 0.429 Collecting git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379
#0 0.430   Cloning https://github.com/TencentARC/GFPGAN.git (to revision 8d2447a2d918f8eba5a4a01463fd48e45126a379) to /tmp/pip-req-build-sx322f2v
#0 0.431   Running command git clone --filter=blob:none --quiet https://github.com/TencentARC/GFPGAN.git /tmp/pip-req-build-sx322f2v
#0 13.20   fatal: error reading section header 'shallow-info'
#0 78.39   Auto packing the repository in background for optimum performance.
#0 78.39   See "git help gc" for manual housekeeping.
#0 96.54   Running command git rev-parse -q --verify 'sha^8d2447a2d918f8eba5a4a01463fd48e45126a379'
#0 96.54   Running command git fetch -q https://github.com/TencentARC/GFPGAN.git 8d2447a2d918f8eba5a4a01463fd48e45126a379
#0 97.68   Running command git checkout -q 8d2447a2d918f8eba5a4a01463fd48e45126a379
#0 99.03   Resolved https://github.com/TencentARC/GFPGAN.git to commit 8d2447a2d918f8eba5a4a01463fd48e45126a379
#0 99.04   Preparing metadata (setup.py): started
#0 100.8   Preparing metadata (setup.py): finished with status 'done'
#0 100.8 Collecting git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
#0 100.8   Cloning https://github.com/openai/CLIP.git (to revision d50d76daa670286dd6cacf3bcd80b5e4823fc8e1) to /tmp/pip-req-build-6j5qpryc
#0 100.8   Running command git clone --filter=blob:none --quiet https://github.com/openai/CLIP.git /tmp/pip-req-build-6j5qpryc
#0 105.8   Running command git rev-parse -q --verify 'sha^d50d76daa670286dd6cacf3bcd80b5e4823fc8e1'
#0 105.8   Running command git fetch -q https://github.com/openai/CLIP.git d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
#0 106.9   Running command git checkout -q d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
#0 108.1   Resolved https://github.com/openai/CLIP.git to commit d50d76daa670286dd6cacf3bcd80b5e4823fc8e1
#0 108.1   Preparing metadata (setup.py): started
#0 108.3   Preparing metadata (setup.py): finished with status 'done'
#0 108.4 Collecting git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b
#0 108.4   Cloning https://github.com/mlfoundations/open_clip.git (to revision bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b) to /tmp/pip-req-build-clwek84r
#0 108.4   Running command git clone --filter=blob:none --quiet https://github.com/mlfoundations/open_clip.git /tmp/pip-req-build-clwek84r
#0 119.8   fatal: error reading section header 'shallow-info'
#0 119.8   error: subprocess-exited-with-error
#0 119.8   
#0 119.8   × git clone --filter=blob:none --quiet https://github.com/mlfoundations/open_clip.git /tmp/pip-req-build-clwek84r did not run successfully.
#0 119.8   │ exit code: 128
#0 119.8   ╰─> See above for output.
#0 119.8   
#0 119.8   note: This error originates from a subprocess, and is likely not a problem with pip.
#0 119.8 error: subprocess-exited-with-error
#0 119.8 
#0 119.8 × git clone --filter=blob:none --quiet https://github.com/mlfoundations/open_clip.git /tmp/pip-req-build-clwek84r did not run successfully.
#0 119.8 │ exit code: 128
#0 119.8 ╰─> See above for output.
#0 119.8 
#0 119.8 note: This error originates from a subprocess, and is likely not a problem with pip.
#0 119.8 
#0 119.8 [notice] A new release of pip available: 22.3.1 -> 23.0.1
#0 119.8 [notice] To update, run: pip install --upgrade pip

Which UI auto

Hardware / Software

  • OS: Debian 11
  • OS version: bullseye
  • Docker Version: 23.01
  • Docker compose version: 2.16
  • Repo version: latest
  • RAM: 32GB
  • GPU/VRAM: 8GB

Steps to Reproduce

  1. Run "sudo docker compose --profile auto up --build"
  2. Process fails in the middle
  3. Haven't tried to upgrade pip, but I don't know if that pip is the environment that lives inside the container. I don't think it's the global Debian environment pip

HarryPsalms avatar Feb 22 '23 14:02 HarryPsalms

@HarryPsalms this seems like a wonky internet problem, can you try running the command again?

AbdBarho avatar Feb 23 '23 05:02 AbdBarho

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Mar 10 '23 00:03 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Mar 18 '23 00:03 github-actions[bot]