-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.
- Yes
The bug
Albums in Immich have the start and end dates shown beneath the title. This date range always shows correctly when I'm viewing the album through my account, but when I create a public share link to that album, the date range is sometimes a sub-range of the original range. For example, I have an album that shows 7 Jul 2018 - 18 Aug 2025 • 1,050 items in my profile, but 4 Apr 2024 - 7 Feb 2025 • 1,050 items when viewed though the public link.
The OS that Immich Server is running on
Debian stable (trixie)
Version of Immich Server
v1.139.2
Version of Immich Mobile App
irrelevant
Platform with the issue
- Server
- Web
- Mobile
Your docker-compose.yml content
I am using podman. Here are my quadlet units (lightly edited to remove passwords and directory names):
==> /etc/containers/systemd/immich-machine-learning.container <==
[Unit]
Description=Immich - Machine Learning container
After=immich-redis.service
Requires=immich-redis.service
[Container]
Image=ghcr.io/immich-app/immich-machine-learning:release
Network=immich.network
NetworkAlias=immich-machine-learning
SubUIDMap=immich
SubGIDMap=immich
ReadOnly=true
Volume=/srv/immich/machine-learning/cache:/cache
Volume=/srv/immich/machine-learning/root_cache:/root/.cache
Volume=/srv/immich/machine-learning/root_config:/root/.config
==> /etc/containers/systemd/immich.network <==
[Unit]
Description=Podman network for the Immich application
After=network-online.target
Wants=network-online.target
[Network]
IPv6=true
==> /etc/containers/systemd/immich-postgres.container <==
[Unit]
Description=Immich - PostgreSQL container
[Container]
Image=ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
Network=immich.network
NetworkAlias=database
SubUIDMap=immich
SubGIDMap=immich
ReadOnly=true
Volume=/srv/immich/postgres/var_lib_postgresql_data:/var/lib/postgresql/data
Volume=/srv/immich/postgres/etc_postgresql:/etc/postgresql
Environment=POSTGRES_PASSWORD=<...>
Environment=POSTGRES_USER=postgres
Environment=POSTGRES_DB=immich
Environment="POSTGRES_INITDB_ARGS=--data-checksums"
==> /etc/containers/systemd/immich-redis.container <==
[Unit]
Description=Immich - Redis container
After=immich-postgres.service
Requires=immich-postgres.service
[Container]
Image=docker.io/valkey/valkey:8-bookworm@sha256:fec42f399876eb6faf9e008570597741c87ff7662a54185593e74b09ce83d177
Network=immich.network
NetworkAlias=redis
SubUIDMap=immich
SubGIDMap=immich
ReadOnly=true
HealthCmd=redis-cli ping || exit 1
==> /etc/containers/systemd/immich-server.container <==
[Unit]
Description=Immich Main server container
After=immich-redis.service immich-postgres.service
Requires=immich-redis.service immich-postgres.service
[Container]
Image=ghcr.io/immich-app/immich-server:release
Network=immich.network
SubUIDMap=immich
SubGIDMap=immich
ReadOnly=true
Environment=DB_PASSWORD=<...>
Volume=/etc/localtime:/etc/localtime:ro
Timezone=Asia/Tokyo
AddDevice=/dev/dri
PublishPort=2283:2283
Volume=/srv/immich/upload:/usr/src/app/upload
Volume=/mnt/<....>:/mnt/media/<...>:ro
Volume=/mnt/<....>:/mnt/media/<...>:roYour .env content
Not relevant, I supply all environment variables in the quadlet units.Reproduction steps
- create album
- create share link for that album
- the dates are wrong when viewed through the shared link
This is not very helpful, I know. This doesn't happen with all albums, and I haven't been able to figure out what exactly triggers this bug.
Relevant log output
Nothing notable in the log.Additional information
As I said above, I haven't been able to figure out what is it that causes this behaviour to occur. The dates in the sub-range seem somewhat arbitrary, but creating a new album with the same pictures yields exactly the same dates (from my limited testing). It does not seem to be connected with a change in the camera model, the directory files are in, presence or absence of sidecar metadata, or the time photos were added to the album.
A potentially relevant note about my setup is that I'm not using the upload feature, all my photos are in external libraries mounted read-only. Some files have xmp sidecars.
I will be honest and say that I haven't spent a lot of time trying to find the root cause of this issue. I guess I'm hoping that it is a simple case of "there are two different DB queries that are supposed to do the same thing but one of them is actually wrong" or something like that.
Please tell me if there is any more information I can easily provide or things I can easily test, or if that's not enough and I need to have an actual compose file and set of pictures to reliably reproduce the issue.