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] comfyui address does not include port #152

Closed
thejohnd0e opened this issue Aug 25, 2023 · 12 comments · Fixed by #158
Closed

[BUG] comfyui address does not include port #152

thejohnd0e opened this issue Aug 25, 2023 · 12 comments · Fixed by #158

Comments

@thejohnd0e
Copy link

I can't understand why the extension doesn't work, I only see a white screen.

[ComfyUI] [sd-webui-comfyui] Setting up IPC...
[ComfyUI] [sd-webui-comfyui] Using inter-process communication strategy: Shared memory
[ComfyUI] [sd-webui-comfyui] Started callback listeners for process comfyui
[ComfyUI] [sd-webui-comfyui] Patching ComfyUI...
Applying attention optimization: sdp... done.
Model loaded in 4.0s (load weights from disk: 0.6s, create model: 0.6s, apply weights to model: 1.0s, apply half(): 0.8s, move model to device: 0.9s).

image

@yujianvip
Copy link

I also made the same mistake, the correct calling address should be http://127.0.0.1:8188 But what Stable diffusion calls is http://127.0.0.1 , which has caused the inability to access, and I have not yet found a solution

@ljleb
Copy link
Contributor

ljleb commented Aug 27, 2023

This does not look right. Did you set a custom address or this is by default? did you change any of the configuration?

@ljleb ljleb changed the title doesn't work [BUG] comfyui address does not include port Aug 27, 2023
@DennyCai
Copy link

Traceback (most recent call last):
  File "sd-webui-aki\sd-webui-aki-v4\extensions\sd-webui-comfyui\lib_comfyui\comfyui\pre_main.py", line 7, in <module>
    from lib_comfyui import (
ModuleNotFoundError: No module named 'lib_comfyui'

Only see a white screen too.But I have an Error.

@ljleb
Copy link
Contributor

ljleb commented Aug 31, 2023

@DennyCai this is caused by PYTHONPATH not setup properly, or something like that. I hope to fix this different issue in #155.

For the missing port issue, I suspect this is because the comfyui client address is manually specified in the settings or by cli argument, and does not include a port.

@klossm
Copy link

klossm commented Sep 1, 2023

I've found that closing the tab page and re-entering http://127.0.0.1:7860 displays it properly

@ljleb
Copy link
Contributor

ljleb commented Sep 1, 2023

Sometimes the webui finishes loading before the comfyui server. That's what the reload comfyui interface button is for in the txt2img and img2img dropdown.

@ljleb
Copy link
Contributor

ljleb commented Sep 4, 2023

I've made it so that the client url in the settings is canonicalized. Any missing info like port or protocol is added back, it should resolve the confusion created by the recent change of behavior.

@thejohnd0e
Copy link
Author

It still doesn't work for me, and I don't know what I'm doing wrong.

Screenshot - 2023-09-05 15 08 08 Screenshot - 2023-09-05 15 06 53 Screenshot - 2023-09-05 15 07 08

@ljleb
Copy link
Contributor

ljleb commented Sep 5, 2023

I'm missing context:

  • how do you start the webui, is this on a remote server or locally?
  • which version of the webui, the extension and comfyui are you running on, are all 3 on the latest version?
  • which operating system are you running on?

From the short section of the logs you have provided, it looks like comfyui does not finish starting for some reason. Maybe the situation you are running into has to do with this.

@thejohnd0e
Copy link
Author

thejohnd0e commented Sep 6, 2023

I tried a new clean install but I got the same results

Screenshot - 2023-09-06 10 56 28 Screenshot - 2023-09-06 10 53 38 Screenshot - 2023-09-06 10 48 08 Screenshot - 2023-09-06 10 48 00 Screenshot - 2023-09-06 10 37 19 Screenshot - 2023-09-06 11 05 45 Screenshot - 2023-09-06 11 08 55

@ljleb
Copy link
Contributor

ljleb commented Sep 6, 2023

It looks like the comfyui subprocess is freezing during the patch phase on your setup. This is not caused by a port missing in the configuration.

Does it help in any way if you chose "File System" instead of "Default" for the interprocess communication strategy?

@thejohnd0e
Copy link
Author

It looks like the comfyui subprocess is freezing during the patch phase on your setup. This is not caused by a port missing in the configuration.

Does it help in any way if you chose "File System" instead of "Default" for the interprocess communication strategy?

I've done that, but the error is still there.

Screenshot - 2023-09-07 07 32 13 Screenshot - 2023-09-07 07 34 42 Screenshot - 2023-09-07 07 37 57

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

Successfully merging a pull request may close this issue.

5 participants