Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Album missing, sync error #15824

Open
1 of 3 tasks
Erdk2 opened this issue Feb 1, 2025 · 12 comments
Open
1 of 3 tasks

Album missing, sync error #15824

Erdk2 opened this issue Feb 1, 2025 · 12 comments

Comments

@Erdk2
Copy link

Erdk2 commented Feb 1, 2025

The bug

When I trying to sync Albums in iOS (last version 18.3) an album is missing:

Failed to add album from server: assetCount 7019 != asset array length 7618 for album xxxxxxxxxxxx at 09:47:35.732 in SyncService

The OS that Immich Server is running on

Ubuntu 22.04.5 LTS

Version of Immich Server

v1.125.7

Version of Immich Mobile App

v1.125.3

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

immich-server:
    container_name: immich_server
    image: ghcr.io/immich-app/immich-server:release
    #command: ['start.sh', 'immich']
    volumes:
      - /mnt/WD/Immich:/usr/src/app/upload
      #- /mnt/WD/Imagenes:/usr/src/app/external
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - stack.env
    ports:
      #- 2283:3001
      - 2283:2283
    depends_on:
      - redis
      - database
    restart: always



  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: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:
      - /home/nuc/docker/immich-app/model-cache:/cache
    env_file:
      - stack.env
    restart: always

  redis:
    container_name: immich_redis
    image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:51d6c56749a4243096327e3fb964a48ed92254357108449cb6e23999c37773c5
    restart: always

  database:
    container_name: immich_postgres
    image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    environment:
      POSTGRES_PASSWORD: postgres
      POSTGRES_USER: postgres
      POSTGRES_DB: inmich
    volumes:
      - /home/nuc/docker/immich-app/postgres:/var/lib/postgresql/data
    restart: always

Your .env content

.

Reproduction steps

When I trying to sync Albums in iOS (last version 18.3) an album is missing:

Failed to add album from server: assetCount 7019 != asset array length 7618 for album xxxxxxxxxxxx at 09:47:35.732 in SyncService

Relevant log output

Additional information

No response

@alextran1502
Copy link
Contributor

Hello, we have seen this reported a couple time and still trying to identify the cause.

Did you use any other tool or CLI to create albums on Immich?

@Erdk2
Copy link
Author

Erdk2 commented Feb 1, 2025 via email

@stogoh
Copy link

stogoh commented Feb 9, 2025

I am facing the same issue right now on the iOS app (v1.125.3 build.191). I am running Immich on Docker v1.125.7. I have a few albums, but one of them is not showing on my phone. It seems to be the same issue as others have mentioned, in the logs I can find:

Failed to add album from server: assetCount 523 != asset array length 522 for album <album-name>

I used to work perfectly fine, however I recall to delete one asset on the external library storage which was part of this library. Not entirely sure if what might have caused this issue.

@alextran1502
Copy link
Contributor

@stogoh thanks for the info, I will attempt to reproduce this

@andredatele
Copy link

I am facing the exact same issue on Android.
App version: 1.126.1 build.184
Server version: 1.125.7

@alextran1502
Copy link
Contributor

@andredatele you need to update your server to fix this issue

@andredatele
Copy link

@alextran1502 I just updated the server to 1.126.1, and the problem is still there.
Album is missing, but no errors in the log anymore.

@alextran1502
Copy link
Contributor

@andredatele can you please logout and log back in? If it doesn't help, feel free to open a new GitHub issue and include your setup info and the logs

@miao17game
Copy link

miao17game commented Mar 3, 2025

same problem
App version: 1.128.0 build.2186
Server version: 1.128.0

Image

@jydev126
Copy link

jydev126 commented Mar 8, 2025

Found the problem. Some broken files were added to the album. Problem resolved by removing those.

@miao17game
Copy link

Found the problem. Some broken files were added to the album. Problem resolved by removing those.

Could you share how you found out those corrupted files?

@jydev126
Copy link

jydev126 commented Mar 9, 2025

Found the problem. Some broken files were added to the album. Problem resolved by removing those.

Could you share how you found out those corrupted files?

Sure. Here's my configuration: I have one storage server, one compute server. I store all my files on the storage server, then import as an external library to the immich running on the compute server.

I found the problem after a week's trip, where I added over 3k files to the album without checking any of those. On web and android clients it works fine. But the album won't show up on iOS clients. I got the exact error as prior reply. It shows back up after I remove those 3k files. Then I spotted 4 unrecognized videos in my own library. Copied those files to my PC and found out they were broken. Problem resolved by removing those files and re-upload to my storage server.

I don't have any screenshots for this. But I think it can be reproduced by creating a junk file, renaming with .mp4, uploading to the server and adding to the album.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants