Infinite refresh in certain page #6929

Closed
opened 2026-02-05 12:38:44 +03:00 by OVERLORD · 12 comments
Owner

Originally created by @adri1m64 on GitHub (Aug 23, 2025).

I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.

  • Yes

The bug

When i go in a certain page, like the administration, or in a shared album (when i'm connected, not in private navigation), it start an infinite loop refresh

https://github.com/user-attachments/assets/17edf283-3272-4fa5-aba4-e02256a1664c

The OS that Immich Server is running on

Docker

Version of Immich Server

v1.139.2

Version of Immich Mobile App

v1.138.1

Platform with the issue

  • Server
  • Web
  • Mobile

Device make and model

Microsoft Edge

Your docker-compose.yml content

#
# WARNING: Make sure to use the docker-compose.yml of the current release:
#
  # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml
#
# The compose file on main may not be compatible with the latest release.
#

name: immich

services:
  immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    # extends:
    #   file: hwaccel.transcoding.yml
    #   service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding
    volumes:
      # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
      - /mnt/disque/videos:/mnt/videos  # Mapping des vidéos conservé
    env_file:
      - .env
    ports:
      - '2283:2283'
    depends_on:
      - redis
      - database
    restart: always
    healthcheck:
      disable: false
    networks:
      - reseau_global  # Référence au réseau externe existant
      - reseau_immich  # Référence au réseau externe existant

  immich-machine-learning:
    container_name: immich_machine_learning
    # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag.
    # Example tag: ${IMMICH_VERSION:-release}-cuda
    image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release}
    # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration
    #   file: hwaccel.ml.yml
    #   service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable
    volumes:
      - model-cache:/cache
    env_file:
      - .env
    restart: always
    healthcheck:
      disable: false
    networks:
      - reseau_immich  # Référence au réseau externe existant

  redis:
    container_name: immich_redis
    image: docker.io/valkey/valkey:8-bookworm@sha256:42cba146593a5ea9a622002c1b7cba5da7be248650cbb64ecb9c6c33d29794b1
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always
    networks:
      - reseau_immich

  database:
    container_name: immich_postgres
    image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
      DB_STORAGE_TYPE: 'HDD'
    volumes:
      # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file
      - ${DB_DATA_LOCATION}:/var/lib/postgresql/data
    restart: always
    networks:
      - reseau_immich  # Référence au réseau externe existant..



  power-tools:
    container_name: immich_power_tools
    image: ghcr.io/varun-raj/immich-power-tools:latest
    ports:
      - "2284:3000"
    env_file:
      - .env

    networks:
      - reseau_immich

volumes:
  model-cache:

networks:
  reseau_global:
    external: true  # Indique que ce réseau est externe et ne doit pas être créé

  reseau_immich:
    driver: bridge

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 location where your database files are stored
DB_DATA_LOCATION=./postgres

# To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
TZ=Europe/Paris

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

# Connection secret for postgres. You should change it to a random password
# Please use only the characters `A-Za-z0-9`, without special characters or spaces
DB_PASSWORD=***

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



IMMICH_API_KEY = "***"
IMMICH_URL = "***"
EXTERNAL_IMMICH_URL = "***"
GOOGLE_MAPS_API_KEY = "***"
GEMINI_API_KEY = "***"
DB_HOST = "database"
DB_PORT = "5432"

Reproduction steps

  1. Opening Immich
  2. Looking at photos
  3. Going into administration for example
  4. Infinite loop

Relevant log output

No relevant log, wanted to change the log level but can't because of the issue

Additional information

No response

