Open mattcarp12 opened 3 years ago
is there any solution for this ?
Also happens when using contains()
Example:
bssids = from(bucket: "rfmon")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "rfmon_signal_dbm")
|> group(columns: ["bssid"])
|> first()
|> group()
|> keep(columns: ["bssid"])
from(bucket: "rfmon")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "rfmon_signal_dbm")
|> filter(fn: (r) => contains(value: r["srcmac"], set: bssids))
Error in console:
influxdb | ts=2021-12-08T19:58:11.453901Z lvl=info msg="panic during program start" log_id=0YIaAuFl000 service=storage-reads error="panic: length of stream not supported" stacktrace="goroutine 918 [running]:\nruntime/debug.Stack()\n\t/home/circleci/.tools/go/src/runtime/debug/stack.go:24 +0x65\ngithub.com/influxdata/influxdb/v2/query/control.(*Controller).executeQuery.func1()\n\t/home/circleci/go/src/github.com/influxdata/influxdb/query/control/controller.go:457 +0x125\npanic({0x3b69c00, 0x400b868})\n\t/home/circleci/.tools/go/src/runtime/panic.go:1038 +0x215\ngithub.com/influxdata/flux.(*TableObject).Len(0xc010ea0638)\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/compile.go:192 +0x27\ngithub.com/influxdata/flux/interpreter.resolveValue({0x40f45f8, 0xc01122eb80})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:1222 +0x3da\ngithub.com/influxdata/flux/interpreter.ResolveIdsInFunction({0x40e7ca8, 0xc0243fbaa0}, 0xc0110a5980, {0x40a7c28, 0xc0048c1570}, 0xc010ea1088)\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:1032 +0x152e\ngithub.com/influxdata/flux/interpreter.ResolveIdsInFunction({0x40e7ca8, 0xc0243fbaa0}, 0xc0110a5980, {0x40a7f00, 0xc033df1b00}, 0xc010ea1088)\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:1161 +0x948\ngithub.com/influxdata/flux/interpreter.ResolveIdsInFunction({0x40e7ca8, 0xc0243fbaa0}, 0xc0110a5980, {0x40a7e20, 0xc01122ef80}, 0xc010ea1088)\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:1136 +0x110b\ngithub.com/influxdata/flux/interpreter.ResolveIdsInFunction({0x40e7ca8, 0xc0243fbaa0}, 0xc0110a5980, {0x40a7988, 0xc0110c4f30}, 0xc010ea1088)\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:1073 +0x2ef\ngithub.com/influxdata/flux/interpreter.ResolveIdsInFunction({0x40e7ca8, 0xc0243fbaa0}, 0xc0110a5980, {0x40a7f70, 0xc03f4165a0}, 0xc010ea1088)\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:1060 +0x1028\ngithub.com/influxdata/flux/interpreter.ResolveIdsInFunction({0x40e7ca8, 0xc0243fbaa0}, 0xc0110a5980, {0x40a78e0, 0xc033df1980}, 0xc010ea1088)\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:1041 +0x11f0\ngithub.com/influxdata/flux/interpreter.ResolveIdsInFunction({0x40e7ca8, 0xc0243fbaa0}, 0xc0110a5980, {0x40a7b48, 0xc01122ef00}, 0xc010ea1088)\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:1080 +0x5e5\ngithub.com/influxdata/flux/interpreter.function.Resolve({0xc0110a5980, {0x40e7ca8, 0xc0243fbaa0}, 0xc03e5d8a40})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:975 +0xa5\ngithub.com/influxdata/flux/interpreter.ResolveFunction({0x40f6708, 0xc0360613e0})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:933 +0x50\ngithub.com/influxdata/flux/stdlib/universe.createFilterOpSpec({{0x40fd988, 0xc0110a7e48}}, 0xc0003278e0)\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/stdlib/universe/filter.go:68 +0x191\ngithub.com/influxdata/flux.(*function).call(0xc0003eaa80, {0x40a6bc0, 0xc0244083c0}, {0x40fd988, 0xc0110a7e48})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/compile.go:312 +0x10e\ngithub.com/influxdata/flux/interpreter.DoFunctionCallContext(0xc010ea1348, {0x40a6bc0, 0xc0244083c0}, {0x40fa360, 0xc03f4162d0})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:645 +0x10b\ngithub.com/influxdata/flux.(*function).Call(0x0, {0x40a6bc0, 0xc0244083c0}, {0x40fa360, 0xc03f4162d0})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/compile.go:301 +0x49\ngithub.com/influxdata/flux/interpreter.(*Interpreter).doCall(0xc03e5d8a40, {0x40a6bc0, 0xc0243ea690}, 0xc0110c4ab0, {0x40e7ca8, 0xc0243fbaa0})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:686 +0x4e3\ngithub.com/influxdata/flux/interpreter.(*Interpreter).doExpression(0xc03e5d8a40, {0x40a6bc0, 0xc0243ea690}, {0x40b7ed0, 0xc0110c4ab0}, {0x40e7ca8, 0xc0243fbaa0})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:336 +0x129f\ngithub.com/influxdata/flux/interpreter.(*Interpreter).doStatement(0xc03e5d8a40, {0x40a6bc0, 0xc0243ea690}, {0x40b2df8, 0xc03f3fb5e0}, {0x40e7ca8, 0xc0243fbaa0})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:171 +0x245\ngithub.com/influxdata/flux/interpreter.(*Interpreter).doFile(0xc03e5d8a40, {0x40a6bc0, 0xc0243ea690}, 0xc0110a5380, {0x40e7ca8, 0xc0243fbaa0}, {0x404faa0, 0xc012753240})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:111 +0x19b\ngithub.com/influxdata/flux/interpreter.(*Interpreter).doPackage(0x5, {0x40a6bc0, 0xc0243ea690}, 0x415bb4, {0x40e7ca8, 0xc0243fbaa0}, {0x404faa0, 0xc012753240})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:94 +0xbe\ngithub.com/influxdata/flux/interpreter.(*Interpreter).doRoot(0xc001400000, {0x40a6bc0, 0xc0243ea690}, {0x40a7e90, 0xc008d00af0}, {0x40e7ca8, 0xc0243fbaa0}, {0x404faa0, 0xc012753240})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:84 +0xbf\ngithub.com/influxdata/flux/interpreter.(*Interpreter).Eval(0xc03e5d8a40, {0x40a6bc0, 0xc0243ea690}, {0x40a7e90, 0xc008d00af0}, {0x40e7ca8, 0xc0243fbaa0}, {0x404faa0, 0xc012753240})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/interpreter/interpreter.go:75 +0x5e\ngithub.com/influxdata/flux/runtime.(*runtime).Eval(0xae745c0, {0x40a6bc0, 0xc0243ea690}, {0x4076110, 0xc009969e10}, {0x406c9f0, 0xaeaf4d8}, {0xc012753180, 0x2, 0x2})\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/runtime/runtime.go:119 +0x1fe\ngithub.com/influxdata/flux/lang.(*AstProgram).getSpec(0xc03e181ef0, {0x40a6bc0, 0xc0243ea660}, 0x400bbf8)\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/lang/compiler.go:447 +0x224\ngithub.com/influxdata/flux/lang.(*AstProgram).Start(0xc03e181ef0, {0x40a6bc0, 0xc0243ea510}, 0xc00ee6376c)\n\t/home/circleci/go/pkg/mod/github.com/influxdata/flux@v0.139.0/lang/compiler.go:484 +0x191\ngithub.com/influxdata/influxdb/v2/query/control.(*Controller).executeQuery(0xc00ee63778, 0xc0110bc180)\n\t/home/circleci/go/src/github.com/influxdata/influxdb/query/control/controller.go:480 +0x226\ngithub.com/influxdata/influxdb/v2/query/control.(*Controller).processQueryQueue(0xc01221e000)\n\t/home/circleci/go/src/github.com/influxdata/influxdb/query/control/controller.go:438 +0x2e\ngithub.com/influxdata/influxdb/v2/query/control.New.func1()\n\t/home/circleci/go/src/github.com/influxdata/influxdb/query/control/controller.go:220 +0x5d\ncreated by github.com/influxdata/influxdb/v2/query/control.New\n\t/home/circleci/go/src/github.com/influxdata/influxdb/query/control/controller.go:218 +0xa1b\n"
influxdb | ts=2021-12-08T19:58:11.454187Z lvl=warn msg="internal error not returned to client" log_id=0YIaAuFl000 handler=error_logger error="panic: length of stream not supported"
Steps to reproduce: List the minimal actions needed to reproduce the behavior.
Run flux script like such:
Expected behavior: Successfully send the HTTP post request
Actual behavior: Receive " An internal error has occurred" message in query window and the following message in influxdb logs:
Environment info:
Linux docker container, Influx 2.0
Config: Copy any non-default config values here or attach the full config as a gist or file.