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

fatal: detected dubious ownership in repository at #2514

Open
kainaschatte opened this issue Dec 28, 2024 · 5 comments
Open

fatal: detected dubious ownership in repository at #2514

kainaschatte opened this issue Dec 28, 2024 · 5 comments

Comments

@kainaschatte
Copy link

hello, i've a message, when i lauch update.bat on stable-diffusion-webui-forge ,

fatal: detected dubious ownership in repository at

it seems that this problem has been raised before, but no one has given me a solution.
thanks for your understanding

@SvenErik1968
Copy link

Try the suggested solution here. The issue is caused by using different Windows user accounts for the installation and the update process.
I expect your error message were similar to the one mentioned in the issue I linked to above:

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'

Those 2 long strings starting with S-1-5-21 are called SIDs or Security Identifiers, and basically says that the installation was done with one user account (Windows domain account since it is S-1-5-21) and the file ownership were set to that user, while the update was attempted with a different domain account.

@kainaschatte
Copy link
Author

thanks very much for response i have this message!:

fatal: detected dubious ownership in repository at 'Y:/forgeflux/webui_forge_cu121_torch231/webui'
'Y:/forgeflux/webui_forge_cu121_torch231/webui' is on a file system that doesnot record ownership
To add an exception for this directory, call:

git config --global --add safe.directory Y:/forgeflux/webui_forge_cu121_torch231/webui

fatal: detected dubious ownership in repository at 'Y:/forgeflux/webui_forge_cu121_torch231/webui'
'Y:/forgeflux/webui_forge_cu121_torch231/webui' is on a file system that doesnot record ownership
To add an exception for this directory, call:

git config --global --add safe.directory Y:/forgeflux/webui_forge_cu121_torch231/webui

Press any key to continue . . .

i try the method erase the folder like the example you send, but that does'nt work.

WIN 10, nvidia 3070. 24 GB RAM

@Mistarille224
Copy link

Mistarille224 commented Dec 29, 2024

Erasing files is not the point, my friend. the point is to ensure current user has ownership.
It seems that you downloaded the compressed package. In this case, it is best to follow the tutorial on this website to modify the ownership of the webui_forge_cu121_torch231 folder. Remember to Replace owner on sub containers and objects. How good is MS at hide and seek?
Of course, you can also execute git config --global --add safe.directory xxxx in the error. If an error is reported again, check whether the returned command is different, execute it again, and repeat. This is a simple but dirty solution that I don't really like. If you use git like this for a few months, the .gitconfig file will become a mess.

@kainaschatte
Copy link
Author

thanks for your help. i change the root on another disk and it's work, i think the another disk was corrupted.
you can close , it's done.
I wish you a happy day, see you

@SvenErik1968
Copy link

@kainaschatte , sorry for late response, been busy. I see in the error message you posted this:
'Y:/forgeflux/webui_forge_cu121_torch231/webui' is on a file system that doesnot record ownership
Is this a USB disk/pendrive or similar formatted with FAT32? If so, that would be the cause here since FAT32 file systems don't support more advanced file properties like file ownership that you have with NTFS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants