vladmandic / automatic

SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models
https://github.com/vladmandic/automatic
GNU Affero General Public License v3.0
5.56k stars 409 forks source link

[Issue]: Clean Install - Dubious Ownership Error #1801

Closed ForceX34 closed 1 year ago

ForceX34 commented 1 year ago

Issue Description

July-22-2023 : Running Webui.bat to perform initial install results in an error showing a dubious ownership. Forcing an update installs the packages but this ownership error persist.

Using VENV: H:\Image Ai\automatic\venv 18:29:50-377981 INFO Starting SD.Next 18:29:50-377981 INFO Python 3.10.9 on Windows 18:29:50-409226 ERROR Error running git: None / log -1 --pretty=format:"%h %ad" 18:29:50-409226 INFO Version: fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic' 'H:/Image Ai/automatic' is owned by: 'S-1-5-32-544' but the current user is: 'S-1-5-21-1640801864-2174363966-3882498311-1001' To add an exception for this directory, call:

                             git config --global --add safe.directory 'H:/Image Ai/automatic'

18:29:50-440478 ERROR Error running git: None / rev-parse HEAD 18:29:50-440478 INFO nVidia CUDA toolkit detected 18:29:50-440478 INFO Installing package: torch torchvision --index-url https://download.pytorch.org/whl/cu118 18:31:16-209823 ERROR Error running git: None / status --porcelain 18:31:16-225451 WARNING Modified files: ["tal: detected dubious ownership in repository at 'H:/Image Ai/automatic'", ":/Image Ai/automatic' is owned by:", "S-1-5-32-544'", 't the current user is:', "S-1-5-21-1640801864-2174363966-3882498311-1001'", 'add an exception for this directory, call:', "it config --global --add safe.directory 'H:/Image Ai/automatic'"] 18:31:16-256712 ERROR Error running git: None / log -1 --pretty=format:"%at" 18:31:16-256712 ERROR Error getting local repository version: invalid literal for int() with base 10: "fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'\n'H:/Image Ai/automatic' is owned by:\n\t'S-1-5-32-544'\nbut the current user is:\n\t'S-1-5-21-1640801864-2174363966-3882498 Press any key to continue . . .

Version Platform Description

Version : e491813eb8d17d38477490800e9baf42ddfdc896 Windows 11 Pro Brave browser

Relevant log output

sdnext.log:

2023-07-22 18:29:50,377 | sd | INFO | launch | Starting SD.Next
2023-07-22 18:29:50,377 | sd | INFO | installer | Python 3.10.9 on Windows
2023-07-22 18:29:50,409 | sd | ERROR | installer | Error running git: None / log -1 --pretty=format:"%h %ad"
2023-07-22 18:29:50,409 | sd | DEBUG | installer | Git output: fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'
'H:/Image Ai/automatic' is owned by:
    'S-1-5-32-544'
but the current user is:
    'S-1-5-21-1640801864-2174363966-3882498311-1001'
To add an exception for this directory, call:

    git config --global --add safe.directory 'H:/Image Ai/automatic'
2023-07-22 18:29:50,409 | sd | INFO | installer | Version: fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'
'H:/Image Ai/automatic' is owned by:
    'S-1-5-32-544'
but the current user is:
    'S-1-5-21-1640801864-2174363966-3882498311-1001'
To add an exception for this directory, call:

    git config --global --add safe.directory 'H:/Image Ai/automatic'
2023-07-22 18:29:50,440 | sd | ERROR | installer | Error running git: None / rev-parse HEAD
2023-07-22 18:29:50,440 | sd | DEBUG | installer | Git output: fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'
'H:/Image Ai/automatic' is owned by:
    'S-1-5-32-544'
but the current user is:
    'S-1-5-21-1640801864-2174363966-3882498311-1001'
To add an exception for this directory, call:

    git config --global --add safe.directory 'H:/Image Ai/automatic'
2023-07-22 18:29:50,440 | sd | DEBUG | installer | Setting environment tuning
2023-07-22 18:29:50,440 | sd | DEBUG | installer | Torch overrides: cuda=False rocm=False ipex=False diml=False
2023-07-22 18:29:50,440 | sd | DEBUG | installer | Torch allowed: cuda=True rocm=True ipex=True diml=True
2023-07-22 18:29:50,440 | sd | INFO | installer | nVidia CUDA toolkit detected
2023-07-22 18:29:50,440 | sd | DEBUG | installer | Package version not found: torch
2023-07-22 18:29:50,440 | sd | DEBUG | installer | Package version not found: torchvision
2023-07-22 18:29:50,440 | sd | INFO | installer | Installing package: torch torchvision --index-url https://download.pytorch.org/whl/cu118
2023-07-22 18:29:50,440 | sd | DEBUG | installer | Running pip: install --upgrade torch torchvision --index-url https://download.pytorch.org/whl/cu118
2023-07-22 18:31:16,209 | sd | ERROR | installer | Error running git: None / status --porcelain
2023-07-22 18:31:16,225 | sd | DEBUG | installer | Git output: fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'
'H:/Image Ai/automatic' is owned by:
    'S-1-5-32-544'
but the current user is:
    'S-1-5-21-1640801864-2174363966-3882498311-1001'
To add an exception for this directory, call:

    git config --global --add safe.directory 'H:/Image Ai/automatic'