Originally created by @adri1m64 on GitHub (Aug 23, 2025). ### I have searched the existing issues, both open and closed, to make sure this is not a duplicate report. - [x] Yes ### The bug When i go in a certain page, like the administration, or in a shared album (when i'm connected, not in private navigation), it start an infinite loop refresh https://github.com/user-attachments/assets/17edf283-3272-4fa5-aba4-e02256a1664c ### The OS that Immich Server is running on Docker ### Version of Immich Server v1.139.2 ### Version of Immich Mobile App v1.138.1 ### Platform with the issue - [x] Server - [x] Web - [ ] Mobile ### Device make and model Microsoft Edge ### Your docker-compose.yml content ```YAML # # WARNING: Make sure to use the docker-compose.yml of the current release: # # https://github.com/immich-app/immich/releases/latest/download/docker-compose.yml # # The compose file on main may not be compatible with the latest release. # name: immich services: immich-server: container_name: immich_server image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release} # extends: # file: hwaccel.transcoding.yml # service: cpu # set to one of [nvenc, quicksync, rkmpp, vaapi, vaapi-wsl] for accelerated transcoding volumes: # Do not edit the next line. If you want to change the media storage location on your system, edit the value of UPLOAD_LOCATION in the .env file - ${UPLOAD_LOCATION}:/usr/src/app/upload - /etc/localtime:/etc/localtime:ro - /mnt/disque/videos:/mnt/videos # Mapping des vidéos conservé env_file: - .env ports: - '2283:2283' depends_on: - redis - database restart: always healthcheck: disable: false networks: - reseau_global # Référence au réseau externe existant - reseau_immich # Référence au réseau externe existant immich-machine-learning: container_name: immich_machine_learning # For hardware acceleration, add one of -[armnn, cuda, openvino] to the image tag. # Example tag: ${IMMICH_VERSION:-release}-cuda image: ghcr.io/immich-app/immich-machine-learning:${IMMICH_VERSION:-release} # extends: # uncomment this section for hardware acceleration - see https://immich.app/docs/features/ml-hardware-acceleration # file: hwaccel.ml.yml # service: cpu # set to one of [armnn, cuda, openvino, openvino-wsl] for accelerated inference - use the `-wsl` version for WSL2 where applicable volumes: - model-cache:/cache env_file: - .env restart: always healthcheck: disable: false networks: - reseau_immich # Référence au réseau externe existant redis: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:42cba146593a5ea9a622002c1b7cba5da7be248650cbb64ecb9c6c33d29794b1 healthcheck: test: redis-cli ping || exit 1 restart: always networks: - reseau_immich database: container_name: immich_postgres image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' DB_STORAGE_TYPE: 'HDD' volumes: # Do not edit the next line. If you want to change the database storage location on your system, edit the value of DB_DATA_LOCATION in the .env file - ${DB_DATA_LOCATION}:/var/lib/postgresql/data restart: always networks: - reseau_immich # Référence au réseau externe existant.. power-tools: container_name: immich_power_tools image: ghcr.io/varun-raj/immich-power-tools:latest ports: - "2284:3000" env_file: - .env networks: - reseau_immich volumes: model-cache: networks: reseau_global: external: true # Indique que ce réseau est externe et ne doit pas être créé reseau_immich: driver: bridge ``` ### 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 location where your database files are stored DB_DATA_LOCATION=./postgres # To set a timezone, uncomment the next line and change Etc/UTC to a TZ identifier from this list: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List TZ=Europe/Paris # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=release # Connection secret for postgres. You should change it to a random password # Please use only the characters `A-Za-z0-9`, without special characters or spaces DB_PASSWORD=*** # The values below this line do not need to be changed ################################################################################### DB_USERNAME=postgres DB_DATABASE_NAME=immich IMMICH_API_KEY = "***" IMMICH_URL = "***" EXTERNAL_IMMICH_URL = "***" GOOGLE_MAPS_API_KEY = "***" GEMINI_API_KEY = "***" DB_HOST = "database" DB_PORT = "5432" ``` ### Reproduction steps 1. Opening Immich 2. Looking at photos 3. Going into administration for example 4. Infinite loop ### Relevant log output ```shell No relevant log, wanted to change the log level but can't because of the issue ``` ### Additional information _No response_
Author
Owner

@github-actions[bot] commented on GitHub (Aug 23, 2025):

This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary.

@github-actions[bot] commented on GitHub (Aug 23, 2025): This issue has automatically been closed as it is likely a duplicate. We get a lot of duplicate threads each day, which is why we ask you in the template to confirm that you searched for duplicates before opening one. If you're sure this is not a duplicate, please leave a comment and we will reopen the thread if necessary.
Author
Owner

@adri1m64 commented on GitHub (Aug 23, 2025):

Searched and this is not a duplicate on v1.139.2

@adri1m64 commented on GitHub (Aug 23, 2025): Searched and this is not a duplicate on v1.139.2
Author
Owner

@alextran1502 commented on GitHub (Aug 23, 2025):

You need to check the box, otherwise the bot would auto close it 😅

