unpoller / unpoller

Application: Collect ALL UniFi Controller, Site, Device & Client Data - Export to InfluxDB or Prometheus
https://unpoller.com
MIT License
2.06k stars 146 forks source link

Dream Machine Pro new install #334

Closed jesselee04 closed 3 years ago

jesselee04 commented 3 years ago

Working on setting this up for the first time using docker compose. I seem to have the db side working but getting auth issues for some reason. i have verified that the user i am using is created and has access needed.

Network 6.1.70 Dream machine 1.9.2

Does this with with the Dream Machine Pro by chance?

2021/04/01 14:57:16 [ERROR] Controller 1 of 1 Auth or Connection Error, retrying: unifi controller: (user: poller): https://10.1.1.1:8443/api/login (status: 404 ): authentication failed
2021/04/01 14:57:16 [INFO] Poller->InfluxDB started, interval: 30s, dp: false, db: unifi, url: http://10.1.2.33:8086
2021/04/01 14:57:16 [INFO] Internal web server disabled!
2021/04/01 14:57:16 [INFO] Loki config missing (or disabled), Loki output disabled!
2021/04/01 14:57:16 [INFO] Prometheus exported at http://0.0.0.0:9130/ - namespace: unifipoller
2021/04/01 14:57:46 [INFO] Re-authenticating to UniFi Controller: https://10.1.1.1:8443
2021/04/01 14:57:46 [ERROR] metric fetch for InfluxDB failed: re-authenticating to https://10.1.1.1:8443: unifi controller: (user: poller): https://10.1.1.1:8443/api/login (status: 404 ): authentication failed
2021/04/01 14:58:16 [INFO] Re-authenticating to UniFi Controller: https://10.1.1.1:8443
2021/04/01 14:58:16 [ERROR] metric fetch for InfluxDB failed: re-authenticating to https://10.1.1.1:8443: unifi controller: (user: poller): https://10.1.1.1:8443/api/login (status: 404 ): authentication failed
2021/04/01 14:58:46 [INFO] Re-authenticating to UniFi Controller: https://10.1.1.1:8443
2021/04/01 14:58:46 [ERROR] metric fetch for InfluxDB failed: re-authenticating to https://10.1.1.1:8443: unifi controller: (user: poller): https://10.1.1.1:8443/api/login (status: 404 ): authentication failed
2021/04/01 14:59:16 [INFO] Re-authenticating to UniFi Controller: https://10.1.1.1:8443
2021/04/01 14:59:16 [ERROR] metric fetch for InfluxDB failed: re-authenticating to https://10.1.1.1:8443: unifi controller: (user: poller): https://10.1.1.1:8443/api/login (status: 404 ): authentication failed
2021/04/01 14:59:46 [INFO] Re-authenticating to UniFi Controller: https://10.1.1.1:8443
2021/04/01 14:59:46 [ERROR] metric fetch for InfluxDB failed: re-authenticating to https://10.1.1.1:8443: unifi controller: (user: poller): https://10.1.1.1:8443/api/login (status: 404 ): authentication failed
2021/04/01 15:00:16 [INFO] Re-authenticating to UniFi Controller: https://10.1.1.1:8443
2021/04/01 15:00:16 [ERROR] metric fetch for InfluxDB failed: re-authenticating to https://10.1.1.1:8443: unifi controller: (user: poller): https://10.1.1.1:8443/api/login (status: 404 ): authentication failed
davidnewhall commented 3 years ago

It sure does! The error you're getting indicates you have an invalid username or password. My understanding is that the UDM requires limited admin priviledges. You can also test it by logging in as the user you put in your unifi-poller config. You can further test this by using your username and password in the config.

I actually think you just have the wrong URL though. Instead of https://10.1.1.1:8443 use https://10.1.1.1.

jesselee04 commented 3 years ago

Taking the port off fixed it, thankyou!