Releem is a simple MySQL tuning tool to improve database performance and reduce servers costs.
GNU General Public License v3.0
257
stars
28
forks
source link
Releem Agent for RDS restarts periodically panic: runtime error: index out of range [0] with length 0 #157
Closed
drupaladmin closed 1 year ago
releem-agent[16392]: DEBUG : [AWSEnhancedMetrics] - 2023/04/08 19:15:01 awsrdsenhancedmetrics.go:221: CloudWatchLogs.GetLogEvents SUCCESS releem-agent[16392]: DEBUG : [AWSEnhancedMetrics] - 2023/04/08 19:15:01 awsrdsenhancedmetrics.go:224: CloudWatchLogs.GetLogEvents No data releem-agent[16392]: panic: runtime error: index out of range [0] with length 0 releem-agent[16392]: goroutine 1 [running]: releem-agent[16392]: github.com/Releem/mysqlconfigurer/metrics.(AWSRDSEnhancedMetricsGatherer).GetMetrics(0xc000389400, 0xc000184070) releem-agent[16392]: #011/home/initlab/git/mysqlconfigurer/metrics/awsrdsenhancedmetrics.go:228 +0x12a8 releem-agent[16392]: github.com/Releem/mysqlconfigurer/metrics.collectMetrics({0xc0004673b0, 0x5, 0xc000014020?}, {0xda7e10, 0xc000467400}) releem-agent[16392]: #011/home/initlab/git/mysqlconfigurer/metrics/runner.go:94 +0xf1 releem-agent[16392]: github.com/Releem/mysqlconfigurer/metrics.RunWorker({0xc0004673b0, 0x5, 0x5}, 0xc00003a8d0?, {0x0?, 0x0?}, 0xc00037e200, {0xb09c4b, 0x17}, {{0xb02628, ...}, ...}) releem-agent[16392]: #011/home/initlab/git/mysqlconfigurer/metrics/runner.go:52 +0x3de releem-agent[16392]: main.(Service).Manage(0xb013fa?, {0xda7e10, 0xc000088f50}, {0xb09c4b, 0x17}, {0xc000036230?, 0x1?, 0xc000014018?}, 0x0, {0x0, ...}) releem-agent[16392]: #011/home/initlab/git/mysqlconfigurer/main.go:203 +0x181d releem-agent[16392]: main.main() releem-agent[16392]: #011/home/initlab/git/mysqlconfigurer/main.go:225 +0x2fc systemd[1]: releem-agent.service: Main process exited, code=exited, status=2/INVALIDARGUMENT systemd[1]: releem-agent.service: Failed with result 'exit-code'. systemd[1]: releem-agent.service: Service hold-off time over, scheduling restart. systemd[1]: releem-agent.service: Scheduled restart job, restart counter is at 35.