AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
143.68k stars 27.03k forks source link

Error code: 128 #14395

Open TafreedAhmad opened 11 months ago

TafreedAhmad commented 11 months ago

Checklist

What happened?

Command: "git" clone "https://github.com/Stability-AI/stablediffusion.git" "/Users/tafreedahmad/Desktop/stable-diffusion-webui/repositories/stable-diffusion-stability-ai" Error code: 128

Steps to reproduce the problem

I just ran the normal steps and while running ./webui.sh i got this error multiple times. Python is 3.10 and still this error exists.

What should have happened?

WebUi should've started

What browsers do you use to access the UI ?

No response

Sysinfo

sysinfo.txt

Console logs

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on tafreedahmad user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
Create and activate python venv
################################################################

################################################################
Launching launch.py...
################################################################
Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:41:52) [Clang 15.0.7 ]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
Installing torch and torchvision
Collecting torch==2.0.1
  Using cached torch-2.0.1-cp310-none-macosx_11_0_arm64.whl (55.8 MB)
Collecting torchvision==0.15.2
  Using cached torchvision-0.15.2-cp310-cp310-macosx_11_0_arm64.whl (1.4 MB)
Collecting networkx
  Using cached networkx-3.2.1-py3-none-any.whl (1.6 MB)
Collecting filelock
  Using cached filelock-3.13.1-py3-none-any.whl (11 kB)
Collecting typing-extensions
  Using cached typing_extensions-4.9.0-py3-none-any.whl (32 kB)
Collecting jinja2
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting sympy
  Using cached sympy-1.12-py3-none-any.whl (5.7 MB)
Collecting pillow!=8.3.*,>=5.3.0
  Using cached Pillow-10.1.0-cp310-cp310-macosx_11_0_arm64.whl (3.3 MB)
Collecting numpy
  Using cached numpy-1.26.2-cp310-cp310-macosx_11_0_arm64.whl (14.0 MB)
Collecting requests
  Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Collecting MarkupSafe>=2.0
  Using cached MarkupSafe-2.1.3-cp310-cp310-macosx_10_9_universal2.whl (17 kB)
