unpoller: influxdb.go:88: [ERROR] influxdb.Write(points):
Iām not sure what is going on here. No data was shown in grafana so I looked in Unifi-pollers logs and found an html error 404 page.
I tired browsing the 2 urls being requested and it returned data fine. https://192.168.0.101/proxy/network/api/s/default/stat/sta https://192.168.0.101/proxy/network/api/s/default/stat/device
How can I find out where the 404 error is coming from?
2021/03/19 18:12:11 [INFO] Loading Configuration File: /config/unifi-poller.conf
2021/03/19 18:12:11.735415 start.go:81: [DEBUG] Debug Logging Enabled
2021/03/19 18:12:11.735528 start.go:84: [INFO] UniFi Poller v2.0.1-787 Starting Up! PID: 1
2021/03/19 18:12:11.735601 unifi.go:106: [DEBUG] Requesting https://192.168.0.101/ to determine API paths
2021/03/19 18:12:11.784282 unifi.go:135: [DEBUG] Using NEW UniFi controller API paths for https://192.168.0.101/
2021/03/19 18:12:11.784455 unifi.go:192: [DEBUG] Requesting https://192.168.0.101/api/auth/login, with params: true, cookies: 0
2021/03/19 18:12:12.145909 unifi.go:90: [DEBUG] Requested https://192.168.0.101/api/auth/login: elapsed 362ms, returned 1391 bytes
2021/03/19 18:12:12.146190 unifi.go:192: [DEBUG] Requesting https://192.168.0.101/proxy/network/status, with params: false, cookies: 1
2021/03/19 18:12:12.163637 unifi.go:163: [DEBUG] Requested https://192.168.0.101/proxy/network/status: elapsed 18ms, returned 76 bytes
2021/03/19 18:12:12.163861 input.go:92: [DEBUG] Authenticated with controller successfully, https://192.168.0.101
2021/03/19 18:12:12.163898 input.go:107: [DEBUG] Checking Controller Sites List
2021/03/19 18:12:12.164012 unifi.go:192: [DEBUG] Requesting https://192.168.0.101/proxy/network/api/stat/sites, with params: false, cookies: 1
2021/03/19 18:12:12.241070 unifi.go:163: [DEBUG] Requested https://192.168.0.101/proxy/network/api/stat/sites: elapsed 77ms, returned 2498 bytes
2021/03/19 18:12:12.242630 site.go:34: [DEBUG] Found 2 site(s): default,kp4tnk7c
2021/03/19 18:12:12.242696 input.go:119: [INFO] Found 2 site(s) on controller https://192.168.0.101: default (*), kp4tnk7c (*)
2021/03/19 18:12:12.242723 interface.go:51: [INFO] Configured UniFi Controller 1:
2021/03/19 18:12:12.242746 interface.go:63: [INFO] => URL: https://192.168.0.101
2021/03/19 18:12:12.242770 interface.go:66: [INFO] => Version:
2021/03/19 18:12:12.242793 interface.go:69: [INFO] => Username: unifipoller (has password: true)
2021/03/19 18:12:12.242814 interface.go:70: [INFO] => Hash PII: false
2021/03/19 18:12:12.242834 interface.go:71: [INFO] => Verify SSL: false
2021/03/19 18:12:12.242857 interface.go:72: [INFO] => Save DPI: false
2021/03/19 18:12:12.242885 interface.go:73: [INFO] => Save IDS: false
2021/03/19 18:12:12.242904 interface.go:74: [INFO] => Save Sites: true
2021/03/19 18:12:12.243037 collector.go:105: [INFO] Prometheus config missing (or disabled), Prometheus HTTP listener disabled!
2021/03/19 18:12:12.243214 influxdb.go:73: [INFO] Everything checks out! Poller started, InfluxDB interval: 30s
2021/03/19 18:12:42.243691 unifi.go:192: [DEBUG] Requesting https://192.168.0.101/proxy/network/api/stat/sites, with params: false, cookies: 1
2021/03/19 18:12:42.353260 unifi.go:163: [DEBUG] Requested https://192.168.0.101/proxy/network/api/stat/sites: elapsed 110ms, returned 2498 bytes
2021/03/19 18:12:42.355676 site.go:34: [DEBUG] Found 2 site(s): default,kp4tnk7c
2021/03/19 18:12:42.355846 clients.go:17: [DEBUG] Polling Controller, retreiving UniFi Clients, site default (*)
2021/03/19 18:12:42.356037 unifi.go:192: [DEBUG] Requesting https://192.168.0.101/proxy/network/api/s/default/stat/sta, with params: false, cookies: 1
2021/03/19 18:12:42.428118 unifi.go:163: [DEBUG] Requested https://192.168.0.101/proxy/network/api/s/default/stat/sta: elapsed 72ms, returned 5854 bytes
2021/03/19 18:12:42.432125 unifi.go:192: [DEBUG] Requesting https://192.168.0.101/proxy/network/api/s/default/stat/device, with params: false, cookies: 1
2021/03/19 18:12:42.532780 unifi.go:163: [DEBUG] Requested https://192.168.0.101/proxy/network/api/s/default/stat/device: elapsed 101ms, returned 34611 bytes
2021/03/19 18:12:42.537494 devices.go:47: [DEBUG] Unmarshalling Device Type: ugw, site * (default)
2021/03/19 18:12:42.545882 devices.go:47: [DEBUG] Unmarshalling Device Type: uap, site * (default)
2021/03/19 18:12:42.559436 devices.go:47: [DEBUG] Unmarshalling Device Type: usw, site * (default)
2021/03/19 18:12:42.605284 influxdb.go:88: [ERROR] influxdb.Write(points):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>404 Not Found</title>
</head>
<body align="center">
<div role="main" align="center">
<h1>404: Not Found</h1>
<p>The requested resource could not be found.</p>
<hr />
</div>
<div role="contentinfo" align="center">
<small>Rocket</small>
</div>
</body>
</html>
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (13 by maintainers)
Upgrading Grafana solved it! Thank you for your help @davidnewhall! Hope you have a good weekend š