@alextran1502 commented on GitHub (Aug 23, 2025): You need to check the box, otherwise the bot would auto close it 😅
Author
Owner

@alextran1502 commented on GitHub (Aug 23, 2025):

Can you help open the developer console (F12) and see if it print out any error when you get into the looping state?

@alextran1502 commented on GitHub (Aug 23, 2025): Can you help open the developer console (F12) and see if it print out any error when you get into the looping state?
Author
Owner

@GER13117 commented on GitHub (Aug 23, 2025):

I have the same issue. Because of the constant reloading, I was only able to make this screenshot. Hopefully it can help at least a little bit.

Image
@GER13117 commented on GitHub (Aug 23, 2025): I have the same issue. Because of the constant reloading, I was only able to make this screenshot. Hopefully it can help at least a little bit. <img width="654" height="55" alt="Image" src="https://github.com/user-attachments/assets/40554282-803c-4f32-88d9-35e97824e4e6" />
Author
Owner

@alextran1502 commented on GitHub (Aug 23, 2025):

@GER13117 If you are using in incognito mode, are you still facing this issue?

@alextran1502 commented on GitHub (Aug 23, 2025): @GER13117 If you are using in incognito mode, are you still facing this issue?
Author
Owner

@GER13117 commented on GitHub (Aug 24, 2025):

I did not use incognito mode. However, the infinite reload problem somehow disappeared for me.

@GER13117 commented on GitHub (Aug 24, 2025): I did not use incognito mode. However, the infinite reload problem somehow disappeared for me.
Author
Owner

@aortmannm commented on GitHub (Aug 24, 2025):

I have the same issue since some versions, it comes every update and with open dev tools and cash reload I can fix it for the open session. After reopening the page on a new tab the problem occurs again.

After some days it fixes itself. I don't understand the issue 🙈

@aortmannm commented on GitHub (Aug 24, 2025): I have the same issue since some versions, it comes every update and with open dev tools and cash reload I can fix it for the open session. After reopening the page on a new tab the problem occurs again. After some days it fixes itself. I don't understand the issue 🙈
Author
Owner

@alextran1502 commented on GitHub (Aug 24, 2025):

I think this is a cache issue with reverse proxy. We are looking into it for the cause

@alextran1502 commented on GitHub (Aug 24, 2025): I think this is a cache issue with reverse proxy. We are looking into it for the cause
Author
Owner

@adri1m64 commented on GitHub (Aug 24, 2025):

It is fixed for me too.

@adri1m64 commented on GitHub (Aug 24, 2025): It is fixed for me too.
Author
Owner

@aortmannm commented on GitHub (Aug 24, 2025):

I think this is a cache issue with reverse proxy. We are looking into it for the cause

I think so too, I just don't understand why it works when I clear the local cache in the same tab but it happens again in a new tab, at least for some hours or days.

@aortmannm commented on GitHub (Aug 24, 2025): > I think this is a cache issue with reverse proxy. We are looking into it for the cause I think so too, I just don't understand why it works when I clear the local cache in the same tab but it happens again in a new tab, at least for some hours or days.
Author
Owner

@gavrochelegnou commented on GitHub (Aug 25, 2025):

Hello,
I've had the same problem after migrating from 1.139.1 to 1.139.3
What i see from the devtools is that the main html page was cached a few days ago containing paths to JS files that do not exit anymore, but the service worker does not seem to update itself or the base html page content.

I updated this morning (25/08) and even after many reload of the page i can still see that the service worker is in an old version :

Image

So is the cached HTML page :

Image

Manually unvalidating the service worker did the trick for me.

@gavrochelegnou commented on GitHub (Aug 25, 2025): Hello, I've had the same problem after migrating from 1.139.1 to 1.139.3 What i see from the devtools is that the main html page was cached a few days ago containing paths to JS files that do not exit anymore, but the service worker does not seem to update itself or the base html page content. I updated this morning (25/08) and even after many reload of the page i can still see that the service worker is in an old version : <img width="378" height="71" alt="Image" src="https://github.com/user-attachments/assets/348cc941-ed78-4051-92d8-701720976ae3" /> So is the cached HTML page : <img width="1068" height="42" alt="Image" src="https://github.com/user-attachments/assets/083f136d-5ad3-43b2-8785-7701491103ed" /> Manually unvalidating the service worker did the trick for me.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#6929