Map error after upgrade to 1.55.
Hi all,
I've upgraded to 1.55. The map link doesn't work, got an error like the screenshot.
On logs on immich_server, got this :
If you have some clues 😉
thanks

26 Replies
That error isn't related to the map and can be ignored. Can you post the full logs of all the containers?
sure
immich_microservices :
and
immich_server
Logs from immich-web?
Try restarting the immich-proxy
immich_web
same after restarting immich-proxy
immich_machine_learning
immich-postgres
Redis seems good
don't see anything 🤔
I've check .env and docker-compose, seems the same between 1.54 and 1.55
What happens if you go to
yourdomain.com/api/asset/map-marker
?
Or check the browser logs when going to the map pagegot a 504 time out 🤔
How many assets do you have?
above 72K
got an haproxy on front of the immich server; but no filtering or curious things on the configuration
maybe I can check some timeout
The code for getting the map markers is pretty inefficient right now, so a timeout isn't unlikely
ok 🙂
I know immich is in big development, but trying to feedback if I can (i'm not a dev, but a sysadmin)
We already have a PR open to improve that performance, so we'll hopefully get that out soon
I've changed the defaults timeout of haproxy, to 60s, in place of 30s
the api is now responding
testing the map again..
it's working 🙂
so it's just my conf, maybe too slow for this number of assets
Does the map page take a long time to load then? Because we'd like it to be performant of course :)
above 45sec
I'm running immich in a KVM, with 8GB memory and 4 vcpus
but seems hard with this number of assets
and the cpu is quite old 😉
On the next version it should be faster at least, we'll be interested to know by how much
I can tell after the next version
Would you be willing to run an SQL query on your database to identify a potential performance issue?
sure
you have specifics hardware requirement for immich ?
Fwiw I'd expect most of the trouble to be in the map call that's in assetservice atm
Yeah I think you're right, the query doesn't even take a second while the request is reported to take about 45 seconds
We are missing indexes on latitude and longitude though
yes, 45s to 70s, according some retries
I can test other queries if needed
No need thank you though
Added a note for this on the perf pr https://github.com/immich-app/immich/pull/2382#discussion_r1188624986
GitHub
feat(web): Global map performance optimizations by matthinc · Pull ...
A collection of little improvements to the map's performance:
Use array instead of map in /asset/map-marker response: Less descriptive but much smaller
{ "id": ..., "lat":...