2023-07-22 18:31:16,225 | sd | WARNING | installer | Modified files: ["tal: detected dubious ownership in repository at 'H:/Image Ai/automatic'", ":/Image Ai/automatic' is owned by:", "S-1-5-32-544'", 't the current user is:', "S-1-5-21-1640801864-2174363966-3882498311-1001'", 'add an exception for this directory, call:', "it config --global --add safe.directory 'H:/Image Ai/automatic'"]
2023-07-22 18:31:16,256 | sd | ERROR | installer | Error running git: None / log -1 --pretty=format:"%at"
2023-07-22 18:31:16,256 | sd | DEBUG | installer | Git output: fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'
'H:/Image Ai/automatic' is owned by:
    'S-1-5-32-544'
but the current user is:
    'S-1-5-21-1640801864-2174363966-3882498311-1001'
To add an exception for this directory, call:

    git config --global --add safe.directory 'H:/Image Ai/automatic'
2023-07-22 18:31:16,256 | sd | ERROR | installer | Error getting local repository version: invalid literal for int() with base 10: "fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'\n'H:/Image Ai/automatic' is owned by:\n\t'S-1-5-32-544'\nbut the current user is:\n\t'S-1-5-21-1640801864-2174363966-3882498
2023-07-22 18:34:37,406 | sd | INFO | launch | Starting SD.Next
2023-07-22 18:34:37,406 | sd | INFO | installer | Python 3.10.9 on Windows
2023-07-22 18:34:37,437 | sd | ERROR | installer | Error running git: None / log -1 --pretty=format:"%h %ad"
2023-07-22 18:34:37,437 | sd | DEBUG | installer | Git output: fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'
'H:/Image Ai/automatic' is owned by:
    'S-1-5-32-544'
but the current user is:
    'S-1-5-21-1640801864-2174363966-3882498311-1001'
To add an exception for this directory, call:

    git config --global --add safe.directory 'H:/Image Ai/automatic'
2023-07-22 18:34:37,437 | sd | INFO | installer | Version: fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'
'H:/Image Ai/automatic' is owned by:
    'S-1-5-32-544'
but the current user is:
    'S-1-5-21-1640801864-2174363966-3882498311-1001'
To add an exception for this directory, call:

    git config --global --add safe.directory 'H:/Image Ai/automatic'
2023-07-22 18:34:37,469 | sd | ERROR | installer | Error running git: None / rev-parse HEAD
2023-07-22 18:34:37,469 | sd | DEBUG | installer | Git output: fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'
'H:/Image Ai/automatic' is owned by:
    'S-1-5-32-544'
but the current user is:
    'S-1-5-21-1640801864-2174363966-3882498311-1001'
To add an exception for this directory, call:

    git config --global --add safe.directory 'H:/Image Ai/automatic'
2023-07-22 18:34:37,831 | sd | INFO | installer | Latest published version: e491813eb8d17d38477490800e9baf42ddfdc896 2023-07-22T20:33:27Z
2023-07-22 18:34:37,831 | sd | DEBUG | installer | Setting environment tuning
2023-07-22 18:34:37,831 | sd | DEBUG | installer | Torch overrides: cuda=False rocm=False ipex=False diml=False
2023-07-22 18:34:37,831 | sd | DEBUG | installer | Torch allowed: cuda=True rocm=True ipex=True diml=True
2023-07-22 18:34:37,831 | sd | INFO | installer | nVidia CUDA toolkit detected
2023-07-22 18:34:37,862 | sd | ERROR | installer | Error running git: None / status --porcelain
2023-07-22 18:34:37,862 | sd | DEBUG | installer | Git output: fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'
'H:/Image Ai/automatic' is owned by:
    'S-1-5-32-544'
but the current user is:
    'S-1-5-21-1640801864-2174363966-3882498311-1001'
To add an exception for this directory, call:

    git config --global --add safe.directory 'H:/Image Ai/automatic'
2023-07-22 18:34:37,862 | sd | WARNING | installer | Modified files: ["tal: detected dubious ownership in repository at 'H:/Image Ai/automatic'", ":/Image Ai/automatic' is owned by:", "S-1-5-32-544'", 't the current user is:', "S-1-5-21-1640801864-2174363966-3882498311-1001'", 'add an exception for this directory, call:', "it config --global --add safe.directory 'H:/Image Ai/automatic'"]
2023-07-22 18:34:37,894 | sd | ERROR | installer | Error running git: None / log -1 --pretty=format:"%at"
2023-07-22 18:34:37,894 | sd | DEBUG | installer | Git output: fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'
'H:/Image Ai/automatic' is owned by:
    'S-1-5-32-544'
but the current user is:
    'S-1-5-21-1640801864-2174363966-3882498311-1001'
To add an exception for this directory, call:

    git config --global --add safe.directory 'H:/Image Ai/automatic'
2023-07-22 18:34:37,894 | sd | ERROR | installer | Error getting local repository version: invalid literal for int() with base 10: "fatal: detected dubious ownership in repository at 'H:/Image Ai/automatic'\n'H:/Image Ai/automatic' is owned by:\n\t'S-1-5-32-544'\nbut the current user is:\n\t'S-1-5-21-1640801864-2174363966-3882498

Acknowledgements

vladmandic commented 1 year ago

this is purely a windows thing, nothing to do with app. app does not assign or change ownership of any files. this has everything to do with capabilities and configuration of your H:\ drive.

closing as this is not an app issue.