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

After updating to 1.125.1, iOS App Error while getting remote assets #15603

Open
1 of 3 tasks
Fletch-99 opened this issue Jan 24, 2025 · 9 comments
Open
1 of 3 tasks

After updating to 1.125.1, iOS App Error while getting remote assets #15603

Fletch-99 opened this issue Jan 24, 2025 · 9 comments

Comments

@Fletch-99
Copy link

The bug

I’ve updated to 1.125.1, the iOS app is stuck on Building the timeline. The logs show:
Error while getting remote assets
Null check operator used on a null value
(More details on logging below)

The OS that Immich Server is running on

Raspberry OS

Version of Immich Server

v1.125.1

Version of Immich Mobile App

v1.125.1.build.189

Platform with the issue

  • Server
  • Web
  • 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}
    volumes:
      - ${UPLOAD_LOCATION}:/usr/src/app/upload
      - /etc/localtime:/etc/localtime:ro
    env_file:
      - .env
#    ports:
#      - 2283:2283
    depends_on:
      - redis
      - database
    restart: always
    logging:
      driver: "journald"
      options:
        tag: "immich-server"

  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

  redis:
    container_name: immich_redis
    image: redis:6.2-alpine@sha256:afb290a0a0d0b2bd7537b62ebff1eb84d045c757c1c31ca2ca48c79536c0de82
    restart: always

  database:
    container_name: immich_postgres
    image: tensorchord/pgvecto-rs:pg14-v0.2.0@sha256:90724186f0a3517cf6914295b5ab410db9ce23190a2d9d0b9dd6463e3fa298f0
    env_file:
      - .env
    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

# 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=/mnt/hdd/Photos/library

# 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
DB_PASSWORD=xxxxxxxxxxx

# The values below this line do not need to be changed
###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=xxxxxxxx
DB_DATABASE_NAME=xxxxxxxxx

REDIS_HOSTNAME=immich_redis

Reproduction steps

  1. Open iOS App
  2. Refresh the timeline
  3. App stays on “Buidling the timeline” without showing any pictures or finish building
    ...

Relevant log output

#0      AssetResponseDto.fromJson (package:openapi/model/asset_response_dto.dart:291)
#1      ApiClient.fromJson (package:openapi/api_client.dart:260)
#2      ApiClient.fromJson.<anonymous closure> (package:openapi/api_client.dart:653)
#3      MappedListIterable.elementAt (dart:_internal/iterable.dart:425)
#4      ListIterator.moveNext (dart:_internal/iterable.dart:354)
#5      new _List._ofEfficientLengthIterable (dart:core-patch/array.dart:163)
#6      new _List.of (dart:core-patch/array.dart:128)
#7      new List.of (dart:core-patch/array_patch.dart:39)
#8      ListIterable.toList (dart:_internal/iterable.dart:224)
#9      ApiClient.fromJson (package:openapi/api_client.dart:654)
#10     ApiClient.deserialize (package:openapi/api_client.dart:158)
<asynchronous suspension>
#11     SyncApi.getFullSyncForUser (package:openapi/api/sync_api.dart:108)
<asynchronous suspension>
#12     AssetService._getRemoteAssets (package:immich_mobile/services/asset.service.dart:145)
<asynchronous suspension>
#13     SyncService._syncRemoteAssetsForUser (package:immich_mobile/services/sync.service.dart:267)
<asynchronous suspension>
#14     SyncService._syncRemoteAssetsFull (package:immich_mobile/services/sync.service.dart:257)
<asynchronous suspension>
#15     SyncService.syncRemoteAssetsToDb.<anonymous closure> (package:immich_mobile/services/sync.service.dart:92)
<asynchronous suspension>
#16     AssetService.refreshRemoteAssets (package:immich_mobile/services/asset.service.dart:85)
<asynchronous suspension>
#17     AssetNotifier.getAllAsset (package:immich_mobile/providers/asset.provider.dart:55)
<asynchronous suspension>
#18     AppLifeCycleNotifier.handleAppResume (package:immich_mobile/providers/app_life_cycle.provider.dart:67)
<asynchronous suspension>

Additional information

Immich works on browser. The problem is only I the iOS app.

@Fletch-99
Copy link
Author

Ports are not exposed on docker-compose file, immich runs behind Nginx proxy manager

@mmomjian
Copy link
Contributor

Please logout of the app and log back in using local ip:port 2283 (not through NPM). If the issue persists we can reopen and investigate. Thank you

@mmomjian mmomjian closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2025
@Fletch-99
Copy link
Author

I’ve just tried logging using local ip and port 2283..The issue remains.

@mmomjian mmomjian reopened this Jan 24, 2025
@mmomjian
Copy link
Contributor

So the login is successful, but no images appear once logged in?

@Fletch-99
Copy link
Author

Exactly, stuck on this screen

Image

@alextran1502
Copy link
Contributor

Can you help attach the full log export from the mobile app?

@Fletch-99
Copy link
Author

@alextran1502
Copy link
Contributor

Hey @Fletch-99, do you mind jumping on Discord and I can help you take a peek into the database to find out what happen?

@JW-CH
Copy link
Contributor

JW-CH commented Jan 25, 2025

Hey @Fletch-99

I just had the same issue on my girlfiends phone. The issue for me was, that some dates were 'bad', meaning they had a date in a really early year like 1025. I changed those dates to 2000 and it worked again. Alex mentioned that he will fix it and ship a hotfix. If you want to read through the conversation, it is on discord.

https://discord.com/channels/979116623879368755/1332818374685888534

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

4 participants