lllyasviel / lllyasviel/stable-diffusion-webui-forge

fatal: detected dubious ownership in repository at

Open
#2,499 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Tips update.bat run today and later:
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: f2.0.1v1.10.1-previous-635-gf5330788
Commit hash: f53307881bfd824dbdce6ac0d4bba04d9a74ab36
Couldn't determine assets's hash: 6f7db241d2f8ba7457bac5ca9753331f0c266917, attempting autofix...
Fetching all contents for assets
fatal: detected dubious ownership in repository at 'E:/webui_forge/webui/repositories/stable-diffusion-webui-assets'
'E:/webui_forge/webui/repositories/stable-diffusion-webui-assets' is owned by:
'S-1-5-21-4103663134-3917249824-2383825132-1001'
but the current user is:
'S-1-5-21-1000256838-1448725724-1571719183-1001'
To add an exception for this directory, call:

    git config --global --add safe.directory E:/webui_forge/webui/repositories/stable-diffusion-webui-assets

Traceback (most recent call last):
File "E:\webui_forge\webui\launch.py", line 55, in
main()
File "E:\webui_forge\webui\launch.py", line 43, in main
prepare_environment()
File "E:\webui_forge\webui\modules\launch_utils.py", line 462, in prepare_environment
git_clone(assets_repo, repo_dir('stable-diffusion-webui-assets'), "assets", assets_commit_hash)
File "E:\webui_forge\webui\modules\launch_utils.py", line 187, in git_clone
current_hash = run_git(dir, name, 'rev-parse HEAD', None, f"Couldn't determine {name}'s hash: {commithash}", live=False).strip()
File "E:\webui_forge\webui\modules\launch_utils.py", line 175, in run_git
git_fix_workspace(dir, name)
File "E:\webui_forge\webui\modules\launch_utils.py", line 162, in git_fix_workspace
run(f'"{git}" -C "{dir}" fetch --refetch --no-auto-gc', f"Fetching all contents for {name}", f"Couldn't fetch {name}", live=True)
File "E:\webui_forge\webui\modules\launch_utils.py", line 125, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't fetch assets.
Command: "git" -C "E:\webui_forge\webui\repositories\stable-diffusion-webui-assets" fetch --refetch --no-auto-gc
Error code: 128
请按任意键继续. . .
Can't run anymore.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with modules/launch_utils.py, especially git_clone, run_git, git_fix_workspace, and the call from launch.py:43-55; compare this path with the update.bat flow mentioned in the report. Reproduce the assets fetch failure on Windows with mismatched repository ownership, then verify that the update process handles this condition and reaches a clear completion or error state.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.