Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build the "auto" (AUTOMATIC1111) image via docker build #715

Open
2 tasks done
aurel-g opened this issue Jul 19, 2024 · 2 comments
Open
2 tasks done

Unable to build the "auto" (AUTOMATIC1111) image via docker build #715

aurel-g opened this issue Jul 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@aurel-g
Copy link

aurel-g commented Jul 19, 2024

Hi,

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

I'm not familiar with docker compose and I don't usually use it: I prefer to build images via docker build and launch my containers via systemd services. In a case like this I try to dissect the docker-compose.yml then I build and launch my containers in the "traditional" way.

I'm trying to install AUTOMATIC1111. If I understood correctly, I need

  • the image corresponding to the "download" service to initialize the contents of the "data" folder: I was able to build it and make it work without problem
  • the image corresponding to the "auto" service: this is where I have a problem, I cannot build it.

I do docker build --progress plain -t test-a1111:latest ./services/AUTOMATIC1111/ on the release 9.0.0 files

Here is the result :

#0 building with "default" instance using docker driver

#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 2.96kB done
#1 WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
#1 DONE 0.0s

#2 [internal] load metadata for docker.io/alpine/git:2.36.2
#2 ...

#3 [internal] load metadata for docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime
#3 DONE 0.7s

#2 [internal] load metadata for docker.io/alpine/git:2.36.2
#2 DONE 0.7s

#4 [internal] load .dockerignore
#4 transferring context: 2B done
#4 DONE 0.0s

#5 [download 1/9] FROM docker.io/alpine/git:2.36.2@sha256:ec491c893597b68c92b88023827faa771772cfd5e106b76c713fa5e1c75dea84
#5 DONE 0.0s

#6 [internal] load build context
#6 transferring context: 122B done
#6 DONE 0.0s

#7 [download 2/9] COPY clone.sh /clone.sh
#7 CACHED

#8 [download 3/9] RUN . /clone.sh stable-diffusion-webui-assets https://github.com/AUTOMATIC1111/stable-diffusion-webui-assets.git 6f7db241d2f8ba7457bac5ca9753331f0c266917
#8 CACHED

#9 [stage-1  1/11] FROM docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime@sha256:0279f7aa29974bf64e61d0ff6e979b41a249b3662a46e30778dbf80b8c99c361
#9 resolve docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime@sha256:0279f7aa29974bf64e61d0ff6e979b41a249b3662a46e30778dbf80b8c99c361 0.0s done
#9 sha256:0279f7aa29974bf64e61d0ff6e979b41a249b3662a46e30778dbf80b8c99c361 1.37kB / 1.37kB done
#9 sha256:639acf27b78ebb7037982e16916fdd8751dddb6ed6ce6bfa42c3ec396c0590e1 4.66kB / 4.66kB done
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 0B / 30.44MB 0.1s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 0B / 12.39MB 0.1s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 0B / 3.69GB 0.1s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 1.05MB / 12.39MB 1.0s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 2.10MB / 12.39MB 1.4s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 3.15MB / 12.39MB 1.9s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 4.19MB / 12.39MB 2.1s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 5.24MB / 12.39MB 2.3s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 2.10MB / 30.44MB 2.7s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 6.29MB / 12.39MB 2.7s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 7.34MB / 12.39MB 2.9s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 8.39MB / 12.39MB 3.2s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 9.44MB / 12.39MB 3.4s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 10.49MB / 12.39MB 3.6s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 4.19MB / 30.44MB 3.8s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 11.53MB / 12.39MB 3.9s
#9 sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 12.39MB / 12.39MB 4.0s done
#9 sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 0B / 32B 4.1s
#9 sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32B / 32B 4.1s done
#9 sha256:24ac5c9442616df1bd266a38c0c85aa599255c5ff29c72d46a6650ae50889e37 0B / 99B 4.2s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 6.29MB / 30.44MB 4.4s
#9 sha256:24ac5c9442616df1bd266a38c0c85aa599255c5ff29c72d46a6650ae50889e37 99B / 99B 4.3s done
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 8.39MB / 30.44MB 4.7s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 10.49MB / 30.44MB 5.1s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 33.55MB / 3.69GB 5.2s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 12.58MB / 30.44MB 5.4s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 14.68MB / 30.44MB 5.8s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 16.78MB / 30.44MB 6.2s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 18.87MB / 30.44MB 6.6s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 20.97MB / 30.44MB 6.9s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 23.07MB / 30.44MB 7.3s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 25.17MB / 30.44MB 7.6s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 27.26MB / 30.44MB 7.9s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 30.44MB / 30.44MB 8.4s
#9 sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 30.44MB / 30.44MB 8.4s done
#9 extracting sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 0.1s
#9 extracting sha256:7021d1b70935851c95c45ed18156980b5024eda29b99564429025ea04f5ec109 1.2s done
#9 extracting sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 0.1s
#9 ...

