jacobalberty / unifi-docker

Unifi Docker files
MIT License
2.16k stars 458 forks source link

Find Icon feature for clients does not work #262

Closed gamertyke closed 2 years ago

gamertyke commented 4 years ago

Host operating system

Synology

What tag are you using

latest

What complete docker command or docker-compose.yml do you use to launch the container (omitting sensitive values)?

defaults

What do you expect to happen?

A screen should pop up that allows the user to search for a picture for their client devices

What actually happens?

Error: Failed to load Some data requirements failed to load. Please try again later.

dannytsang commented 4 years ago

Are you able to provide the error message or error log?

gamertyke commented 4 years ago

I ended up switching to the LinuxServer image. Sorry to not be of help. The error is what is in the original post though, a pop up window with the text: "Failed to load Some data requirements failed to load. Please try again later."

MayeulC commented 4 years ago

Hello, I just set up the unifi controller using your docker image, thanks a lot for maintaining it!

I also ran into that issue. Running the following command inside the docker before restarting it fixed it for me:

update-ca-certificates -f

Error message was as described above. Opening the browser console, I could see a 404 being returned for https://[ip]:8443/v2/api/fingerprint_devices/0/ with the answer:

{"errorCode":404,"message":"Device list could not be found for folder"}

This is not a one-off issue with the Unifi controller, it seems:

Incidentally, I am running pihole, but couldn't see any blocked request and could curl https://static.ubnt.com/fingerprint/0/1671_257x257.png without issue, so the SSL cert is likely used for something else.

mdhom commented 3 years ago

I have got the same problem (Failed to load, Some data requirements failed to load. Please try again later.), here is the log from the server.log file:

[2020-11-24T09:33:05,040] <webapi-3794> ERROR api    - fetch fingerprint resources failed: 
org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://static.ubnt.com/fingerprint/1/devicelist.json":
 java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: 
the trustAnchors parameter must be non-empty; nested exception is javax.net.ssl.SSLException: java.lang.RuntimeException: 
Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

@MayeulC could you give me a hint on how to run that command within "the docker"? I tried running docker exec unifi_composed update-ca-certificates -f and got many logs like Adding debian:ACCVRAIZ1.pem. I restarted my docker container, but nothing changed.

EDIT: ran it again, restarted and now my problem is solved! Thanks!

github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.