Skip to content

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

@FourLeafTec

Description

@FourLeafTec

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
  1. 进入命名空间中添加或编辑命名空间看到同步节点中暂无数据
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 的目录两项报错,修复任意一个节点后,命名空间中的同步节点就正常了

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions