Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] luigi 组件报错 #804

Open
zhxind opened this issue Apr 8, 2024 · 2 comments
Open

[Bug] luigi 组件报错 #804

zhxind opened this issue Apr 8, 2024 · 2 comments

Comments

@zhxind
Copy link

zhxind commented Apr 8, 2024

问题描述

goroutine 1 [running]:
github.com/DeronW/ipcount.Decode({0xc001082000, 0x38645a})
/go/pkg/mod/github.com/!deron!w/ipcount@v0.4.0/ipcount.go:257 +0x4cd
luigi/lib/db/model.LoadDaily()
/work/lib/db/model/daily.go:62 +0x1d8
luigi/lib/processor/daily.New(...)
/work/lib/processor/daily/daily.go:32
main.main()
/work/cmd/main.go:54 +0x3b7
panic: runtime error: slice bounds out of range [:255] with capacity 16

goroutine 1 [running]:
github.com/DeronW/ipcount.Decode({0xc0010fa000, 0x38645a})
/go/pkg/mod/github.com/!deron!w/ipcount@v0.4.0/ipcount.go:257 +0x4cd
luigi/lib/db/model.LoadDaily()
/work/lib/db/model/daily.go:62 +0x1d8
luigi/lib/processor/daily.New(...)
/work/lib/processor/daily/daily.go:32
main.main()
/work/cmd/main.go:54 +0x3b7

版本号

5.0.0 ~ 5.2.0

复现方法

goroutine 1 [running]:
github.com/DeronW/ipcount.Decode({0xc001082000, 0x38645a})
/go/pkg/mod/github.com/!deron!w/ipcount@v0.4.0/ipcount.go:257 +0x4cd
luigi/lib/db/model.LoadDaily()
/work/lib/db/model/daily.go:62 +0x1d8
luigi/lib/processor/daily.New(...)
/work/lib/processor/daily/daily.go:32
main.main()
/work/cmd/main.go:54 +0x3b7
panic: runtime error: slice bounds out of range [:255] with capacity 16

goroutine 1 [running]:
github.com/DeronW/ipcount.Decode({0xc0010fa000, 0x38645a})
/go/pkg/mod/github.com/!deron!w/ipcount@v0.4.0/ipcount.go:257 +0x4cd
luigi/lib/db/model.LoadDaily()
/work/lib/db/model/daily.go:62 +0x1d8
luigi/lib/processor/daily.New(...)
/work/lib/processor/daily/daily.go:32
main.main()
/work/cmd/main.go:54 +0x3b7

期望的结果

修复错误

@Lvshujun0918
Copy link
Contributor

能否描述一下是什么情况下发生的,看日志只能看出来是IP统计出现的问题

@zhxind
Copy link
Author

zhxind commented Apr 28, 2024

看原始日志好像是同一个IP有几十万的攻击拦截记录,除此之外没发现其他的异常情况。报错是凌晨01左右出现,修复方法只能清空luigi的db文件,清理postgresql数据等其他方式都不能恢复正常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants