[BUG] problem with places in web explore page #1676

Closed
opened 2026-02-05 03:01:37 +03:00 by OVERLORD · 7 comments
Owner

Originally created by @githubbab on GitHub (Nov 22, 2023).

The bug

On the web plateform, on the explore page, i can see the 11th more used places.
But when i search in the database, i can see that the most used place is not on the page.

# select city,count(*) from exif where city is not null group by city order by count desc limit 12;
           city           | count 
--------------------------+-------
 Villefontaine            |  4597
 Huez                     |  2967
 Les Villettes            |  1857
 Estrablin                |  1377
 Cagnes-sur-Mer           |   684
 Les Estables             |   671
 Besançon                 |   506
 Saint-Amant-Roche-Savine |   458
 La Ricamarie             |   445
 Saint-Joseph             |   445
 Feyzin                   |   384
 Noirétable               |   362
(12 rows)

image

The OS that Immich Server is running on

docker

Version of Immich Server

v1.88.1

Version of Immich Mobile App

v1.88.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

version: "3.8"

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    command: ["start.sh", "immich"]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    ports:
      - 2283:3001
    depends_on:
      - redis
      - database
      - typesense
    restart: always

  immich-microservices:
    container_name: immich_microservices
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.yml
    #   service: hwaccel
    command: ["start.sh", "microservices"]
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    depends_on:
      - redis
      - database
      - typesense
    restart: always

  immich-machine-learning:
    container_name: immich_machine_learning
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always

  typesense:
    container_name: immich_typesense
    image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd
    environment:
      - TYPESENSE_API_KEY=${TYPESENSE_API_KEY}
      - TYPESENSE_DATA_DIR=/data
      # remove this to get debug messages
      - GLOG_minloglevel=1
    volumes:
      - tsdata:/data
    restart: always

  redis:
    container_name: immich_redis
    image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3
    restart: always

  database:
    container_name: immich_postgres
    image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441
    env_file:
      - .env
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    ports:
      - target: 5432
        published: XXXX
        protocol: tcp
        mode: host
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

volumes:
  pgdata:
  model-cache:
  tsdata:

Your .env content

# You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables

# The location where your uploaded files are stored
UPLOAD_LOCATION=./library

# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release

# Connection secrets for postgres and typesense. You should change these to random passwords
TYPESENSE_API_KEY=XXXXXXXXXXXXXXXXXX
DB_PASSWORD=XXXXXXXXXXXXX

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich

REDIS_HOSTNAME=immich_redis

Reproduction steps

1. Insert picture with location
2. go to explore page to see the 11th most used
3. verify in database

Additional information

No response

Originally created by @githubbab on GitHub (Nov 22, 2023). ### The bug On the web plateform, on the explore page, i can see the 11th more used places. But when i search in the database, i can see that the most used place is not on the page. ``` # select city,count(*) from exif where city is not null group by city order by count desc limit 12; city | count --------------------------+------- Villefontaine | 4597 Huez | 2967 Les Villettes | 1857 Estrablin | 1377 Cagnes-sur-Mer | 684 Les Estables | 671 Besançon | 506 Saint-Amant-Roche-Savine | 458 La Ricamarie | 445 Saint-Joseph | 445 Feyzin | 384 Noirétable | 362 (12 rows) ``` ![image](https://github.com/immich-app/immich/assets/46526223/6692ac63-26c2-4acc-864b-db18a63a63d1) ### The OS that Immich Server is running on docker ### Version of Immich Server v1.88.1 ### Version of Immich Mobile App v1.88.0 ### Platform with the issue - [ ] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML version: "3.8" services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} command: ["start.sh", "immich"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env ports: - 2283:3001 depends_on: - redis - database - typesense restart: always immich-microservices: container_name: immich_microservices image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.yml # service: hwaccel command: ["start.sh", "microservices"] volumes: - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro env_file: - .env depends_on: - redis - database - typesense restart: always immich-machine-learning: container_name: immich_machine_learning image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} volumes: - model-cache:/cache env_file: - .env restart: always typesense: container_name: immich_typesense image: typesense/typesense:0.24.1@sha256:9bcff2b829f12074426ca044b56160ca9d777a0c488303469143dd9f8259d4dd environment: - TYPESENSE_API_KEY=${TYPESENSE_API_KEY} - TYPESENSE_DATA_DIR=/data # remove this to get debug messages - GLOG_minloglevel=1 volumes: - tsdata:/data restart: always redis: container_name: immich_redis image: redis:6.2-alpine@sha256:70a7a5b641117670beae0d80658430853896b5ef269ccf00d1827427e3263fa3 restart: always database: container_name: immich_postgres image: postgres:14-alpine@sha256:28407a9961e76f2d285dc6991e8e48893503cc3836a4755bbc2d40bcc272a441 env_file: - .env environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} ports: - target: 5432 published: XXXX protocol: tcp mode: host volumes: - pgdata:/var/lib/postgresql/data restart: always volumes: pgdata: model-cache: tsdata: ``` ### Your .env content ```Shell # You can find documentation for all the supported env variables at https://immich.app/docs/install/environment-variables # The location where your uploaded files are stored UPLOAD_LOCATION=./library # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secrets for postgres and typesense. You should change these to random passwords TYPESENSE_API_KEY=XXXXXXXXXXXXXXXXXX DB_PASSWORD=XXXXXXXXXXXXX # The values below this line do not need to be changed ################################################################################### DB_HOSTNAME=immich_postgres DB_USERNAME=postgres DB_DATABASE_NAME=immich REDIS_HOSTNAME=immich_redis ``` ### Reproduction steps ```bash 1. Insert picture with location 2. go to explore page to see the 11th most used 3. verify in database ``` ### Additional information _No response_
Author
Owner

