We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad AI Visualizer
Discussions about Archicad AI Visualizer.

This group is dedicated to the experimental AI Visualizer for Archicad 27, which will reach End of Service on December 31, 2024.

The new AI Visualizer in Archicad 28 is now fully cloud-based, with advanced controls like creativity and upscaling. Click here for further details.

SOLVED!

AI-Visualizer - "detected dubious ownership"

Lucien
Booster

Hi everyone

 

We intstalled the AI-Visualizer add-on on a machine that fits all the hardware requirements. The add-on did work initially. Sadly when we log in  with a different users, the add-on ist not working. The following error occoures:

 

fatal: detected dubious ownership in repository at 'C:/sd.webui/webui'
'C:/sd.webui/webui' is owned by:
'X-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-1367'
but the current user is:
'X-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-1809'
To add an exception for this directory, call:

git config --global --add safe.directory C:/sd.webui/webui
fatal: detected dubious ownership in repository at 'C:/sd.webui/webui'
'C:/sd.webui/webui' is owned by:
'X-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-1367'
but the current user is:
'X-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-1809'
To add an exception for this directory, call:

git config --global --add safe.directory C:/sd.webui/webui
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: 1.6.0
Commit hash: <none>
Couldn't determine Stable Diffusion's hash: cf1d67a6fd5ea1aa600c4df58e5b47da45f6bdbf, attempting autofix...
Fetching all contents for Stable Diffusion
fatal: detected dubious ownership in repository at 'C:/sd.webui/webui/repositories/stable-diffusion-stability-ai'
'C:/sd.webui/webui/repositories/stable-diffusion-stability-ai' is owned by:
'X-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-1367'
but the current user is:
'X-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-1809'
To add an exception for this directory, call:

git config --global --add safe.directory C:/sd.webui/webui/repositories/stable-diffusion-stability-ai
Traceback (most recent call last):
File "C:\sd.webui\webui\launch.py", line 48, in <module>
main()
File "C:\sd.webui\webui\launch.py", line 39, in main
prepare_environment()
File "C:\sd.webui\webui\modules\launch_utils.py", line 380, in prepare_environment
git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
File "C:\sd.webui\webui\modules\launch_utils.py", line 172, 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 "C:\sd.webui\webui\modules\launch_utils.py", line 160, in run_git
git_fix_workspace(dir, name)
File "C:\sd.webui\webui\modules\launch_utils.py", line 147, 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 "C:\sd.webui\webui\modules\launch_utils.py", line 115, in run
raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't fetch Stable Diffusion.
Command: "git" -C "C:\sd.webui\webui\repositories\stable-diffusion-stability-ai" fetch --refetch --no-auto-gc
Error code: 128
Drücken Sie eine beliebige Taste . . .

 

I tried running git config --global --add safe.directory C:/sd.webui/webui but that isn't working because I have no funtion called "git". Doas anyone know how to fix this?

 

Cheers,
Lucien


Operating system used: Windows 4060

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Lucien
Booster

Hi everyone

I solved the problem by duplicating the "sd.webui" folder with the new user. With this method, you simply need a separate "sd.webui" folder for each user, which of course has to be created by the respective user themselves (so that they are sure to be the owner of the folder). Before each use of the add-on, the folder of which you are the owner must be renamed to "sd.webui". For two users, this solution is reasonably practicable, but definitely not pretty.

 

Lucien_0-1708704263459.png

 

Cheers,
Lucien

View solution in original post

1 REPLY 1
Solution
Lucien
Booster

Hi everyone

I solved the problem by duplicating the "sd.webui" folder with the new user. With this method, you simply need a separate "sd.webui" folder for each user, which of course has to be created by the respective user themselves (so that they are sure to be the owner of the folder). Before each use of the add-on, the folder of which you are the owner must be renamed to "sd.webui". For two users, this solution is reasonably practicable, but definitely not pretty.

 

Lucien_0-1708704263459.png

 

Cheers,
Lucien

Setup info provided by author

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!