#10 [download 4/9] RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf   && rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif
#10 0.233 + mkdir -p /repositories/stable-diffusion-stability-ai
#10 0.234 + cd /repositories/stable-diffusion-stability-ai
#10 0.234 + git init
#10 0.237 hint: Using 'master' as the name for the initial branch. This default branch name
#10 0.237 hint: is subject to change. To configure the initial branch name to use in all
#10 0.237 hint: of your new repositories, which will suppress this warning, call:
#10 0.237 hint: 
#10 0.237 hint: 	git config --global init.defaultBranch <name>
#10 0.237 hint: 
#10 0.237 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
#10 0.237 hint: 'development'. The just-created branch can be renamed via this command:
#10 0.237 hint: 
#10 0.237 hint: 	git branch -m <name>
#10 0.239 Initialized empty Git repository in /repositories/stable-diffusion-stability-ai/.git/
#10 0.239 + git remote add origin https://github.com/Stability-AI/stablediffusion.git
#10 0.241 + git fetch origin cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf '--depth=1'
#10 ...

#9 [stage-1  1/11] FROM docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime@sha256:0279f7aa29974bf64e61d0ff6e979b41a249b3662a46e30778dbf80b8c99c361
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 73.40MB / 3.69GB 10.3s
#9 extracting sha256:a84b49fe85c95a7a53955b022f10fec215fa2326788c69857d686efb3289726d 0.8s done
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 130.02MB / 3.69GB 15.4s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 187.70MB / 3.69GB 20.4s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 244.32MB / 3.69GB 25.5s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 301.99MB / 3.69GB 30.6s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 358.61MB / 3.69GB 35.7s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 417.33MB / 3.69GB 40.8s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 471.86MB / 3.69GB 45.8s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 530.58MB / 3.69GB 50.9s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 587.20MB / 3.69GB 56.0s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 644.87MB / 3.69GB 61.0s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 698.35MB / 3.69GB 66.0s
#9 sha256:0660c54152977c71466dc720dcd377f9349b50ad1f29d0271eceb5d666d58133 759.17MB / 3.69GB 71.2s
#9 ...

#10 [download 4/9] RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf   && rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif
#10 72.18 error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
#10 72.18 error: 8041 bytes of body are still expected
#10 72.18 fetch-pack: unexpected disconnect while reading sideband packet
#10 72.18 fatal: early EOF
#10 72.18 fatal: fetch-pack: invalid index-pack output
#10 ERROR: process "/bin/sh -c . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf   && rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif" did not complete successfully: exit code: 128

#9 [stage-1  1/11] FROM docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime@sha256:0279f7aa29974bf64e61d0ff6e979b41a249b3662a46e30778dbf80b8c99c361
#9 CANCELED
------
 > [download 4/9] RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf   && rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif:
0.237 hint: 
0.237 hint: 	git branch -m <name>
0.239 Initialized empty Git repository in /repositories/stable-diffusion-stability-ai/.git/
0.239 + git remote add origin https://github.com/Stability-AI/stablediffusion.git
0.241 + git fetch origin cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf '--depth=1'
72.18 error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
72.18 error: 8041 bytes of body are still expected
72.18 fetch-pack: unexpected disconnect while reading sideband packet
72.18 fatal: early EOF
72.18 fatal: fetch-pack: invalid index-pack output
------

 2 warnings found (use --debug to expand):
 - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
 - JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 66)
Dockerfile:7
--------------------
   6 |     
   7 | >>> RUN . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf \
   8 | >>>   && rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif
   9 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c . /clone.sh stable-diffusion-stability-ai https://github.com/Stability-AI/stablediffusion.git cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf   && rm -rf assets data/**/*.png data/**/*.jpg data/**/*.gif" did not complete successfully: exit code: 128

I haven't found any trace of this problem in other issues despite the large number of users, so I wonder if this is due to not using docker compose? Am I supposed to be able to construct the image this way? If yes how, and if not why?

I'm using docker 27.0.3 on a Debian 12 system.

@aurel-g aurel-g added the bug Something isn't working label Jul 19, 2024
@MrZoidberg
Copy link

same for me

@fufuShih
Copy link

fufuShih commented Aug 6, 2024

Try #657

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants