Unable to load 4 photos from ios app #4008

Closed
opened 2026-02-20 02:20:27 -05:00 by deekerman · 11 comments
Owner

Originally created by @ptahin on GitHub (Oct 5, 2024).

The bug

Unable to load 4 photos from ios app to immich server.
I reinstalled app, rebooted server, uploaded these photos manually, but nothing works.
I cant find some errors on logs on server or in app.
Sync of new photos works fine
photo_2024-10-05_14-50-42

The OS that Immich Server is running on

Debian 12

Version of Immich Server

v. 1.117.0 и 162

Version of Immich Mobile App

v.117.0

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}
    # 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:3001
    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, 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

  redis:
    container_name: immich_redis
    image: docker.io/redis:6.2-alpine@sha256:2d1463258f2764328496376f5d965f20c6a67f66ea2b06dc42af351f75248792
    healthcheck:
      test: redis-cli ping || exit 1
    restart: always

  database:
    container_name: immich_postgres
    image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
      POSTGRES_INITDB_ARGS: '--data-checksums'
    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
    healthcheck:
      test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1
      interval: 5m
      start_interval: 30s
      start_period: 5m
    command: ["postgres", "-c", "shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"]
    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=./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=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=

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

Reproduction steps

1.Open ios app
2.Sync photos
3.
...

Relevant log output

No response

Additional information

No response

Originally created by @ptahin on GitHub (Oct 5, 2024). ### The bug Unable to load 4 photos from ios app to immich server. I reinstalled app, rebooted server, uploaded these photos manually, but nothing works. I cant find some errors on logs on server or in app. Sync of new photos works fine ![photo_2024-10-05_14-50-42](https://github.com/user-attachments/assets/addcae07-1a5f-48a9-9c87-417257f02a4b) ### The OS that Immich Server is running on Debian 12 ### Version of Immich Server v. 1.117.0 и 162 ### Version of Immich Mobile App v.117.0 ### Platform with the issue - [ ] Server - [X] Web - [X] 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} # 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:3001 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, 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 redis: container_name: immich_redis image: docker.io/redis:6.2-alpine@sha256:2d1463258f2764328496376f5d965f20c6a67f66ea2b06dc42af351f75248792 healthcheck: test: redis-cli ping || exit 1 restart: always database: container_name: immich_postgres image: docker.io/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} POSTGRES_DB: ${DB_DATABASE_NAME} POSTGRES_INITDB_ARGS: '--data-checksums' 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 healthcheck: test: pg_isready --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' || exit 1; Chksum="$$(psql --dbname='${DB_DATABASE_NAME}' --username='${DB_USERNAME}' --tuples-only --no-align --command='SELECT COALESCE(SUM(checksum_failures), 0) FROM pg_stat_database')"; echo "checksum failure count is $$Chksum"; [ "$$Chksum" = '0' ] || exit 1 interval: 5m start_interval: 30s start_period: 5m command: ["postgres", "-c", "shared_preload_libraries=vectors.so", "-c", 'search_path="$$user", public, vectors', "-c", "logging_collector=on", "-c", "max_wal_size=2GB", "-c", "shared_buffers=512MB", "-c", "wal_compression=on"] restart: always volumes: model-cache: ``` ### 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=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= # The values below this line do not need to be changed ################################################################################### DB_USERNAME=postgres DB_DATABASE_NAME=immich ``` ### Reproduction steps 1.Open ios app 2.Sync photos 3. ... ### Relevant log output _No response_ ### Additional information _No response_
deekerman 2026-02-20 02:20:27 -05:00
Author
Owner

@alextran1502 commented on GitHub (Oct 5, 2024):

Looks like some corrupted file that is only 2.6KB. Can you track down the file based on the report date and resolve it?

@alextran1502 commented on GitHub (Oct 5, 2024): Looks like some corrupted file that is only 2.6KB. Can you track down the file based on the report date and resolve it?
Author
Owner

@ptahin commented on GitHub (Oct 5, 2024):

Looks like some corrupted file that is only 2.6KB. Can you track down the file based on the report date and resolve it?

But I can open these photos in iphone, I can resend it to telegram (each file is about 1.3 m) and can upload manually from web to immich server

@ptahin commented on GitHub (Oct 5, 2024): > Looks like some corrupted file that is only 2.6KB. Can you track down the file based on the report date and resolve it? But I can open these photos in iphone, I can resend it to telegram (each file is about 1.3 m) and can upload manually from web to immich server
Author
Owner

@alextran1502 commented on GitHub (Oct 5, 2024):

Perhaps you are not looking at correct file since the reported file only has a few KB

@alextran1502 commented on GitHub (Oct 5, 2024): Perhaps you are not looking at correct file since the reported file only has a few KB
Author
Owner

@ptahin commented on GitHub (Oct 5, 2024):

On the left side of Information about uploading file I can click on image icon and see the problem files, so I exactly know the problem files

@ptahin commented on GitHub (Oct 5, 2024): On the left side of Information about uploading file I can click on image icon and see the problem files, so I exactly know the problem files
Author
Owner

@alextran1502 commented on GitHub (Oct 7, 2024):

From the screenshot you posted, looks like the file doesn't have a name, can you help confirming that?

@alextran1502 commented on GitHub (Oct 7, 2024): From the screenshot you posted, looks like the file doesn't have a name, can you help confirming that?
Author
Owner

@ptahin commented on GitHub (Oct 12, 2024):

All these photo have the names like this
IMG_3818

@ptahin commented on GitHub (Oct 12, 2024): All these photo have the names like this ![IMG_3818](https://github.com/user-attachments/assets/144ea40e-f216-4095-a5da-c22fdb8a0e6b)
Author
Owner

@rsniezek commented on GitHub (May 9, 2025):

I have the same issue on IOS app 1.129.0 (server 1.132.3). Cannot upload 8 assets, all iphone made videos, even though other videos taken just before or after the failing ones are succesfully uploaded.

On the server there are no logs visible, just the ios app reports a failure when uploading manually, and the backup job does seem to upload the files (the progress bar is moving from 0 to 100% for each file, the sizes are correc, the filenames are correct), but the job hangs at the 100% of the last file and the "remainder" is never decremented. Both background job and the manually triggered one behave the same. If I delete any video from the immich server, all ways of re-uploading it work. just this 8 stubborn videos never get uplaoded.

If I make any new photos/videos, the "remainder" increases and the backup job uploads everything but those 8 files.

Screenshots below

Manually started backup job "uplaoding" the videos
Image

Manually started backup job after "uploading" all assets, frozen at 100% of the last item
Image

Details from the log about the uplaod failure for manual backup attempt of single file
Image

Some more logs from the app
Image

server side logs don't even budge despites the debug level logs being enabled.

Please advise. I believe my wife's Iphone have the same issue but for much larger amount of assets. Will check later and report back.

EDIT: checked wife's phone, it's stuck at 774 items with identical symptoms. This make the solution non-viable. Hope this can be fixed.

@rsniezek commented on GitHub (May 9, 2025): I have the same issue on IOS app 1.129.0 (server 1.132.3). Cannot upload 8 assets, all iphone made videos, even though other videos taken just before or after the failing ones are succesfully uploaded. On the server there are no logs visible, just the ios app reports a failure when uploading manually, and the backup job does seem to upload the files (the progress bar is moving from 0 to 100% for each file, the sizes are correc, the filenames are correct), but the job hangs at the 100% of the last file and the "remainder" is never decremented. Both background job and the manually triggered one behave the same. If I delete any video from the immich server, all ways of re-uploading it work. just this 8 stubborn videos never get uplaoded. If I make any new photos/videos, the "remainder" increases and the backup job uploads everything but those 8 files. Screenshots below Manually started backup job "uplaoding" the videos ![Image](https://github.com/user-attachments/assets/d6a4b15f-51e0-4dd8-9c94-77a6e6c2a6af) Manually started backup job after "uploading" all assets, frozen at 100% of the last item ![Image](https://github.com/user-attachments/assets/3fb82046-4ddc-4495-ae33-34cc32d1a24e) Details from the log about the uplaod failure for manual backup attempt of single file ![Image](https://github.com/user-attachments/assets/d44e7ce8-c3c2-409a-86f8-67f6626b56b7) Some more logs from the app ![Image](https://github.com/user-attachments/assets/0bcf107d-22cf-4c86-b112-032676518b50) server side logs don't even budge despites the debug level logs being enabled. Please advise. I believe my wife's Iphone have the same issue but for much larger amount of assets. Will check later and report back. EDIT: checked wife's phone, it's stuck at 774 items with identical symptoms. This make the solution non-viable. Hope this can be fixed.
Author
Owner

@rsniezek commented on GitHub (May 13, 2025):

I also tried to upload those assets from my laptop - downloaded them from google photos and I am able to sent the files that were successfully uploaded from the app (after trashing them first to avoid duplicates) but the files that the app fail to upload also fail to upload from my laptop's browser.

I'm also unable to uplaod any Sony's ARW files which seems to be supported judging from the historical issues here on github.

@alextran1502 any ideas what to check next?

all the server tells me is:
May 13 13:51:11 snowlab immich[462036]: [Nest] 462036 - 05/13/2025, 1:51:11 PM DEBUG [Api:LoggingInterceptor~jqucauj6] POST /api/assets/bulk-upload-check 200 1.99ms 192.168.1.13 May 13 13:51:11 snowlab immich[462036]: [Nest] 462036 - 05/13/2025, 1:51:11 PM VERBOSE [Api:LoggingInterceptor~jqucauj6] {"assets":[{"id":"IMG_4822.MOV","checksum":"5b9dca6db84a4f6474aac7fd6cdf9f87a4ed418d"}]}
and the website tells me

Image

for ARW files it's identical.

@rsniezek commented on GitHub (May 13, 2025): I also tried to upload those assets from my laptop - downloaded them from google photos and I am able to sent the files that were successfully uploaded from the app (after trashing them first to avoid duplicates) but the files that the app fail to upload also fail to upload from my laptop's browser. I'm also unable to uplaod any Sony's ARW files which seems to be supported judging from the historical issues here on github. @alextran1502 any ideas what to check next? all the server tells me is: `May 13 13:51:11 snowlab immich[462036]: [Nest] 462036 - 05/13/2025, 1:51:11 PM DEBUG [Api:LoggingInterceptor~jqucauj6] POST /api/assets/bulk-upload-check 200 1.99ms 192.168.1.13 May 13 13:51:11 snowlab immich[462036]: [Nest] 462036 - 05/13/2025, 1:51:11 PM VERBOSE [Api:LoggingInterceptor~jqucauj6] {"assets":[{"id":"IMG_4822.MOV","checksum":"5b9dca6db84a4f6474aac7fd6cdf9f87a4ed418d"}]}` and the website tells me ![Image](https://github.com/user-attachments/assets/63dc3255-0144-4bb2-927f-d518909778e2) for ARW files it's identical.
Author
Owner

@rsniezek commented on GitHub (May 14, 2025):

Solved at my side. tuns out the issue was not immich but nginix reverse proxy. no issues when interacting directly with immich instance.

added below to my nginx config solved the proxy:

   client_max_body_size 50000M;
   proxy_read_timeout   600s;
   proxy_send_timeout   600s;
   send_timeout         600s;
@rsniezek commented on GitHub (May 14, 2025): Solved at my side. tuns out the issue was not immich but nginix reverse proxy. no issues when interacting directly with immich instance. added below to my nginx config solved the proxy: ``` client_max_body_size 50000M; proxy_read_timeout 600s; proxy_send_timeout 600s; send_timeout 600s; ```
Author
Owner

@stkr22 commented on GitHub (Jun 18, 2025):

I have a similar issue with 2 videos. But I use traefik. Will try to check if there is misconfiguration.

@stkr22 commented on GitHub (Jun 18, 2025): I have a similar issue with 2 videos. But I use traefik. Will try to check if there is misconfiguration.
Author
Owner

@mmomjian commented on GitHub (Jul 4, 2025):

#2567

@mmomjian commented on GitHub (Jul 4, 2025): #2567
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/immich#4008
No description provided.