stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Fresh Install Error
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
Fresh Install Error
Steps to reproduce the problem
1、Install Python 3.10.6 (Newer version of Python does not support torch), checking "Add Python to PATH". 2、Install git. 3、Download the stable-diffusion-webui repository, for example by running git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git. 4、Run webui-user.bat from Windows Explorer as normal, non-administrator, user.
What should have happened?
11
Version or Commit where the problem happens
Version: v1.4.0
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Windows
What device are you running WebUI on?
Other GPUs
Cross attention optimization
None
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
No
List of extensions
No
Console logs
venv "D:\sd\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.4.0
Commit hash: 394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
Fetching updates for Stable Diffusion...
Traceback (most recent call last):
File "D:\sd\stable-diffusion-webui\launch.py", line 38, in <module>
main()
File "D:\sd\stable-diffusion-webui\launch.py", line 29, in main
prepare_environment()
File "D:\sd\stable-diffusion-webui\modules\launch_utils.py", line 299, in prepare_environment
git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
File "D:\sd\stable-diffusion-webui\modules\launch_utils.py", line 149, in git_clone
run(f'"{git}" -C "{dir}" fetch', f"Fetching updates for {name}...", f"Couldn't fetch {name}")
File "D:\sd\stable-diffusion-webui\modules\launch_utils.py", line 107, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't fetch Stable Diffusion.
Command: "git" -C "D:\sd\stable-diffusion-webui\repositories\stable-diffusion-stability-ai" fetch
Error code: 128
stderr: fatal: unable to access 'https://github.com/AUTOMATIC1111/stable-diffusion-webui.git/': Recv failure: Connection was reset
Additional information
No response
Try installing with a VPN https://riseup.net/en/vpn/windows/#installation
The vpn is turned on
is that due to slow, unstable VPN? I'll be on the lookout for the installation for users in China
Could you run git clone stable-diffusion-stability-ai in stable-diffusion-webui\repositories ?
Just do that for all 4 of these.
git clone https://github.com/CompVis/stable-diffusion.git repositories/stable-diffusion-stability-ai git clone https://github.com/CompVis/taming-transformers.git repositories/taming-transformers git clone https://github.com/sczhou/CodeFormer.git repositories/CodeFormer git clone https://github.com/salesforce/BLIP.git repositories/BLIP
Are you using Clash? Add two items to the environment variables, titled http_proxy and https_proxy, with values of http://127.0.0.1:7890 and https://127.0.0.1:7890 respectively. Then open the command prompt (cmd) and enter the following code to check and add a proxy to Git:
git config --global --get http.proxy git config --global --get https.proxy git config --global http.proxy http://127.0.0.1:7890 git config --global https.proxy https://127.0.0.1:7890
Finally, try opening webui-user.bat again, it should work now.
doesnt work on linux/docker either
I also have this issue with v1.6, but only after first use. Trying to reopen it it gives this error, despite working on first install. Is there anything I can do with the bat file to stop it trying to re-fetch from git every launch?
update git works for me yum install git