Skip to content

Commit 3d43460

Browse files
authored
Add the hyperlinks to the flowchart. (#277)
1 parent 4ff4989 commit 3d43460

File tree

2 files changed

+125
-147
lines changed

2 files changed

+125
-147
lines changed

troubleshooting/custom-node-issues.mdx

Lines changed: 65 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,71 @@ Here is the overall approach for troubleshooting custom node issues:
1010

1111
```mermaid
1212
flowchart TD
13-
A[Issue Encountered] --> B{Does the issue disappear after disabling all custom nodes?}
13+
A[Issue Encountered] --> B{Does the issue disappear after <a href="#how-to-disable-all-custom-nodes%3F">disabling all custom nodes</a>?}
1414
B -- Yes --> C[Issue caused by custom nodes]
1515
B -- No --> D[Issue not caused by custom nodes, refer to other troubleshooting docs]
16-
C --> E{Check frontend extensions first?}
17-
E -- Yes --> F[Troubleshoot in ComfyUI frontend]
18-
E -- No --> G[Use general binary search method]
16+
C --> E{<a href="#1-troubleshooting-the-custom-nodes’-frontend-extensions">Check frontend extensions first</a>?}
17+
E -- Yes --> F[<a href="#1-troubleshooting-the-custom-nodes’-frontend-extensions">Troubleshoot in ComfyUI frontend</a><br/><li>Only need reload the frontend</li>]
18+
E -- No --> G[<a href="#2-general-custom-node-troubleshooting">Use general binary search method</a><li>Need to restart ComfyUI multiple times</li>]
1919
F --> H[Use binary search to locate problematic node]
2020
G --> H
21-
H --> I[Fix, replace, report or remove problematic node]
21+
H --> I[<a href="#how-to-fix-the-issue">Fix, replace, report or remove problematic node</a>]
2222
I --> J[Issue solved]
2323
```
2424

25-
## How to determine if custom nodes are causing the issue?
25+
## How to disable all custom nodes?
2626

27-
If the problem disappears after disabling all custom nodes, we can determine that the issue is caused by custom nodes.
27+
<Tabs>
28+
<Tab title="Desktop Users">
29+
Start ComfyUI Desktop with custom nodes disabled from the settings menu
30+
![Settings menu - Disable custom nodes](/images/troubleshooting/desktop-diable-custom-node.jpg)
31+
or run the server manually:
32+
```bash
33+
cd path/to/your/comfyui
34+
python main.py --disable-all-custom-nodes
35+
```
36+
</Tab>
37+
<Tab title="Manual Install">
38+
```bash
39+
cd ComfyUI
40+
python main.py --disable-all-custom-nodes
41+
```
42+
</Tab>
43+
<Tab title="Portable">
44+
<Tabs>
45+
<Tab title="Modify `.bat` file">
46+
Open the folder where the portable version is located, and find the `run_nvidia_gpu.bat` or `run_cpu.bat` file
47+
![Modify .bat file](/images/troubleshooting/Portable-disable-custom-nodes.jpg)
48+
1. Copy `run_nvidia_gpu.bat` or `run_cpu.bat` file and rename it to `run_nvidia_gpu_disable_custom_nodes.bat`
49+
2. Open the copied file with Notepad
50+
3. Add the `--disable-all-custom-nodes` parameter to the file, or copy the parameters below into a `.txt` file and rename the file to `run_nvidia_gpu_disable_custom_nodes.bat`
51+
```bash
52+
.\python_embeded\python.exe -s ComfyUI\main.py --disable-all-custom-nodes --windows-standalone-build
53+
pause
54+
```
55+
4. Save the file and close it
56+
5. Double-click the file to run it. If everything is normal, you should see ComfyUI start and custom nodes disabled
57+
</Tab>
58+
<Tab title="Through Command Line">
59+
![ComfyUI troubleshooting](/images/troubleshooting/portable-disable-custom-nodes-cml-1.jpg)
60+
1. Enter the folder where the portable version is located
61+
2. Open the terminal by right-clicking the menu → Open terminal
62+
![ComfyUI troubleshooting](/images/troubleshooting/portable-disable-custom-nodes-cml-2.jpg)
63+
3. Ensure that the folder name is the current directory of the portable version
64+
4. Enter the following command to start ComfyUI through the portable python and disable custom nodes
65+
```
66+
.\python_embeded\python.exe -s ComfyUI\main.py --disable-all-custom-nodes
67+
```
68+
</Tab>
69+
</Tabs>
70+
</Tab>
71+
</Tabs>
72+
73+
**Results:**
74+
-**Issue disappears**: A custom node is causing the problem → Continue to Step 2
75+
-**Issue persists**: Not a custom node issue → [Report the issue](#reporting-issues)
2876

29-
### Binary search troubleshooting approach
77+
## What is Binary Search?
3078

3179
In this document, we will introduce the binary search approach for troubleshooting custom node issues, which involves checking half of the custom nodes at a time until we locate the problematic node.
3280

@@ -50,7 +98,7 @@ flowchart TD
5098
K --> B
5199
L --> M[End]
52100
```
53-
## Different Troubleshooting Methods for Different Types of Custom Node Issues
101+
## Two Troubleshooting Methods
54102

55103
In this document, we categorize custom nodes into two types for troubleshooting:
56104

@@ -61,8 +109,8 @@ In this document, we categorize custom nodes into two types for troubleshooting:
61109
Let's first understand the potential issues and causes for different types of custom nodes:
62110

63111
<Tabs>
64-
<Tab title="Issues with Frontend Extension Custom Nodes">
65-
For custom nodes, we need to prioritize troubleshooting those with frontend extensions, as they cause the most issues. Their main conflicts arise from incompatibilities with ComfyUI frontend version updates.
112+
<Tab title="Custom Nodes with Frontend Extensions">
113+
For custom nodes, we can prioritize troubleshooting those with frontend extensions, as they cause the most issues. Their main conflicts arise from incompatibilities with ComfyUI frontend version updates.
66114

67115
Common issues include:
68116
- Workflows not executing
@@ -80,8 +128,8 @@ Let's first understand the potential issues and causes for different types of cu
80128
- Authors stopping maintenance, leading to incompatibility between custom node extensions and the ComfyUI frontend
81129

82130
</Tab>
83-
<Tab title="Regular Custom Node Issues">
84-
If the problem isn't caused by frontend extensions, issues often relate to dependencies. Common problems include:
131+
<Tab title="Regular Custom Nodes">
132+
If the problem isn't caused by custom nodes' frontend extensions, issues often relate to dependencies. Common problems include:
85133
- "Failed to import" errors in console/logs
86134
- Missing nodes still showing as missing after installation and restart
87135
- ComfyUI crashes or fails to start
@@ -100,10 +148,10 @@ Let's first understand the potential issues and causes for different types of cu
100148

101149
Among these two different types of custom node issues, conflicts between custom node frontend extensions and ComfyUI are more common. We'll prioritize troubleshooting these nodes first. Here's the overall troubleshooting approach:
102150

103-
### 1. Troubleshooting Custom Nodes with Frontend Extensions
151+
### 1. Troubleshooting the Custom Nodes' Frontend Extensions
104152

105153
<Steps>
106-
<Step title="Disable All Plugin Frontend Extensions">
154+
<Step title="Disable All Third-Party Frontend Extensions">
107155
![Disable all plugin frontend extensions](/images/troubleshooting/disable_3rd_party.jpg)
108156
After starting ComfyUI, find the `Extensions` menu in settings and follow the steps shown in the image to disable all third-party extensions
109157
<Tip>
@@ -127,71 +175,11 @@ Among these two different types of custom node issues, conflicts between custom
127175

128176
Using this method, you don't need to restart ComfyUI multiple times - just reload ComfyUI after enabling/disabling custom node frontend extensions. Plus, your troubleshooting scope is limited to nodes with frontend extensions, which greatly narrows down the search range.
129177

130-
### 2. General Custom Node Troubleshooting Approach
178+
### 2. General Custom Node Troubleshooting
131179

132180

133181
<Steps>
134-
<Step title="Test with all custom nodes disabled">
135-
<Tabs>
136-
<Tab title="Desktop Users">
137-
Start ComfyUI Desktop with custom nodes disabled from the settings menu
138-
139-
![Settings menu - Disable custom nodes](/images/troubleshooting/desktop-diable-custom-node.jpg)
140-
141-
or run the server manually:
142-
143-
```bash
144-
cd path/to/your/comfyui
145-
python main.py --disable-all-custom-nodes
146-
```
147-
</Tab>
148-
<Tab title="Manual Install">
149-
```bash
150-
cd ComfyUI
151-
python main.py --disable-all-custom-nodes
152-
```
153-
</Tab>
154-
<Tab title="Portable">
155-
<Tabs>
156-
<Tab title="Modify `.bat` file">
157-
Open the folder where the portable version is located, and find the `run_nvidia_gpu.bat` or `run_cpu.bat` file
158-
159-
![Modify .bat file](/images/troubleshooting/Portable-disable-custom-nodes.jpg)
160-
1. Copy `run_nvidia_gpu.bat` or `run_cpu.bat` file and rename it to `run_nvidia_gpu_disable_custom_nodes.bat`
161-
2. Open the copied file with Notepad
162-
3. Add the `--disable-all-custom-nodes` parameter to the file, or copy the parameters below into a `.txt` file and rename the file to `run_nvidia_gpu_disable_custom_nodes.bat`
163-
164-
```bash
165-
.\python_embeded\python.exe -s ComfyUI\main.py --disable-all-custom-nodes --windows-standalone-build
166-
pause
167-
```
168-
4. Save the file and close it
169-
5. Double-click the file to run it. If everything is normal, you should see ComfyUI start and custom nodes disabled
170-
</Tab>
171-
<Tab title="Through Command Line">
172-
![ComfyUI troubleshooting](/images/troubleshooting/portable-disable-custom-nodes-cml-1.jpg)
173-
1. Enter the folder where the portable version is located
174-
2. Open the terminal by right-clicking the menu → Open terminal
175-
176-
![ComfyUI troubleshooting](/images/troubleshooting/portable-disable-custom-nodes-cml-2.jpg)
177-
178-
3. Ensure that the folder name is the current directory of the portable version
179-
4. Enter the following command to start ComfyUI through the portable python and disable custom nodes
180-
```
181-
.\python_embeded\python.exe -s ComfyUI\main.py --disable-all-custom-nodes
182-
```
183-
</Tab>
184-
</Tabs>
185-
</Tab>
186-
187-
</Tabs>
188-
189-
**Results:**
190-
-**Issue disappears**: A custom node is causing the problem → Continue to Step 2
191-
-**Issue persists**: Not a custom node issue → [Report the issue](#reporting-issues)
192-
193-
</Step>
194-
<Step title="Use Binary Search to Locate Custom Nodes">
182+
<Step title="Use Binary Search to Locate Custom Nodes">
195183
For the binary search localization method, in addition to manual search, we also have automated binary search using comfy-cli, as detailed below:
196184

197185
<Tabs>

zh-CN/troubleshooting/custom-node-issues.mdx

Lines changed: 60 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,72 @@ sidebarTitle: "自定义节点问题"
99

1010
```mermaid
1111
flowchart TD
12-
A[遇到问题] --> B{禁用所有自定义节点后问题是否消失?}
12+
A[遇到问题] --> B{<a href="#如何禁用所有的自定义节点?">禁用所有自定义节点后问题是否消失?</a>}
1313
B -- 是 --> C[问题由自定义节点引起]
14-
B -- 否 --> D[问题不是自定义节点引起,参考其他排查文档]
14+
B -- 否 --> D[问题不是自定义节点引起,参考其他<a href="/zh-CN/troubleshooting/overview">排查文档</a>]
1515
C --> E{是否先排查前端扩展?}
16-
E -- 是 --> F[在ComfyUI前端进行排查]
17-
E -- 否 --> G[使用通用的二分法进行排查]
16+
E -- 是 --> F[在<a href="#1-排查自定义节点的前端扩展">ComfyUI前端</a>进行排查<br/><li>仅需要重载前端</li>]
17+
E -- 否 --> G[使用<a href="#2-通用的自定义节点排查方法">通用的二分法</a>进行排查<br/><li>需要多次重启 ComfyUI</li>]
1818
F --> H[使用二分法定位有问题的节点]
1919
G --> H
20-
H --> I[修复、替换、报告或移除有问题的节点]
20+
H --> I[<a href="#修复自定义节点问题">修复、替换、报告或移除有问题的节点</a>]
2121
I --> J[问题解决]
2222
```
2323

24-
## 如何确定是不是自定义节点导致的问题
24+
## 如何禁用所有的自定义节点
2525

26-
如果禁用所有自定义节点后问题消失,那么我们可以定位这个问题是由自定义节点引起的。
26+
<Tabs>
27+
<Tab title="桌面版">
28+
从设置菜单中启动禁用自定义节点的 ComfyUI 桌面版
29+
![设置菜单-禁用自定义节点](/images/zh/troubleshooting/desktop-diable-custom-node.jpg)
30+
或手动运行服务器:
31+
```bash
32+
cd path/to/your/comfyui
33+
python main.py --disable-all-custom-nodes
34+
```
35+
</Tab>
36+
<Tab title="手动安装">
37+
```bash
38+
cd ComfyUI
39+
python main.py --disable-all-custom-nodes
40+
```
41+
</Tab>
42+
<Tab title="便携版">
43+
<Tabs>
44+
<Tab title="修改 `.bat` 文件(推荐)">
45+
打开便携版所在的文件夹,找到 `run_nvidia_gpu.bat` 或者 `run_cpu.bat` 文件
46+
![修改 .bat 文件](/images/troubleshooting/Portable-disable-custom-nodes.jpg)
47+
1. 复制 `run_nvidia_gpu.bat` 或者 `run_cpu.bat` 文件并重命名为 `run_nvidia_gpu_disable_custom_nodes.bat`
48+
2. 使用记事本打开复制后的文件
49+
3. 在文件中添加 `--disable-all-custom-nodes` 参数,或者复制下面的参数保存到 txt 文件中后将文件后缀名改为 `.bat`
50+
```bash
51+
.\python_embeded\python.exe -s ComfyUI\main.py --disable-all-custom-nodes --windows-standalone-build
52+
pause
53+
```
54+
4. 保存文件并关闭
55+
5. 双击运行文件,如果一切正常,你应该会看到 ComfyUI 启动,并且自定义节点被禁用
56+
</Tab>
57+
<Tab title="通过命令行">
58+
![ComfyUI troubleshooting](/images/troubleshooting/portable-disable-custom-nodes-cml-1.jpg)
59+
1. 进入便携版所在的文件夹
60+
2. 通过右键菜单 → 打开终端 来打开命令行
61+
62+
![ComfyUI troubleshooting](/images/troubleshooting/portable-disable-custom-nodes-cml-2.jpg)
63+
3. 确保在命令行中文件夹名称是当前便携版所在的文件目录
64+
4. 输入以下命令,来通过便携版的 python 来启动 ComfyUI 并禁用自定义节点
65+
```
66+
.\python_embeded\python.exe -s ComfyUI\main.py --disable-all-custom-nodes
67+
```
68+
</Tab>
69+
</Tabs>
70+
</Tab>
71+
</Tabs>
72+
**结果:**
73+
-**问题消失**:自定义节点导致问题 → 继续步骤 2
74+
-**问题仍然存在**:不是自定义节点问题 → [报告问题](#报告问题)
2775

28-
### 二分法排查思路
76+
77+
## 二分法
2978

3079
在本篇中我们将会介绍使用二分搜索来进行自定义节点问题排查的思路,也就是一次排查一半的自定义节点,直到定位到导致问题的自定义节点
3180

@@ -50,7 +99,7 @@ flowchart TD
5099
L --> M[结束]
51100
```
52101

53-
## 根据不同的自定义节点问题类型使用不同的排查方法
102+
## 两种排查方法
54103

55104
在本篇文档中,我们将排查的自定义节点分为两类
56105

@@ -61,7 +110,7 @@ flowchart TD
61110
首先让我们先了解不同类型的自定义节点可能导致的问题和原因
62111

63112
<Tabs>
64-
<Tab title="包含前端扩展的自定义节点问题">
113+
<Tab title="自定义节点前端扩展导致的问题">
65114
对于自定义节点我们又特别需要对包含前端扩展的自定义节点进行优先排查,这类节点导致的问题是最多的, 他们主要的冲突是与 ComfyUI 前端版本更新产生的冲突。
66115

67116
常见的一些问题有:
@@ -100,7 +149,7 @@ flowchart TD
100149

101150
这两种上面两种不同的自定义节点问题里,自定义节点前端扩展和 ComfyUI 的冲突较为常见,我们会优先排查这类节点,后续的整体的问题排查思路如下
102151

103-
### 1.排查带有前端扩展的自定义节点
152+
### 1.排查自定义节点的前端扩展
104153

105154
<Steps>
106155
<Step title="禁用所有插件的前端扩展">
@@ -127,65 +176,6 @@ flowchart TD
127176
### 2. 通用的自定义节点排查方法
128177

129178
<Steps>
130-
<Step title="在禁用所有自定义节点的情况下运行 ComfyUI">
131-
<Tabs>
132-
<Tab title="桌面版">
133-
从设置菜单中启动禁用自定义节点的 ComfyUI 桌面版
134-
135-
![设置菜单-禁用自定义节点](/images/zh/troubleshooting/desktop-diable-custom-node.jpg)
136-
137-
或手动运行服务器:
138-
139-
```bash
140-
cd path/to/your/comfyui
141-
python main.py --disable-all-custom-nodes
142-
```
143-
</Tab>
144-
<Tab title="手动安装">
145-
```bash
146-
cd ComfyUI
147-
python main.py --disable-all-custom-nodes
148-
```
149-
</Tab>
150-
<Tab title="便携版">
151-
<Tabs>
152-
<Tab title="修改 `.bat` 文件(推荐)">
153-
154-
打开便携版所在的文件夹,找到 `run_nvidia_gpu.bat` 或者 `run_cpu.bat` 文件
155-
156-
![修改 .bat 文件](/images/troubleshooting/Portable-disable-custom-nodes.jpg)
157-
1. 复制 `run_nvidia_gpu.bat` 或者 `run_cpu.bat` 文件并重命名为 `run_nvidia_gpu_disable_custom_nodes.bat`
158-
2. 使用记事本打开复制后的文件
159-
3. 在文件中添加 `--disable-all-custom-nodes` 参数,或者复制下面的参数保存到 txt 文件中后将文件后缀名改为 `.bat`
160-
161-
```bash
162-
.\python_embeded\python.exe -s ComfyUI\main.py --disable-all-custom-nodes --windows-standalone-build
163-
pause
164-
```
165-
4. 保存文件并关闭
166-
5. 双击运行文件,如果一切正常,你应该会看到 ComfyUI 启动,并且自定义节点被禁用
167-
</Tab>
168-
<Tab title="通过命令行">
169-
![ComfyUI troubleshooting](/images/troubleshooting/portable-disable-custom-nodes-cml-1.jpg)
170-
1. 进入便携版所在的文件夹
171-
2. 通过右键菜单 → 打开终端 来打开命令行
172-
173-
![ComfyUI troubleshooting](/images/troubleshooting/portable-disable-custom-nodes-cml-2.jpg)
174-
175-
3. 确保在命令行中文件夹名称是当前便携版所在的文件目录
176-
4. 输入以下命令,来通过便携版的 python 来启动 ComfyUI 并禁用自定义节点
177-
```
178-
.\python_embeded\python.exe -s ComfyUI\main.py --disable-all-custom-nodes
179-
```
180-
</Tab>
181-
</Tabs>
182-
</Tab>
183-
</Tabs>
184-
185-
**结果:**
186-
-**问题消失**:自定义节点导致问题 → 继续步骤 2
187-
-**问题仍然存在**:不是自定义节点问题 → [报告问题](#报告问题)
188-
</Step>
189179
<Step title="使用二分搜索定位自定义节点">
190180
对于二分搜索定位的方法,除了手动之外我们也有使用 comfy-cli 来进行自动化的二分搜索,具体方法如下:
191181

0 commit comments

Comments
 (0)