ccfos / nightingale

An all-in-one observability solution which aims to combine the advantages of Prometheus and Grafana. It manages alert rules and visualizes metrics, logs, traces in a beautiful web UI.
https://flashcat.cloud/docs/
Apache License 2.0
9.84k stars 1.42k forks source link

全新环境启动报错 #2271

Closed showsmall closed 4 days ago

showsmall commented 2 weeks ago

Question and Steps to reproduce

全新环境启动报错: 2024-11-08 11:22:05.701911 ERROR ormx/ormx.go:67 /home/runner/work/nightingale/nightingale/models/target.go:570 sql: Scan error on column index 0, name "MAX(group_id)": converting NULL to int64 is unsupported [0.256ms] [rows:1] SELECT MAX(group_id) FROM target

Relevant logs and configurations

2024-11-08 11:22:05.701911 ERROR ormx/ormx.go:67 /home/runner/work/nightingale/nightingale/models/target.go:570 sql: Scan error on column index 0, name "MAX(group_id)": converting NULL to int64 is unsupported
[0.256ms] [rows:1] SELECT MAX(group_id) FROM `target`

Version

2024-11-08 11:22:05.701911 ERROR ormx/ormx.go:67 /home/runner/work/nightingale/nightingale/models/target.go:570 sql: Scan error on column index 0, name "MAX(group_id)": converting NULL to int64 is unsupported [0.256ms] [rows:1] SELECT MAX(group_id) FROM target

showsmall commented 2 weeks ago

v7.6

710leo commented 2 weeks ago

@showsmall target 表为空会报这个错,不影响使用,可以忽略,下个版本会解决

710leo commented 4 days ago

新版本已解决