Collecting urllib3<3,>=1.21.1
  Using cached urllib3-2.1.0-py3-none-any.whl (104 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.6-py3-none-any.whl (61 kB)
Collecting charset-normalizer<4,>=2
  Using cached charset_normalizer-3.3.2-cp310-cp310-macosx_11_0_arm64.whl (120 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2023.11.17-py3-none-any.whl (162 kB)
Collecting mpmath>=0.19
  Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Installing collected packages: mpmath, urllib3, typing-extensions, sympy, pillow, numpy, networkx, MarkupSafe, idna, filelock, charset-normalizer, certifi, requests, jinja2, torch, torchvision
Successfully installed MarkupSafe-2.1.3 certifi-2023.11.17 charset-normalizer-3.3.2 filelock-3.13.1 idna-3.6 jinja2-3.1.2 mpmath-1.3.0 networkx-3.2.1 numpy-1.26.2 pillow-10.1.0 requests-2.31.0 sympy-1.12 torch-2.0.1 torchvision-0.15.2 typing-extensions-4.9.0 urllib3-2.1.0

[notice] A new release of pip is available: 23.0.1 -> 23.3.2
[notice] To update, run: pip install --upgrade pip
Installing clip
Installing open_clip
Cloning Stable Diffusion into /Users/tafreedahmad/Desktop/stable-diffusion-webui/repositories/stable-diffusion-stability-ai...
Cloning into '/Users/tafreedahmad/Desktop/stable-diffusion-webui/repositories/stable-diffusion-stability-ai'...
remote: Enumerating objects: 580, done.
remote: Counting objects: 100% (310/310), done.
remote: Compressing objects: 100% (94/94), done.
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 5907 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
Traceback (most recent call last):
  File "/Users/tafreedahmad/Desktop/stable-diffusion-webui/launch.py", line 48, in <module>
    main()
  File "/Users/tafreedahmad/Desktop/stable-diffusion-webui/launch.py", line 39, in main
    prepare_environment()
  File "/Users/tafreedahmad/Desktop/stable-diffusion-webui/modules/launch_utils.py", line 408, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "/Users/tafreedahmad/Desktop/stable-diffusion-webui/modules/launch_utils.py", line 192, in git_clone
    run(f'"{git}" clone "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}", live=True)
  File "/Users/tafreedahmad/Desktop/stable-diffusion-webui/modules/launch_utils.py", line 116, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't clone Stable Diffusion.
Command: "git" clone "https://github.com/Stability-AI/stablediffusion.git" "/Users/tafreedahmad/Desktop/stable-diffusion-webui/repositories/stable-diffusion-stability-ai"
Error code: 128

Additional information

No response

AimoneAndex commented 11 months ago

Excuse me,how could you install clip successfully?It tells me that it can't find the URL.And I tried and couldn't open it,too.

Morgrime commented 10 months ago

Had same issue. Solved by git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

mindlessp0tatoe commented 10 months ago

I cannot say the complications of what this might cause (or if it wise to do this), but what worked for me is executing this command first:

git config --global --add safe.directory "*"

After which, no more errors when doing ./webui.sh etc.

Source: the answer on this stackoverflow question

soulteary commented 10 months ago

I cannot say the complications of what this might cause (or if it wise to do this), but what worked for me is executing this command first:

git config --global --add safe.directory "*"

After which, no more errors when doing ./webui.sh etc.

Source: the answer on this stackoverflow question

Unless you are in a clean container or virtual machine, it is not recommended to do this. You can try giving the specified path.

A better way is to adjust the way the software components are installed and updated.

soulteary commented 10 months ago
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 5907 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 5907 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Because of your network problem, the git clone of stable-diffusion project was not clone completed. @TafreedAhmad

Later, I will complete the complete manual installation tutorial in this ISSUE. You can follow it or make comments and suggestions. https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/14651

TafreedAhmad commented 10 months ago
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 5907 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 5907 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Because of your network problem, the git clone of stable-diffusion project was not clone completed. @TafreedAhmad

Later, I will complete the complete manual installation tutorial in this ISSUE. You can follow it or make comments and suggestions. https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/14651

I don't know, but the network was pretty good and also using the same network connection on another machine i cloned this repo and it worked just fine. However, on my machine i cloned some of the other big repositories to see if that was the problem. Yet, they worked just fine.

AimoneAndex commented 10 months ago
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 5907 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly: CANCEL (err 8)
error: 5907 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Because of your network problem, the git clone of stable-diffusion project was not clone completed. @TafreedAhmad Later, I will complete the complete manual installation tutorial in this ISSUE. You can follow it or make comments and suggestions. #14651

I don't know, but the network was pretty good and also using the same network connection on another machine i cloned this repo and it worked just fine. However, on my machine i cloned some of the other big repositories to see if that was the problem. Yet, they worked just fine.

I think there's something wrong with SSL.Though,I couldn't still work it out.

AimoneAndex commented 10 months ago

Had same issue. Solved by git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git

I cloned the newest version but solved nothing.More details?

adityak2809 commented 9 months ago

I think it's a network issue; I've tried numerous solutions without success, but the problem was resolved when I switched to my mobile internet.

wgalunw commented 6 months ago

tôi bị lỗi giống bạn, giải pháp là cài đặt Stable Diffusion bản mới nhất, copy folder bản mới sang folder bị lỗi ở bản cũ. cách khắc phục này hiệu quả trên rất nhiều lỗi

mmfs233 commented 5 months ago

I'm in CN and have been having this problem with code128 for a long time. I just solved it by downloading the integration package and directly copying the "repositories" file inside to the SD.

DominusX commented 5 months ago

I think it's a network issue; I've tried numerous solutions without success, but the problem was resolved when I switched to my mobile internet.

Thank you very much, I did the same and it solved Error code 128 for me. God Bless you!!

AimoneAndex commented 4 months ago

I'm in CN and have been having this problem with code128 for a long time. I just solved it by downloading the integration package and directly copying the "repositories" file inside to the SD.

OK!I'd like to have a try.