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

checkExistingAssets returns null IDs, breaking background backup #10175

Closed
2 of 3 tasks
K3das opened this issue Jun 11, 2024 · 0 comments · Fixed by #10192
Closed
2 of 3 tasks

checkExistingAssets returns null IDs, breaking background backup #10175

K3das opened this issue Jun 11, 2024 · 0 comments · Fixed by #10192

Comments

@K3das
Copy link
Contributor

K3das commented Jun 11, 2024

The bug

The checkExistingAssets endpoint returns {"existingIds":[null]}, causing the mobile app to fail to unmarshal the response:

type 'Null' is not a subtype of type 'String' in type cast

and sends a "Failed to connect to the server. Retrying..." notification

The OS that Immich Server is running on

Alma 9

Version of Immich Server

v1.106.2

Version of Immich Mobile App

v1.106.2

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

services:
  immich-server:
    image: ghcr.io/immich-app/immich-server:${IMMICH_VERSION:-release}
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload:z
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
    #ports:
    #  - 2283:3001
    depends_on:
      - redis
      - database
    restart: always

  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

  redis:
    image: registry.hub.docker.com/library/redis:6.2-alpine
    restart: always

  database:
    image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0
    environment:
      POSTGRES_PASSWORD: ${DB_PASSWORD}
      POSTGRES_USER: ${DB_USERNAME}
      POSTGRES_DB: ${DB_DATABASE_NAME}
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: always

volumes:
  pgdata:
  model-cache:

Your .env content

UPLOAD_LOCATION=/mnt/photos
IMMICH_VERSION=release
DB_PASSWORD=
DB_HOSTNAME=database
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=redis

Reproduction steps

1. Start a background backup

Relevant log output

No response

Additional information

No response

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

Successfully merging a pull request may close this issue.

2 participants