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

[Extension]: what's wrong with the controlnet when i run it #1916

Closed
1 task done
min-star opened this issue Aug 2, 2023 · 12 comments
Closed
1 task done

[Extension]: what's wrong with the controlnet when i run it #1916

min-star opened this issue Aug 2, 2023 · 12 comments
Labels
extension Extension is not working correctly

Comments

@min-star
Copy link

min-star commented Aug 2, 2023

Issue Description

Please fill this form with as much information as possible

Traceback (most recent call last):
File "/home/meta/msf/sd/automatic/venv/lib/python3.9/site-packages/gradio/routes.py", line 422, in run_predict
output = await app.get_blocks().process_api(
File "/home/meta/msf/sd/automatic/venv/lib/python3.9/site-packages/gradio/blocks.py", line 1326, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "/home/meta/msf/sd/automatic/venv/lib/python3.9/site-packages/gradio/blocks.py", line 1260, in postprocess_data
prediction_value = block.postprocess(prediction_value)
File "/home/meta/msf/sd/automatic/venv/lib/python3.9/site-packages/gradio/components.py", line 4461, in postprocess
file = self.pil_to_temp_file(img, dir=self.DEFAULT_TEMP_DIR)
File "/home/meta/msf/sd/automatic/modules/ui_tempdir.py", line 61, in pil_to_temp_file
file_obj = tempfile.NamedTemporaryFile(delete=False, suffix=".png", dir=dir)
File "/home/meta/miniconda3/lib/python3.9/tempfile.py", line 545, in NamedTemporaryFile
(fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
File "/home/meta/miniconda3/lib/python3.9/tempfile.py", line 255, in _mkstemp_inner
fd = _os.open(file, flags, 0o600)
PermissionError: [Errno 13] Permission denied: '/tmp/gradio/tmpzo5r9g_k.png'

Version Platform Description

ubuntu22.04
4090

URL link of the extension

https://github.com/Mikubill/sd-webui-controlnet

URL link of the issue reported in the extension repository

No response

Acknowledgements

  • I have read the above and searched for existing issues
@min-star min-star added the extension Extension is not working correctly label Aug 2, 2023
@Aptronymist
Copy link
Collaborator

PermissionError: [Errno 13] Permission denied: '/tmp/gradio/tmpzo5r9g_k.png'

To me this is pretty obviously a, as it states, permissions issue, are you running it as the correct user that has write permissions on the /tmp folder?

@min-star
Copy link
Author

min-star commented Aug 2, 2023 via email

@vladmandic
Copy link
Owner

wait, you have ubuntu and did not have /tmp until you created it? i'm not sure if any linux can work properly without /tmp and /tmp cannot be just created as normal folders, it has special permissions assigned to it.

@min-star
Copy link
Author

min-star commented Aug 2, 2023 via email

@vladmandic
Copy link
Owner

i've never seen a linux system without /tmp

@min-star
Copy link
Author

min-star commented Aug 2, 2023 via email

@vladmandic
Copy link
Owner

it not "not found", its actually Permission denied: '/tmp/gradio/tmpzo5r9g_k.png' which happens while trying to write it. and /tmp has special flag on it that its always writeable. linux without a writeable /tmp cannot work reliably, regardless of sdnext or not.

@min-star
Copy link
Author

min-star commented Aug 2, 2023 via email

@vladmandic
Copy link
Owner

any updates here?

@vladmandic
Copy link
Owner

closing due to no updates.

@JDihlmann
Copy link

I encountered the same issue recently although it should be solved here AUTOMATIC1111/stable-diffusion-webui#12717

The problem for me was that another user on the machine also run the code which created a gradio directory that only this user could access. So if you encounter this issue, please also check the permission if a /tmp/gradio directory already exists.

@xddun
Copy link

xddun commented Jul 3, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension Extension is not working correctly
Projects
None yet
Development

No branches or pull requests

5 participants