[GH-ISSUE #1437] 某些情况下,命名空间配置时的无法看到由配置文件添加的节点 #2916

Open
opened 2026-02-27 12:28:53 +03:00 by kerem · 0 comments
Owner

Originally created by @FourLeafTec on GitHub (Nov 17, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1437

Describe the bug
添加或修改命名空间时,同步节点下面无法看到由配置文件添加的节点,删除由配置文件添加的节点重新使用UI添加后也无法看到

To Reproduce

  1. 使用docker创建服务,并使用如下配置文件
    app.ini
[app]
PageSize  = 20
JwtSecret = xxxxxxx
[server]
Host        = 
Port        = 9000
RunMode     = release
BaseUrl     = 
EnableHTTPS = false
SSLCert     = 
SSLKey      = 
EnableH2    = false
EnableH3    = false

[database]
Name = database

[log]
EnableFileLog = false
Dir           = 
MaxSize       = 0
MaxAge        = 0
MaxBackups    = 0
Compress      = false

[sls]
AccessKeyId         = 
AccessKeySecret     = 
EndPoint            = 
ProjectName         = 
APILogStoreName     = 
DefaultLogStoreName = 
Source              = 

[auth]
IPWhiteList         = 
BanThresholdMinutes = 10
MaxAttempts         = 10

[backup]
GrantedAccessPath = 

[casdoor]
Endpoint        = 
ExternalUrl     = 
ClientId        = 
ClientSecret    = 
CertificatePath = 
Organization    = 
Application     = 
RedirectUri     = 

[cert]
RecursiveNameservers = 
Email                = xxxx@xxxx.com
CADir                = 
RenewalInterval      = 7
HTTPChallengePort    = 9180

[cluster]
Node = http://xxxxx:8808?name=x86-1&node_secret=xxxxxxxx&enabled=true
Node = http://xxxxx:8808?name=x86-2&node_secret=xxxxxxxx&enabled=true
Node = http://xxxxx:8808?name=vultr&node_secret=xxxxxxxx&enabled=true

[crypto]
Secret = xxxxxxxx

[http]
GithubProxy        = 
InsecureSkipVerify = false

[logrotate]
Enabled  = false
CMD      = logrotate /etc/logrotate.d/nginx
Interval = 1440

[nginx]
AccessLogPath   = 
ErrorLogPath    = 
LogDirWhiteList = 
ConfigDir       = 
ConfigPath      = 
PIDPath         = 
SbinPath        = 
TestConfigCmd   = 
ReloadCmd       = 
RestartCmd      = 
StubStatusPort  = 0
ContainerName   = 

[nginx_log]
IndexingEnabled = false
IndexPath       = 

[node]
Name                 = 
Secret               = xxxxxxxxxxxxx
SkipInstallation     = false
Demo                 = false
ICPNumber            = 
PublicSecurityNumber = 

[openai]
BaseUrl              = 
Token                = 
Proxy                = 
Model                = 
APIType              = OPEN_AI
EnableCodeCompletion = false
CodeCompletionModel  = 

[terminal]
StartCmd = login

[webauthn]
RPDisplayName = 
RPID          = 
RPOrigins     = 

  1. 使用NGINX_UI_NODE_SECRET和NGINX_UI_NODE_SKIP_INSTALLATION创建受管节点

  2. 进入节点菜单检查节点已经正确添加
    Image

  3. 进入命名空间中添加或编辑命名空间看到同步节点中暂无数据

Image

Info (please complete the following information):

  • Nginx UI Version: 2.2.0 (502)
  • Your Browser: Chrome 142.0.7444.162

Additional context
在仪表盘->服务器中进入受管节点,自我检查发现Nginx.conf 包含 sites-enabled 目录检查 nginx.conf 是否包含 streams-enabled 的目录两项报错,修复任意一个节点后,命名空间中的同步节点就正常了

对于跳过安装过程的节点,建议自动执行一下修复

Originally created by @FourLeafTec on GitHub (Nov 17, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1437 **Describe the bug** 添加或修改命名空间时,同步节点下面无法看到由配置文件添加的节点,删除由配置文件添加的节点重新使用UI添加后也无法看到 **To Reproduce** 1. 使用docker创建服务,并使用如下配置文件 app.ini ``` [app] PageSize = 20 JwtSecret = xxxxxxx [server] Host = Port = 9000 RunMode = release BaseUrl = EnableHTTPS = false SSLCert = SSLKey = EnableH2 = false EnableH3 = false [database] Name = database [log] EnableFileLog = false Dir = MaxSize = 0 MaxAge = 0 MaxBackups = 0 Compress = false [sls] AccessKeyId = AccessKeySecret = EndPoint = ProjectName = APILogStoreName = DefaultLogStoreName = Source = [auth] IPWhiteList = BanThresholdMinutes = 10 MaxAttempts = 10 [backup] GrantedAccessPath = [casdoor] Endpoint = ExternalUrl = ClientId = ClientSecret = CertificatePath = Organization = Application = RedirectUri = [cert] RecursiveNameservers = Email = xxxx@xxxx.com CADir = RenewalInterval = 7 HTTPChallengePort = 9180 [cluster] Node = http://xxxxx:8808?name=x86-1&node_secret=xxxxxxxx&enabled=true Node = http://xxxxx:8808?name=x86-2&node_secret=xxxxxxxx&enabled=true Node = http://xxxxx:8808?name=vultr&node_secret=xxxxxxxx&enabled=true [crypto] Secret = xxxxxxxx [http] GithubProxy = InsecureSkipVerify = false [logrotate] Enabled = false CMD = logrotate /etc/logrotate.d/nginx Interval = 1440 [nginx] AccessLogPath = ErrorLogPath = LogDirWhiteList = ConfigDir = ConfigPath = PIDPath = SbinPath = TestConfigCmd = ReloadCmd = RestartCmd = StubStatusPort = 0 ContainerName = [nginx_log] IndexingEnabled = false IndexPath = [node] Name = Secret = xxxxxxxxxxxxx SkipInstallation = false Demo = false ICPNumber = PublicSecurityNumber = [openai] BaseUrl = Token = Proxy = Model = APIType = OPEN_AI EnableCodeCompletion = false CodeCompletionModel = [terminal] StartCmd = login [webauthn] RPDisplayName = RPID = RPOrigins = ``` 2. 使用NGINX_UI_NODE_SECRET和NGINX_UI_NODE_SKIP_INSTALLATION创建受管节点 4. 进入节点菜单检查节点已经正确添加 <img width="1434" height="741" alt="Image" src="https://github.com/user-attachments/assets/9e1d3267-42dc-401d-9942-c16e992d5e9f" /> 5. 进入命名空间中添加或编辑命名空间看到同步节点中暂无数据 <img width="1082" height="682" alt="Image" src="https://github.com/user-attachments/assets/4f0c885a-f911-4d0b-8e8e-cc5277cfd15b" /> **Info (please complete the following information):** - Nginx UI Version: 2.2.0 (502) - Your Browser: Chrome 142.0.7444.162 **Additional context** 在仪表盘->服务器中进入受管节点,自我检查发现`Nginx.conf 包含 sites-enabled 目录`和`检查 nginx.conf 是否包含 streams-enabled 的目录`两项报错,修复任意一个节点后,命名空间中的同步节点就正常了 对于跳过安装过程的节点,建议自动执行一下修复
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#2916
No description provided.