"TypeError: Failed to fetch" on run_gpu
I have been using flux dev fp8 in a month but one day i start comfyui and running flux text to image When I start Queue Prompt, it appears a red "Reconnecting" message. When it stops and I start Queue again, the red message "TypeError: Failed to fetch" appears. it only gave this error on flux model, I used flux dev fp8 model and my system config is gpu RTX 4060 16gb, AMD Ryzen 5 5600, 16 gb ram.
How to solve?? Thanks
There is not enough RAM (minimum 64 GB recommended). It is recommended to include the swap file.
on windows, increase your swap space to 90 GB. set it manually, dont expect Windows to work it out on its own you will need a relatively fast nvme . this way it works on my 13700k 32 GB RAM PC
on windows, increase your swap space to 90 GB. set it manually, dont expect Windows to work it out on its own you will need a relatively fast nvme . this way it works on my 13700k 32 GB RAM PC
非常好的解决办法
on windows, increase your swap space to 90 GB. set it manually, dont expect Windows to work it out on its own you will need a relatively fast nvme . this way it works on my 13700k 32 GB RAM PC
this actually works, thanks
on windows, increase your swap space to 90 GB. set it manually, dont expect Windows to work it out on its own you will need a relatively fast nvme . this way it works on my 13700k 32 GB RAM PC
This solution fixed issue on my end, thanks a lot
I have sa the issue. How can i allocate 90 GB space. Help pls
🚨 ANTES DE TUDO (IMPORTANTE)
Se tiver:
Python 3.14
Python 3.12
Python 3.11
👉 DESINSTALE TODOS
Como desinstalar:
Win + R
Digite:
appwiz.cpl
Remova todas as versões de Python.
Reinicie o PC.
🟢 PASSO 1 — INSTALAR PYTHON CORRETO
Baixe:
👉 Python 3.10.19 (64-bit)
Durante a instalação:
✅ Marque Add Python to PATH Clique em Install Now
Depois teste:
python --version
Tem que aparecer algo como:
Python 3.10.x
Se aparecer isso → OK ✅
🟢 PASSO 2 — INSTALAR GIT (SE NÃO TIVER)
Baixe e instale o Git.
Depois teste no CMD:
git --version
Se aparecer versão → OK ✅
🟢 PASSO 3 — BAIXAR O COMFYUI
Escolha uma pasta (exemplo: Documentos)
No CMD:
cd C:\Users\SEU_USUARIO\Documents
Depois:
git clone https://github.com/comfyanonymous/ComfyUI.git
Espere terminar.
Depois entre na pasta:
cd ComfyUI
🟢 PASSO 4 — INSTALAR PYTORCH CERTO (CUDA 11.8)
⚠️ Esse passo é CRÍTICO
Se a placa for mais antiga (ex: GTX 960, 1060, 1660 etc):
Use cu118
Digite:
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
Espere terminar (vai baixar ~2.7GB).
🟢 PASSO 5 — INSTALAR DEPENDÊNCIAS DO PROJETO
Ainda dentro da pasta ComfyUI:
pip install -r requirements.txt
Espere terminar.
🟢 PASSO 6 — RODAR O COMFYUI
Ainda na pasta:
python main.py
Se deu certo vai aparecer:
Device: cuda:0 NVIDIA ... Starting server To see the GUI go to: http://127.0.0.1:8188
Abra no navegador:
http://127.0.0.1:8188
PRONTO 🔥
🟡 SE DER ERRO CUDA
Atualize os drivers da NVIDIA.
🔵 PARA ATUALIZAR NO FUTURO
Entre na pasta ComfyUI:
git pull pip install -r requirements.txt
📌 RESUMO DA RECEITA CERTA
✔ Python 3.10.19 ✔ Git instalado ✔ torch cu118 ✔ requirements instalados ✔ rodar com python main.py