@alextran1502 commented on GitHub (Nov 22, 2023):

We are not using that criteria to show the places. Rather I believe it is random. @jrasm91 is this true?

@alextran1502 commented on GitHub (Nov 22, 2023): We are not using that criteria to show the places. Rather I believe it is random. @jrasm91 is this true?
Author
Owner

@githubbab commented on GitHub (Nov 22, 2023):

That's strange, it's always the same places.
And always the 11 after the bigger.

@githubbab commented on GitHub (Nov 22, 2023): That's strange, it's always the same places. And always the 11 after the bigger.
Author
Owner

@jrasm91 commented on GitHub (Nov 22, 2023):

I'm not sure. The current server code for that logic is getting reworked so we can visit again later

@jrasm91 commented on GitHub (Nov 22, 2023): I'm not sure. The current server code for that logic is getting reworked so we can visit again later
Author
Owner

@giogua commented on GitHub (Nov 30, 2023):

Same issue here. From the webapp I can see only the same 12 places (I do not even have the "View All" option). From the mobile app instead I see randomly a subset of places and I have the "View All" option to navigate through the full list.

Does not seems to be related to the most used places in my case

@giogua commented on GitHub (Nov 30, 2023): Same issue here. From the webapp I can see only the same 12 places (I do not even have the "View All" option). From the mobile app instead I see randomly a subset of places and I have the "View All" option to navigate through the full list. Does not seems to be related to the most used places in my case
Author
Owner

@aisbergde commented on GitHub (Dec 28, 2023):

can you reopen the issue? it is still not solved in 1.91.4

I see only the first 12 places in the web GUI, on the android client I see all places: There is a button "show all", and this button is missing in the web. it looks like the web frontend shows only the first row. If I make the window smaller, I get still only the first 12 places, but now in multiple rows.

@aisbergde commented on GitHub (Dec 28, 2023): can you reopen the issue? it is still not solved in 1.91.4 I see only the first 12 places in the web GUI, on the android client I see all places: There is a button "show all", and this button is missing in the web. it looks like the web frontend shows only the first row. If I make the window smaller, I get still only the first 12 places, but now in multiple rows.
Author
Owner

@aisbergde commented on GitHub (Dec 28, 2023):

chrome_frKJWCRG1z
here is a screenshot

@aisbergde commented on GitHub (Dec 28, 2023): ![chrome_frKJWCRG1z](https://github.com/immich-app/immich/assets/9020187/ed2dd284-f208-4089-ab68-d3db017bee0f) here is a screenshot
Author
Owner

@giogua commented on GitHub (Jan 1, 2024):

Just updated to 1.91.4, the issue is still present also for me. The 12 places changed in comparison to before the update, but still I can only see 12 places and no "show all" option. While in the Android App issue is not present.

Edit: Grammar

@giogua commented on GitHub (Jan 1, 2024): Just updated to 1.91.4, the issue is still present also for me. The 12 places changed in comparison to before the update, but still I can only see 12 places and no "show all" option. While in the Android App issue is not present. Edit: Grammar
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1676