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

[Bug]: fails to start fetching updates for K-Diffusion #4346

Closed
1 task done
Jonseed opened this issue Nov 5, 2022 · 15 comments
Closed
1 task done

[Bug]: fails to start fetching updates for K-Diffusion #4346

Jonseed opened this issue Nov 5, 2022 · 15 comments
Labels
asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance

Comments

@Jonseed
Copy link

Jonseed commented Nov 5, 2022

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

Starting up the server with webui-user.bat causes this error:

Fetching updates for K-diffusion...
Checking out commit for K-diffusion with hash: 60e5042ca0da89c14d1dd59d73883280f8fce991...
Traceback (most recent call last):
  File "F:\repos\auto111\stable-diffusion-webui\launch.py", line 251, in <module>
    prepare_enviroment()
  File "F:\repos\auto111\stable-diffusion-webui\launch.py", line 202, in prepare_enviroment
    git_clone(k_diffusion_repo, repo_dir('k-diffusion'), "K-diffusion", k_diffusion_commit_hash)
  File "F:\repos\auto111\stable-diffusion-webui\launch.py", line 82, in git_clone
    run(f'"{git}" -C {dir} checkout {commithash}', f"Checking out commit for {name} with hash: {commithash}...", f"Couldn't checkout commit {commithash} for {name}")
  File "F:\repos\auto111\stable-diffusion-webui\launch.py", line 34, in run
    raise RuntimeError(message)
RuntimeError: Couldn't checkout commit 60e5042ca0da89c14d1dd59d73883280f8fce991 for K-diffusion.
Command: "git" -C repositories\k-diffusion checkout 60e5042ca0da89c14d1dd59d73883280f8fce991
Error code: 128
stdout: <empty>
stderr: fatal: reference is not a tree: 60e5042ca0da89c14d1dd59d73883280f8fce991

It then quits, and fails to boot up the server.

Steps to reproduce the problem

  1. Run webui-user.bat
  2. See error in terminal

What should have happened?

Server should boot up.

Commit where the problem happens

b08698a

What platforms do you use to access UI ?

Windows

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

--autolaunch --gradio-img2img-tool color-sketch

Additional information, context and logs

No response

@Jonseed Jonseed added the bug-report Report of a bug, yet to be confirmed label Nov 5, 2022
@Jonseed
Copy link
Author

Jonseed commented Nov 5, 2022

I believe this is related to commit bbfdfa5

Jonseed referenced this issue Nov 5, 2022
Add support for the new DPM-Solver++ samplers added to k-diffusion
@Boymerkz
Copy link

Boymerkz commented Nov 5, 2022

Give this a try change the line k_diffusion_commit_hash = to the below

k_diffusion_commit_hash = os.environ.get('K_DIFFUSION_COMMIT_HASH', "f4e99857772fc3a126ba886aadf795a332774878")

@Jonseed
Copy link
Author

Jonseed commented Nov 5, 2022

I just did a git checkout back to commit 2e60423 until it gets sorted.

@Boymerkz
Copy link

Boymerkz commented Nov 5, 2022

git checkout

how do i do that for the transformers

@Jonseed
Copy link
Author

Jonseed commented Nov 5, 2022

git checkout

how do i do that for the transformers

Hmm, I'm not sure which commit changed transformers hash. You could try just going back a couple days, pick a commit, and then 'git checkout x' replacing the x with the first 7 digits of the commit. To return to the latest, do 'git checkout master'.

@Boymerkz
Copy link

Boymerkz commented Nov 5, 2022

It worked this morning so would i just go back to then on the SD web git

@Jonseed
Copy link
Author

Jonseed commented Nov 5, 2022

If it was working on a commit earlier today, yes, you would just git checkout a commit from earlier today.

@Boymerkz
Copy link

Boymerkz commented Nov 5, 2022

Yea this didn't work unsure how it could be fixed, tried fresh install and going back a day possible that something in the engineer notebook overrides the backdated commit

@Jonseed
Copy link
Author

Jonseed commented Nov 5, 2022

Yeah, not sure if you are using Colab how to checkout earlier commit.

@darkninjavn
Copy link

darkninjavn commented Nov 6, 2022

delete k-diffusion folder in repositories folder and it will start.

@Jonseed
Copy link
Author

Jonseed commented Nov 6, 2022

delete k-diffusion folder in repositories folder and it will start.

ok, that works, but is not intuitive. Why does fetching updates for K-diffusion fail if the repository is already there? Why can't git checkout the right hash?

@mindfu23
Copy link

mindfu23 commented Dec 8, 2022

deleted repo and that worked for me too, here a month later.
Glad I came across this page.
Also curious why that actually worked, while grateful of course.

@mezotaken mezotaken added asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance and removed bug-report Report of a bug, yet to be confirmed labels Jan 13, 2023
@yuriy777sam
Copy link

File "C:\stable-diffusion-webui\launch.py", line 105, in run
raise RuntimeError(message)
RuntimeError: Couldn't checkout commit 24268930bf1dce879235a7fddd0b2355b84d7ea6 for Taming Transformers.
Command: "git" -C "repositories\taming-transformers" checkout 24268930bf1dce879235a7fddd0b2355b84d7ea6
Error code: 128
stdout:
stderr: fatal: reference is not a tree: 24268930bf1dce879235a7fddd0b2355b84d7ea6.
What to do?

@moskoo
Copy link

moskoo commented Mar 3, 2023

u can modify the value of "K_DIFFUSION_COMMIT_HASH" in "webui-macos-env.sh" file to be consistent with the "k_diffusion_commit_hash: in "launch.py" file

@tieniu1
Copy link

tieniu1 commented Jul 29, 2023

delete k-diffusion folder in repositories folder and it will start.

It works for me, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
asking-for-help-with-local-system-issues This issue is asking for help related to local system; please offer assistance
Projects
None yet
Development

No branches or pull requests

9 participants