StableGen icon indicating copy to clipboard operation
StableGen copied to clipboard

"[Errno 11001] getaddrinfo failed" on Generate with ComfyUI in WSL

Open TerminalCalm opened this issue 1 year ago • 27 comments

Models set up, everything installed, but for some reason generate is failing with that error.

TerminalCalm avatar May 19 '25 15:05 TerminalCalm

Could you try it with the new release I just uploaded? Probably won't solve it but at least we could get some more info on it.

sakalond avatar May 19 '25 15:05 sakalond

Done.

Could not resolve ComfyUI server address: 'http://127.0.0.1:8671/'. Please check the hostname/IP and port in preferences and your network settings.

Straightforward. Server is up, I'm viewing it in Chrome. This is Blender 4.4.3, Allow Online Access checked, etc.

TerminalCalm avatar May 19 '25 15:05 TerminalCalm

That seems like the thing I was talking about on Reddit. I probably wasn't clear enough on it.

You need to put the IP in the Server Address field in preferences without the "http://". So in your case, you should put 127.0.0.1:8671 there, if that's where your ComfyUI is running at.

sakalond avatar May 19 '25 15:05 sakalond

Thanks, I must have missed that. Though updating to that ends up with a 400 error Bad Request.

Also, something I discovered while trying to check this out -- changing Blender tabs (Modeling -> Sculpting/UV Editing/whatever, then back to Modeling) makes the StableGen tool tab disappear until reload.

Checking Comfy, this is happening during the attempt:

Failed to validate prompt for output 25:

  • LoadImage 200:

    • Custom validation failed for node: image - Invalid image file: E:\Art\Stablegen\Scene\2025-05-19T11-17-28\controlnet\depth\depth_map00001.png

Output will be ignored

TerminalCalm avatar May 19 '25 15:05 TerminalCalm

Well, at least that's a move in the right direction. With 400 error, you will generally want to check the ComfyUI console for further details.

As for the second part, StableGen tab is intentionally only in the Layout section.

sakalond avatar May 19 '25 15:05 sakalond

Just updated with the Comfy output. And alright, but what I mean is that that the tab disappears altogether once you return to the original screen.

TerminalCalm avatar May 19 '25 15:05 TerminalCalm

Can you manually check if the file at E:\Art\Stablegen\Scene\2025-05-19T11-17-28\controlnet\depth\depth_map00001.png is present?

sakalond avatar May 19 '25 15:05 sakalond

It is, I see it there. Simple little depth mapped default cube.

TerminalCalm avatar May 19 '25 15:05 TerminalCalm

but what I mean is that that the tab disappears altogether once you return to the original screen.

I am not able to reproduce this. For me, it is always present when in Layout.

What I would suggest for getting more info on the LoadImage error is to load ComfyUI in a browser and manually load the prompt.json file, which should be present in E:\Art\Stablegen\Scene\2025-05-19T11-17-28\. Then try to run the workflow within the browser. Even though the input images (for ControlNet or otherwise) won't show initially, it should proceed and generate the image. If there is a problem, you might get another error, but it might be more informative there. Or you might even get an error upon loading the workflow which could also help.

sakalond avatar May 19 '25 15:05 sakalond

What I'm noticing when I load the workflow in is that it initially created an unconnected duplicate of the load image node, and the Load Image (depth) node has the correct file path, but the image itself is not actually loaded into the node.

TerminalCalm avatar May 19 '25 15:05 TerminalCalm

Unconnected load image node is normal. Can you try to run it within the browser?

sakalond avatar May 19 '25 15:05 sakalond

That's what I'm doing. The connected node has the image path in it, but not loaded in the node initially. Attempting to run it gives the same error. Once I actually load the image into that node, everything seems to work fine.

SS included to flesh out what I mean here.

Image

TerminalCalm avatar May 19 '25 15:05 TerminalCalm

I see.

Can you first extend the load image node so the full path is visible, then take a reference screenshot, and then try to manually point it to the same image via the choose file to upload button and then compare if the paths look the same?

sakalond avatar May 19 '25 16:05 sakalond

Sort of. I can't copy it directly from the node, but I can just copy the "invalid" address from the comfyui logs and paste that in. If I do that, it works and loads.

Image

TerminalCalm avatar May 19 '25 16:05 TerminalCalm

Can you share the "broken" prompt.json file?

sakalond avatar May 19 '25 16:05 sakalond

prompt.json

TerminalCalm avatar May 19 '25 16:05 TerminalCalm

That's puzzling. I tried to replicate your setup and made the same path. The json looks exactly the same, except for timestamp of course.

Is your ComfyUI up to date?

sakalond avatar May 19 '25 16:05 sakalond

Just noticed this in the console output:

view:1

       GET http://127.0.0.1:8671/api/view?type=input&filename=depth_map00001.png&subfolder=E%3A%2FArt%2FStablegen%2FScene%2F2025-05-19T10-33-15%2Fcontrolnet%2Fdepth&rand=0.24193900861708262 404 (Not Found)

TerminalCalm avatar May 19 '25 16:05 TerminalCalm

I do have the latest comfyui. But I also have a lot of nodes set up -- I'll try a fresh comfy install just for this.

But thanks for the assist, this looks supremely promising.

TerminalCalm avatar May 19 '25 16:05 TerminalCalm

I guess it must be something you modified with your install. A clean install is definitely worth a try.

sakalond avatar May 19 '25 16:05 sakalond