夏天12:
 
INSERT INTO chengken.starrocks_information_connections (app, nickname, alias, feip, user , password, feport, address, expire, status, fe_log_path, be_log_path, be_meta_log, java_udf_path, manager_access_key, manager_secret_key) VALUES(‘sr-adhoc’, ‘StarRocks(Tencent Cloud) SR-ADHOC’, NULL, ‘xxx’, ‘xxx’, ‘xxx’, 9030, ‘http://127.0.0.1:19321 ’, 30, 1, NULL, NULL, NULL, NULL, NULL, NULL)
 
 
不好意思,再打攪下,我把table清了,只插入一條,配置文件app也改成了sr-adhoc。現在只有/api/query報錯是為何
table配置: 
mysql> select * from chengken.starrocks_information_connections; 
±---------±----------------------------------±---------±---------------±-----±-----------------±-------±--------±-------±-------±----------------------------±------------------------±------------------------±-------------------±-------------------±--------------------+ 
| app      | nickname                          | alias    | feip           | user | password         | feport | address | expire | status | fe_log_path                 | be_log_path             | java_udf_path           | manager_access_key | manager_secret_key | updated_at          | 
±---------±----------------------------------±---------±---------------±-----±-----------------±-------±--------±-------±-------±----------------------------±------------------------±------------------------±-------------------±-------------------±--------------------+ 
| sr-adhoc | StarRocks(Tencent Cloud) SR-ADHOC | sr-adhoc | 10.215.102.103 | root | xxxxx |   9030 |         |     30 |      1 | /data/StarRocks/fe/sys_logs | /data/StarRocks/be/logs | /data/StarRocks/be/logs |                    |                    | 2025-06-18 10:45:48 | 
±---------±----------------------------------±---------±---------------±-----±-----------------±-------±--------±-------±-------±----------------------------±------------------------±------------------------±-------------------±-------------------±--------------------+
.StarRocksQuerys.yaml 修改配置
schema: 
role: 
admin: root 
point: root 
ipsystem: starrocks_audit_db__.ops_starrocks_ip_system 
slowstmt: starrocks_audit_db__.ops_starrocks_schema_slowquery 
auditops: starrocks_audit_db__.starrocks_audit_tbl__ 
ipapp: sr-adhoc 
whitelist: root,cndlopsns,c0l0f9l,cndlsrapp,dorisops,svccn_flash_report,svccn_flash_report_dev,svccnodshs,svccnadssr_ec,svccndwdsr_ec,svccndimsr_ec,svccnsamshs,svccnfinsam,svccndwssr_ec,svccncdptodatalake,dding01,a0d0f8i,svccnfinhs_c,svccnfinsoxhs_c,svccnfinsoxhs_c_dev,svccnfinhs,svccnfinhs_c_dev,svccnfrhs_c,svccndatafinhs,svccnaudiths,svccncdpapp,svccncdptodatalake,svccnmaapp,svccncdpapi,svccn_ccop,svccncdpdata,ma_test_user
log: 
path: ‘/root/StarRocksQuerys-1.0/log’
報錯信息,空指針?:
2025/06/18 10:50:42 [Recovery] 2025/06/18 - 10:50:42 panic recovered: 
GET /api/query HTTP/1.1 
Host: 10.215.102.75:8084 
Accept: /  
Accept-Encoding: gzip, deflate 
Accept-Language: zh-CN,zh;q=0.9 
Appid: sr-adhoc 
Authorization: * 
Connection: keep-alive 
Content-Type: application/json 
Referer: http://10.215.102.75:8084/  
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
interface conversion: interface {} is nil, not string 
/usr/lib/golang/src/runtime/iface.go:275 (0x410084) 
panicdottypeE: panic(&TypeAssertionError{iface, have, want, “”}) 
/usr/lib/golang/src/StarRocksAPIs/app/metri_query_processlist.go:199 (0xb35afb) 
processlist: Warehouse:  m[“Warehouse”].(string), 
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xaf22ca) 
(*Context).Next: c.handlersc.index  
/usr/lib/golang/src/StarRocksAPIs/app/token.go:31 (0xb3dfa4) 
App.tokenAuth.func2: c.Next() 
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xb000ee) 
(*Context).Next: c.handlersc.index  
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 (0xb000db) 
CustomRecoveryWithWriter.func1: c.Next() 
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xaff224) 
(*Context).Next: c.handlersc.index  
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 (0xaff20b) 
LoggerWithConfig.func1: c.Next() 
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xafe611) 
(*Context).Next: c.handlersc.index  
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 (0xafe080) 
(*Engine).handleHTTPRequest: c.Next() 
/root/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 (0xafdbb1) 
(*Engine).ServeHTTP: engine.handleHTTPRequest© 
/usr/lib/golang/src/net/http/server.go:3210 (0x783b6d) 
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req) 
/usr/lib/golang/src/net/http/server.go:2092 (0x76316f) 
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req) 
/usr/lib/golang/src/runtime/asm_amd64.s:1700 (0x479640) 
goexit: BYTE    $0x90   // NOP
[GIN] 2025/06/18 - 10:50:42 | 500 |   38.446705ms |  10.251.172.244 | GET      “/api/query” 
[GIN] 2025/06/18 - 10:50:47 | 200 |      15.075µs |  10.251.172.244 | GET      “/api/queries” 
[GIN] 2025/06/18 - 10:50:47 | 200 |   42.767301ms |  10.251.172.244 | GET      “/api/slowquery”