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]: installation from A1111 UI error: "PermissionError: [WinError 5] Access is denied" #50

Open
1 task done
froger-me opened this issue Apr 12, 2023 · 3 comments
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@froger-me
Copy link

froger-me commented Apr 12, 2023

Is ths issue about the extension?

  • Yup, this is for sure about the extension

What happened?

Installation from A1111 UI error: PermissionError: [WinError 5] Access is denied: 'G:\\stablediffusion\\tmp\\openOutpaint-webUI-extension' -> 'G:\\stablediffusion\\extensions\\openOutpaint-webUI-extension'

Steps to reproduce the problem

Given install path in G:\\stablediffusion\\

  1. Go to the list of available extensions
  2. Install openOutpaint extension
  3. See the error
  4. See G:\\stablediffusion\\tmp\\openOutpaint-webUI-extension is created, and only contains a .git folder
  5. Try install again
  6. See error message saying G:\\stablediffusion\\tmp\\openOutpaint-webUI-extension already exists and is not empty

=> deleting G:\\stablediffusion\\tmp\\openOutpaint-webUI-extension and trying again yields the same result
=> permissions on directories G:\\stablediffusion\\tmp\\openOutpaint-webUI-extension and G:\\stablediffusion\\extensions\\openOutpaint-webUI-extension as open as it gets
=> webui-user.bat started as user and as administrator yields the same result

What should have happened?

Extension should be installed

Commit where the problem happens

unknown, cannot install

What platforms do you use to access openOutpaint?

Windows

What browsers do you use to access the UI ?

Mozilla Firefox

Browser Extensions/Addons

Fresh install

AUTOMATIC1111 webUI Commandline Arguments

--xformers

Additional information

Console trace

Error completing request
Arguments: ('https://github.com/zero01101/openOutpaint-webUI-extension.git', ['ads', 'localization', 'installed'], 0, 'outpa') {}
Traceback (most recent call last):
  File "G:\stablediffusion\modules\call_queue.py", line 56, in f
    res = list(func(*args, **kwargs))
  File "G:\stablediffusion\modules\ui_extensions.py", line 179, in install_extension_from_index
    ext_table, message = install_extension_from_url(None, url)
  File "G:\stablediffusion\modules\ui_extensions.py", line 167, in install_extension_from_url
    raise err
  File "G:\stablediffusion\modules\ui_extensions.py", line 159, in install_extension_from_url
    os.rename(tmpdir, target_dir)
PermissionError: [WinError 5] Access is denied: 'G:\\stablediffusion\\tmp\\openOutpaint-webUI-extension' -> 'G:\\stablediffusion\\extensions\\openOutpaint-webUI-extension'
@froger-me froger-me added the bug Something isn't working label Apr 12, 2023
@zero01101
Copy link
Owner

terribly sorry for the delay; i honestly don't quite know what to tell you on this one, as it's almost certainly to do with a local permission issue and i haven't been able to reproduce it on windows (nor linux but you're pretty obviously using windows...) - a cursory search suggests it's a python/pip issue... do any other extensions do that?

@NutchapolSal
Copy link

i have also encounted the same issue on v1.1.0 of A1111 webui on Windows 10, same error logs (but line numbers different).

a workaround i've found is to directly clone it yourself. open git bash (or any terminal with git) in the extensions folder then run git clone --recurse-submodules https://github.com/zero01101/openOutpaint-webUI-extension. do some UI reloads or something to have it show in extensions list and then Apply and Restart UI.

speculation: maybe it's an app using/doing something inside the folder, so Windows denies the folder move?

@HeathHimself
Copy link

HeathHimself commented May 13, 2023

I've been running into this myself for the last couple of days after buying a new external hard drive and reformatting it to NTFS and trying to install a fresh clone of everything into it.

... do any other extensions do that?

Yes, a few. Off the top of my head specifically, Dreambooth. Edit: Also Controlnet. It would appear that anything that requires the use of the tmp folder while installing ends up being smacked with ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied

And while searches do seem to point the finger at python, or pip, or drive permissions in general, I can tell you having spent the past two days nearly nonstop working on this, exhausting all options where as far as setting permissions and using TAKEOWN strings at command lines are concerned ... literally everything the internet says to do dealing with this particular problem, to absolutely no avail. It's like no matter what I do, nothing 'takes', ya know?

Thanks to NutchapolSal for the work around idea though. I'll try that next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants