ERROR during the start of fluxcli

When I am starting the fluxcli getting error as below.

root@f24621f936d4:/# influx --type=flux

Connected to http://localhost:8086 version 1.7.2
InfluxDB shell version: 1.7.2
Enter a Flux query
panic: runtime error: integer divide by zero

goroutine 1 [running]:
github.com/influxdata/influxdb/vendor/github.com/c-bata/go-prompt.(*Render).toPos(...)
/go/src/github.com/influxdata/influxdb/vendor/github.com/c-bata/go-prompt/render.go:248
github.com/influxdata/influxdb/vendor/github.com/c-bata/go-prompt.(*Render).move(0xc000185380, 0x2, 0x2, 0xc0000c0c86)
/go/src/github.com/influxdata/influxdb/vendor/github.com/c-bata/go-prompt/render.go:232 +0x1b0
github.com/influxdata/influxdb/vendor/github.com/c-bata/go-prompt.(*Render).backward(0xc000185380, 0x2, 0x0, 0x0)
/go/src/github.com/influxdata/influxdb/vendor/github.com/c-bata/go-prompt/render.go:228 +0x42
github.com/influxdata/influxdb/vendor/github.com/c-bata/go-prompt.(*Render).Render(0xc000185380, 0xc0000e6780, 0xc0000e6800)
/go/src/github.com/influxdata/influxdb/vendor/github.com/c-bata/go-prompt/render.go:191 +0x153
github.com/influxdata/influxdb/vendor/github.com/c-bata/go-prompt.(*Prompt).Run(0xc0000925a0)
/go/src/github.com/influxdata/influxdb/vendor/github.com/c-bata/go-prompt/prompt.go:52 +0xdf
github.com/influxdata/influxdb/vendor/github.com/influxdata/flux/repl.(*REPL).Run(0xc0003117a0)
/go/src/github.com/influxdata/influxdb/vendor/github.com/influxdata/flux/repl/repl.go:60 +0x1d9
github.com/influxdata/influxdb/cmd/influx/cli.(*CommandLine).Run(0xc000180e00, 0x0, 0x0)
/go/src/github.com/influxdata/influxdb/cmd/influx/cli/cli.go:214 +0x9fa
main.main()
/go/src/github.com/influxdata/influxdb/cmd/influx/main.go:127 +0x875

Hi @gowrisankar22, have you tried resizing your terminal as suggested here?

1 Like

cool :wink: it did the trick.

Glad it worked! :slight_smile: