Closed penguin02007 closed 3 years ago
symtomps: Running v5 and container is crashing with error interface conversion. Source device is running hsflowd version 2.0.11, with the following config:
interface conversion
sampling.40G = 8192 sampling.100M = 64 sampling.100G = 16384 sampling.10G = 4096 sampling.25G = 6144 sampling.1000 = 512
goroutine 22 [running]: github.com/elastiflow/flowcoll/decoder/nflow/decode.Translate(0xc0013243f0, 0xc0009aaa80, 0x24, 0x25, 0xc000144120, 0xc00009d100, 0xc00009d120, 0xc0011222c0, 0xc000067ce0, 0xc00110ac90, ...) /root/go/src/github.com/elastiflow/flowcoll/decoder/nflow/decode/translate.go:2534 +0x4f907 github.com/elastiflow/flowcoll/decoder/nflow/decode.sflow5(0xc001324330, 0xc00237f848, 0xc000144120, 0xc00009d100, 0xc00009d120, 0xc0011222c0, 0xc000067ce0, 0xc00110ac90, 0xc000067d40, 0xc001122300, ...) /root/go/src/github.com/elastiflow/flowcoll/decoder/nflow/decode/sflow5.go:128 +0x978 github.com/elastiflow/flowcoll/decoder/nflow/decode.Decode(0xc001324330, 0xc001324390, 0xc000144120, 0xc00009d100, 0xc00009d120, 0xc0011222c0, 0xc000067ce0, 0xc00110ac90, 0xc000067d40, 0xc001122300, ...) /root/go/src/github.com/elastiflow/flowcoll/decoder/nflow/decode/decode.go:103 +0x758 github.com/elastiflow/flowcoll/decoder.(*Decoder).decodePacket(0xc00111b650, 0x1c90c00, 0xc001324300, 0xc001324330, 0x31c) /root/go/src/github.com/elastiflow/flowcoll/decoder/decoder.go:49 +0x138 github.com/elastiflow/flowcoll/decoder.(*Decoder).Run(0xc00111b650) /root/go/src/github.com/elastiflow/flowcoll/decoder/decoder.go:34 +0xde created by github.com/elastiflow/flowcoll/decoder.(*Pool).Run /root/go/src/github.com/elastiflow/flowcoll/decoder/pool.go:26 +0x53 {"level":"info","ts":1615381983.4354718,"caller":"flowcoll/flowcoll.go:51","msg":"starting"} {"level":"info","ts":1615381983.4485853,"caller":"server/udpserver.go:53","msg":"running","address":"0.0.0.0:6444"} {"level":"info","ts":1615381983.456835,"caller":"decoder/decoder.go:25","msg":"running"} {"level":"info","ts":1615381983.4568608,"caller":"decoder/decoder.go:25","msg":"running"} {"level":"info","ts":1615381983.4750988,"caller":"elasticsearch/elasticsearch.go:350","msg":"reading index template","source":"elasticsearch","version":"1.0"} {"level":"info","ts":1615381983.651437,"caller":"elasticsearch/elasticsearch.go:350","msg":"reading index template","source":"elasticsearch","version":"1.0"} {"level":"info","ts":1615381983.6515207,"caller":"elasticsearch/elasticsearch.go:52","msg":"running"} panic: interface conversion: interface {} is int64, not uint64 goroutine 28 [running]: github.com/elastiflow/flowcoll/decoder/nflow/decode.Translate(0xc00138a780, 0xc000988a80, 0x24, 0x25, 0xc0000fc120, 0xc0011b6ee0, 0xc0011b6f00, 0xc001196200, 0xc000066360, 0xc0000fc450, ...) /root/go/src/github.com/elastiflow/flowcoll/decoder/nflow/decode/translate.go:2534 +0x4f907 github.com/elastiflow/flowcoll/decoder/nflow/decode.sflow5(0xc00138a6c0, 0xc00096b848, 0xc0000fc120, 0xc0011b6ee0, 0xc0011b6f00, 0xc001196200, 0xc000066360, 0xc0000fc450, 0xc0000663c0, 0xc001196240, ...) /root/go/src/github.com/elastiflow/flowcoll/decoder/nflow/decode/sflow5.go:128 +0x978 github.com/elastiflow/flowcoll/decoder/nflow/decode.Decode(0xc00138a6c0, 0xc00138a720, 0xc0000fc120, 0xc0011b6ee0, 0xc0011b6f00, 0xc001196200, 0xc000066360, 0xc0000fc450, 0xc0000663c0, 0xc001196240, ...) /root/go/src/github.com/elastiflow/flowcoll/decoder/nflow/decode/decode.go:103 +0x758 github.com/elastiflow/flowcoll/decoder.(*Decoder).decodePacket(0xc0011bc0e0, 0x1c90c00, 0xc00138a690, 0xc00138a6c0, 0x31c) /root/go/src/github.com/elastiflow/flowcoll/decoder/decoder.go:49 +0x138 github.com/elastiflow/flowcoll/decoder.(*Decoder).Run(0xc0011bc0e0) /root/go/src/github.com/elastiflow/flowcoll/decoder/decoder.go:34 +0xde created by github.com/elastiflow/flowcoll/decoder.(*Pool).Run /root/go/src/github.com/elastiflow/flowcoll/decoder/pool.go:26 +0x53
@penguin02007 You have already opened a ticket with us. I am closing this issue here.
symtomps: Running v5 and container is crashing with error
interface conversion
. Source device is running hsflowd version 2.0.11, with the following config: