-
Notifications
You must be signed in to change notification settings - Fork 143
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
error in unpoller #699
Comments
I am also seeing this issue. it seems like it might have started after an update on the Unifi side. |
To get around this for now I set Alarm to false in the up.conf file. |
I had this issue. The problem is caused by influxdb, they have changed the data type of some of the data that is added into the databases. because the data type is not correct, it does not display the data shown in the db. My solution was to update unpoller and the grafana templates and then all data was visible again. I have a few threads about this exact same issue. |
I updated unpoller but not the grafana templates, will try that. What version of influxdb ate you using? |
InfluxDB shell version: 1.6.7~rc0 it was after the db upgrade that all my issues started. Lawrence |
there is a fix in progress |
v2.11.2 might be able to fix this, but this might be a game of whack-a-mole |
I am still getting the issue for both Alarms and IDS. It prevents unpoller from writing to Influx. As soon as i set those to false, it works fine. I am on Unifi 4.0.7, unpoller 2.11.2 and influx 1.8.10 |
@cknic I am in the same boat as well. I did notice that when querying the controller for Alarms, all but one of the entries returned have a timestamp type as a number. One entry has a timestamp field with type String:
Casting the returned timestamp into a number, similar to the changes in this commit may resolve the unmarshaling error. |
Thanks for the debug! I’ll shoot for a fix tomorrow unless you’re able to make a PR sooner |
Starting getting the below error not sure when but at least a 2 to 3 weeks ago I was fine and was able to view graphs in grafana for influxdb. Prometheus seems to be working fine.
2024/04/10 09:24:11 [INFO] UniFi Measurements Exported. Site: 1, Client: 57, UAP: 2, USG/UDM: 3, USW: 0, DPI Site/Client: 1/94, Desc:
198, Metric: 10555, Err: 0, 0s: 771, Req/Total: 1.0125s / 1.0337s
2024/04/10 09:24:13 [ERROR] event fetch for InfluxDB failed: unifi.GetAlarms(): json: cannot unmarshal array into Go struct field Alarm.data.catname of type string: error initializing inputs
The text was updated successfully, but these errors were encountered: