Shared media by link (not album) - when opened without account show auth error #6776

Closed
opened 2026-02-05 12:31:49 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @krypton9208 on GitHub (Aug 7, 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 share few photos for friends, and they click in my link, they see photos, by after click on any of them (to see one photo not all photos grid), they got got authentication error.

The OS that Immich Server is running on

Docker ubuntu

Version of Immich Server

1.137.3

Version of Immich Mobile App

1.137.3

Platform with the issue

  • Server
  • Web
  • Mobile

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}
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]
    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
    env_file:
      - .env
    ports:
      - '14385:2283'
    depends_on:
      - redis
      - database
    restart: always
    privileged: true
    runtime: nvidia
    networks:
      - immich_default
      - immich-internal
    healthcheck:
      disable: false
      test: ''

  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}-cuda
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]
    volumes:
      - /mnt/storage_immich/model_cache:/cache
    env_file:
      - .env
    restart: always
    privileged: true
    runtime: nvidia
    networks:
      - immich_default # machine learning requires internet connecting for model download
      - immich-internal
    healthcheck:
      test: ''
      disable: false

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

  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
    networks:
      - immich-internal
    restart: always

networks:
  immich_default:
    external: true
  immich-internal:
    internal: true

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=/mnt/storage_immich/files/

# The location where your database files are stored
DB_DATA_LOCATION=/mnt/storage_immich/db/
# 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: "Poland"

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

# 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=immich
DB_DATABASE_NAME=immich
NVIDIA_VISIBLE_DEVICES=all
NVIDIA_DRIVER_CAPABILITIES=all
REDIS_HOSTNAME=redis
IMMICH_PROCESS_INVALID_IMAGES=true

Reproduction steps

  1. Select photos (at mobile app)
  2. Click share
  3. Enter custom link name
  4. Open link without logged account
  5. click one photo on grid
  6. Full screen error
    ...

Relevant log output


Additional information

No info at logs but that what not authenticated user see

Imageerro

Originally created by @krypton9208 on GitHub (Aug 7, 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 share few photos for friends, and they click in my link, they see photos, by after click on any of them (to see one photo not all photos grid), they got got authentication error. ### The OS that Immich Server is running on Docker ubuntu ### Version of Immich Server 1.137.3 ### Version of Immich Mobile App 1.137.3 ### Platform with the issue - [x] Server - [x] Web - [ ] Mobile ### 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} deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu] 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 env_file: - .env ports: - '14385:2283' depends_on: - redis - database restart: always privileged: true runtime: nvidia networks: - immich_default - immich-internal healthcheck: disable: false test: '' 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}-cuda deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu] volumes: - /mnt/storage_immich/model_cache:/cache env_file: - .env restart: always privileged: true runtime: nvidia networks: - immich_default # machine learning requires internet connecting for model download - immich-internal healthcheck: test: '' disable: false redis: container_name: immich_redis image: docker.io/valkey/valkey:8-bookworm@sha256:ff21bc0f8194dc9c105b769aeabf9585fea6a8ed649c0781caeac5cb3c247884 healthcheck: test: redis-cli ping || exit 1 restart: always networks: - immich-internal 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 networks: - immich-internal restart: always networks: immich_default: external: true immich-internal: internal: true ``` ### 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=/mnt/storage_immich/files/ # The location where your database files are stored DB_DATA_LOCATION=/mnt/storage_immich/db/ # 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: "Poland" # The Immich version to use. You can pin this to a specific version like "v1.71.0" IMMICH_VERSION=v1.137.3 # 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=immich DB_DATABASE_NAME=immich NVIDIA_VISIBLE_DEVICES=all NVIDIA_DRIVER_CAPABILITIES=all REDIS_HOSTNAME=redis IMMICH_PROCESS_INVALID_IMAGES=true ``` ### Reproduction steps 1. Select photos (at mobile app) 2. Click share 3. Enter custom link name 4. Open link without logged account 5. click one photo on grid 6. Full screen error ... ### Relevant log output ```shell ``` ### Additional information No info at logs but that what not authenticated user see <img width="465" height="229" alt="Image" src="https://github.com/user-attachments/assets/824b28f2-d40c-40df-9d2a-46a747a39408" />erro
Author
Owner

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

Fixed, will land in the next release

@alextran1502 commented on GitHub (Aug 7, 2025): Fixed, will land in the next release
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#6776