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

Influxdb 2.7.7 - Cannot add new Task via GUI #25197

Open
abitrusty opened this issue Jul 27, 2024 · 0 comments
Open

Influxdb 2.7.7 - Cannot add new Task via GUI #25197

abitrusty opened this issue Jul 27, 2024 · 0 comments

Comments

@abitrusty
Copy link

abitrusty commented Jul 27, 2024

New to Flux and V2.0 but hitting a weird issue with creating new Tasks via the GUI

I have an existing working task. I want to create an identical one but with a different agent host IP. If I copy and paste the working task config it gives me an error "Failed to create new task: Invalid flux script. Please check your query text." when I try and save it
If I use the clone button on the working one and change the IP, give a different name and save it - it works!!!!

I have changed the Task name and tried with and without adding the "option task = {name: "Test2", every: 15m, offset: 0m}" as the first line. I have also tried copy / pasting the working config to another Influx 2.7 node and it also gives the same error

I've tried copy and pasting it into Notepad++, directly. IS there an known issue with doing tasks this way?

Below is the working Task config - If i paste this into a new task and change the IP to a different IP that is also in the bucket with the same fields etc it will not save. ANy help appreciated

option task = {name: "Test2", every: 15m, offset: 0m}

from(bucket: "telegraf")
|> range(start: -task.every)
|> filter(fn: (r) => r["_field"] == "cvCallVolPeerOutgoingCalls")
|> filter(fn: (r) => r["agent_host"] == "10.10.1.10")
|> filter(fn: (r) => r["host"] == "homer")
|> filter(fn: (r) => r["index"] == "1")
|> aggregateWindow(every: task.every, fn: mean)
|> to(bucket: "longterm", org: "TEST", fieldFn: (r) => ({"mean": r._value}))

@abitrusty abitrusty changed the title Influxdb 2.7 - Cannot add new Task via GUI Influxdb 2.7.7 - Cannot add new Task via GUI Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant