immich
immich copied to clipboard
Android app - Photo randomly excluded
I have searched the existing issues, both open and closed, to make sure this is not a duplicate report.
- [x] Yes
The bug
When scanning for photo, some files are ignored by Immich. The same files are also ignored when manually importing the photo into Immich through sharing.
The phone is a Samsung Galaxy S20
The OS that Immich Server is running on
Debian 12
Version of Immich Server
v1.134.0
Version of Immich Mobile App
v1.134.0 build.200
Platform with the issue
- [ ] Server
- [ ] Web
- [x] Mobile
Your docker-compose.yml content
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
env_file:
- .env
ports:
- '2283:2283'
depends_on:
- redis
- database
restart: always
healthcheck:
disable: false
immich-machine-learning:
container_name: immich_machine_learning
# For hardware acceleration, add one of -[armnn, cuda, rocm, openvino, rknn] 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, rocm, openvino, openvino-wsl, rknn] for accelerated inference - use the `-wsl` version for WSL2 where applicable
volumes:
- model-cache:/cache
env_file:
- .env
restart: always
healthcheck:
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
database:
container_name: immich_postgres
image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.2.0@sha256:fa4f6e0971f454cd95fec5a9aaed2ed93d8f46725cc6bc61e0698e97dba96da1
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
POSTGRES_INITDB_ARGS: '--data-checksums'
# Uncomment the DB_STORAGE_TYPE: 'HDD' var if your database isn't stored on SSDs
# 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
volumes:
model-cache:
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=/vol0/immich/library
# The location where your database files are stored. Network shares are not supported for the database
DB_DATA_LOCATION=/vol0/immich/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=Etc/UTC
# 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=postgres
# The values below this line do not need to be changed
###################################################################################
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
Reproduction steps
- Move enclosed photo on your phone
- Wait for it to be detected
- In a file browser, share the picture to Immich to upload it. ... Expected: Picture should appears in either the album or the local photo. Result: Photo doesn't appears in Immich
Relevant log output
2025-05-29 13:46:01.383712 | info | AssetNotifier | Load assets: 5063ms |
2025-05-29 13:46:01.383588 | info | AlbumService | Syncing completed. Changes: false |
2025-05-29 13:46:01.383566 | info | SyncService | Local album Camera has not changed. Skipping sync. |
2025-05-29 13:46:01.366198 | info | SyncService | Syncing a local album to DB: Camera |
2025-05-29 13:46:01.366187 | info | SyncService | Local album Pictures has not changed. Skipping sync. |
2025-05-29 13:46:01.353967 | info | SyncService | Syncing a local album to DB: Pictures |
2025-05-29 13:46:01.353241 | info | AlbumService | 'Recents' is not selected, keeping only selected albums |
2025-05-29 13:46:01.353077 | info | AlbumService | Found 1135 device albums |
2025-05-29 13:46:01.188554 | info | BackupNotifier | Found 1135 local albums |
2025-05-29 13:45:57.079713 | info | SyncService | Synced changes of remote album Pictures to DB |
2025-05-29 13:45:56.880039 | info | SyncService | Synced changes of remote album Camera to DB |
2025-05-29 13:45:56.295627 | info | BackupNotifier | [_resumeBackup] Start back up |
2025-05-29 13:27:30.646528 | info | AssetNotifier | Load assets: 5585ms |
2025-05-29 13:27:30.646427 | info | AlbumService | Syncing completed. Changes: false |
2025-05-29 13:27:30.646422 | fine | SyncService | 0 assets to delete, 0 to update |
2025-05-29 13:27:30.646418 | fine | SyncService | Syncing all local albums almost done. Collected 0 asset candidates to delete |
2025-05-29 13:27:30.646405 | info | SyncService | Local album Camera has not changed. Skipping sync. |
2025-05-29 13:27:30.626492 | info | SyncService | Syncing a local album to DB: Camera |
2025-05-29 13:27:30.626480 | info | SyncService | Local album Pictures has not changed. Skipping sync. |
2025-05-29 13:27:30.611794 | info | SyncService | Syncing a local album to DB: Pictures |
2025-05-29 13:27:30.611216 | info | AlbumService | 'Recents' is not selected, keeping only selected albums |
2025-05-29 13:27:30.611038 | info | AlbumService | Found 1135 device albums |
2025-05-29 13:27:21.957171 | fine | socket_io_client:engine.Socket | flushing 1 packets in socket |
2025-05-29 13:27:21.957101 | fine | socket_io_client:engine.Socket | socket receive: type "ping", data "null" |
2025-05-29 13:26:56.861468 | info | AssetNotifier | Load assets: 4678ms |
2025-05-29 13:26:56.861364 | info | AlbumService | Syncing completed. Changes: false |
2025-05-29 13:26:56.861342 | info | SyncService | Local album Camera has not changed. Skipping sync. |
2025-05-29 13:26:56.844172 | info | SyncService | Syncing a local album to DB: Camera |
2025-05-29 13:26:56.844155 | info | SyncService | Local album Pictures has not changed. Skipping sync. |
2025-05-29 13:26:56.829421 | info | SyncService | Syncing a local album to DB: Pictures |
2025-05-29 13:26:56.828443 | info | AlbumService | 'Recents' is not selected, keeping only selected albums |
2025-05-29 13:26:56.828088 | info | AlbumService | Found 1135 device albums |
2025-05-29 13:26:52.163982 | info | BackupNotifier | No Asset On Device - Abort Backup Process |
2025-05-29 13:26:52.159011 | info | BackupNotifier | No assets are selected for back up |
2025-05-29 13:26:51.333368 | info | BackupNotifier | _getBackupAlbumsInfo: Found 1135 available albums |
2025-05-29 13:26:39.783097 | info | BackupNotifier | Found 1135 local albums |
2025-05-29 13:26:34.505550 | info | BackupNotifier | [_resumeBackup] Start back up |
2025-05-29 13:21:18.313655 | info | AssetNotifier | Load assets: 4826ms |
2025-05-29 13:21:18.313464 | info | AlbumService | Syncing completed. Changes: false |
2025-05-29 13:21:18.313427 | info | SyncService | Local album Camera has not changed. Skipping sync. |
2025-05-29 13:21:18.290112 | info | SyncService | Syncing a local album to DB: Camera |
2025-05-29 13:21:18.290096 | info | SyncService | Local album Pictures has not changed. Skipping sync. |
2025-05-29 13:21:18.267900 | info | SyncService | Syncing a local album to DB: Pictures |
2025-05-29 13:21:18.266904 | info | AlbumService | 'Recents' is not selected, keeping only selected albums |
2025-05-29 13:21:18.266534 | info | AlbumService | Found 1135 device albums |
2025-05-29 13:21:13.463790 | info | BackupNotifier | No Asset On Device - Abort Backup Process |
2025-05-29 13:21:13.458244 | info | BackupNotifier | No assets are selected for back up |
2025-05-29 13:21:12.587468 | info | BackupNotifier | _getBackupAlbumsInfo: Found 1135 available albums |
2025-05-29 13:21:01.145359 | info | BackupNotifier | Found 1135 local albums |
2025-05-29 13:20:56.907987 | info | BackupNotifier | [_resumeBackup] Start back up |
Additional information
I think I figured out the pattern.
On the initial upload, the missing photo failed to generate thumbnails and would show as broken. Those photo were later deleted from the web interface, but remained on the device, as some thread suggested to repair broken upload.
However, any attempt to upload those same photo again would silently fail, rather than warn that the photo were already in the trash pending final deletion.
Removing the photo from the trash restored them on the device.
It would be a good idea to add a warning message when an upload is rejected due to the original being in the trash.
Does this issue still happen on the new beta timeline?